eyes_core 3.17.7 → 3.17.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/applitools/core/abstract_configuration.rb +6 -2
- data/lib/applitools/core/eyes_base.rb +0 -2
- data/lib/applitools/core/eyes_base_configuration.rb +5 -1
- data/lib/applitools/core/image_match_settings.rb +13 -1
- data/lib/applitools/core/match_window_data.rb +4 -4
- data/lib/applitools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3658cedca7dcf9d3e5f1e7c6032c26c39663c3c7a45fcb3182d4f9d580e97ecd
|
4
|
+
data.tar.gz: 9b5258d94211854de60052c9455a55ce6330353fac485acdf8f3aa1aec432fa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b330fb7b8315afcb21b4d8ecf74477f7c1fc888df88774c113e76acbbe9a60b73b109ec941e4b808ed9323d176e6ae531f7c4818361393e1ef6b9180b1918c9c
|
7
|
+
data.tar.gz: e865e1039f8b32c4d9ee369c2a7c21c60f9de2f9f5a2b7a2083c651b9529a27a698a9ec25b2d645a9743abc6b7ca198cd460700fdcf4eca73aa7e05d4e502df8
|
@@ -14,7 +14,11 @@ module Applitools
|
|
14
14
|
if self.class.respond_to? :default_config
|
15
15
|
default_config = self.class.default_config
|
16
16
|
default_config.keys.each do |k|
|
17
|
-
|
17
|
+
unless default_config[k].nil?
|
18
|
+
send "#{k}=", default_config[k].deep_clone if default_config[k].respond_to?(:deep_clone)
|
19
|
+
send "#{k}=", default_config[k].clone if default_config[k].respond_to?(:clone)
|
20
|
+
send "#{k}=", default_config[k].clone unless default_config[k].respond_to?(:clone) || default_config[k].respond_to?(:deep_clone)
|
21
|
+
end
|
18
22
|
end
|
19
23
|
end
|
20
24
|
end
|
@@ -24,7 +28,7 @@ module Applitools
|
|
24
28
|
config_keys.each do |k|
|
25
29
|
new_config.send(
|
26
30
|
"#{k}=", case value = send(k)
|
27
|
-
when Symbol, FalseClass, TrueClass, Integer, Float
|
31
|
+
when Symbol, FalseClass, TrueClass, Integer, Float, NilClass
|
28
32
|
value
|
29
33
|
else
|
30
34
|
value.clone
|
@@ -23,7 +23,6 @@ module Applitools
|
|
23
23
|
extend Forwardable
|
24
24
|
extend Applitools::Helpers
|
25
25
|
|
26
|
-
DEFAULT_MATCH_TIMEOUT = 2 # seconds
|
27
26
|
USE_DEFAULT_TIMEOUT = -1
|
28
27
|
|
29
28
|
SCREENSHOT_AS_IS = Applitools::EyesScreenshot::COORDINATE_TYPES[:screenshot_as_is].freeze
|
@@ -73,7 +72,6 @@ module Applitools
|
|
73
72
|
self.server_url = server_url if server_url
|
74
73
|
self.disabled = false
|
75
74
|
@viewport_size = nil
|
76
|
-
self.match_timeout = DEFAULT_MATCH_TIMEOUT
|
77
75
|
self.running_session = nil
|
78
76
|
self.save_new_tests = true
|
79
77
|
self.save_failed_tests = false
|
@@ -11,6 +11,8 @@ require 'applitools/core/image_match_settings'
|
|
11
11
|
|
12
12
|
module Applitools
|
13
13
|
class EyesBaseConfiguration < AbstractConfiguration
|
14
|
+
DEFAULT_MATCH_TIMEOUT = 2 # seconds
|
15
|
+
|
14
16
|
DEFAULT_CONFIG = {
|
15
17
|
branch_name: ENV['APPLITOOLS_BRANCH'],
|
16
18
|
parent_branch_name: ENV['APPLITOOLS_PARENT_BRANCH'],
|
@@ -22,7 +24,8 @@ module Applitools
|
|
22
24
|
save_new_tests: true,
|
23
25
|
default_match_settings: Applitools::ImageMatchSettings.new,
|
24
26
|
accessibility_validation: nil,
|
25
|
-
properties: []
|
27
|
+
properties: [],
|
28
|
+
match_timeout: DEFAULT_MATCH_TIMEOUT
|
26
29
|
}.freeze
|
27
30
|
|
28
31
|
class << self
|
@@ -114,6 +117,7 @@ module Applitools
|
|
114
117
|
boolean_field :ignore_displacements
|
115
118
|
object_field :accessibility_validation, Applitools::AccessibilitySettings, true
|
116
119
|
object_field :properties, Array
|
120
|
+
int_field :match_timeout
|
117
121
|
|
118
122
|
methods_to_delegate.delete(:batch_info)
|
119
123
|
methods_to_delegate.delete(:batch_info=)
|
@@ -39,7 +39,7 @@ module Applitools
|
|
39
39
|
cloned_value = self.class.new
|
40
40
|
self.class.json_methods.keys.each do |f|
|
41
41
|
new_value = case (v = send(f))
|
42
|
-
when Symbol, FalseClass, TrueClass, Integer, Float
|
42
|
+
when Symbol, FalseClass, TrueClass, Integer, Float, NilClass
|
43
43
|
v
|
44
44
|
else
|
45
45
|
v.clone
|
@@ -58,6 +58,18 @@ module Applitools
|
|
58
58
|
self.accessibility_settings = value
|
59
59
|
end
|
60
60
|
|
61
|
+
def ==(other)
|
62
|
+
return true if other.object_id == object_id
|
63
|
+
result = true
|
64
|
+
self.class.json_methods.keys.each do |f|
|
65
|
+
result = send(f) == other.send(f)
|
66
|
+
break unless result
|
67
|
+
end
|
68
|
+
result
|
69
|
+
end
|
70
|
+
|
71
|
+
alias deep_clone deep_dup
|
72
|
+
|
61
73
|
class Exact
|
62
74
|
include Applitools::Jsonable
|
63
75
|
json_fields :MinDiffIntensity, :MinDiffWidth, :MinDiffHeight, :MatchThreshold
|
@@ -68,7 +68,7 @@ module Applitools
|
|
68
68
|
@need_convert_content_regions_coordinates = false
|
69
69
|
@need_convert_layout_regions_coordinates = false
|
70
70
|
@need_convert_accessibility_regions_coordinates = false
|
71
|
-
self.default_image_match_settings = default_image_match_settings.
|
71
|
+
self.default_image_match_settings = default_image_match_settings.nil? ? Applitools::ImageMatchSettings.new : default_image_match_settings.deep_dup
|
72
72
|
end
|
73
73
|
|
74
74
|
def screenshot
|
@@ -376,12 +376,12 @@ module Applitools
|
|
376
376
|
Applitools::EyesScreenshot::COORDINATE_TYPES[:context_relative],
|
377
377
|
Applitools::EyesScreenshot::COORDINATE_TYPES[:screenshot_as_is]
|
378
378
|
)
|
379
|
-
|
379
|
+
|
380
380
|
Applitools::FloatingRegion.new(
|
381
381
|
updated_region.left,
|
382
382
|
updated_region.top,
|
383
|
-
|
384
|
-
|
383
|
+
updated_region.width,
|
384
|
+
updated_region.height,
|
385
385
|
r.max_left_offset,
|
386
386
|
r.max_top_offset,
|
387
387
|
r.max_right_offset,
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.17.
|
4
|
+
version: 3.17.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|