eyes_core 3.17.4 → 3.17.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f8a78d42ef8b1b82f7ed13b3fb4d309e6415d45c4c9c9cf4b3ee016f5e6e106
|
4
|
+
data.tar.gz: 5e25e347613a02d1dac54e9fb6d10e805401aba89ecccb0c617bedafba524659
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1acc7b42d07e261e743f45f9bda93236e19cef7b6ea69bf49ca3c8f7e1707ef531b60061b28fef7a82409749417f79d2cbc318acc9515a0ce14f28039583d377
|
7
|
+
data.tar.gz: aa47f28301bfd0505ff172a515115ac3ce3b65829a4fe87b49cbacb3332775397cff906b9cbf1be7fd3ed0232d26192b5b28ce50c5773b953c8c6483a820822b
|
@@ -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
|
@@ -111,6 +111,7 @@ module Applitools
|
|
111
111
|
int_field :scale
|
112
112
|
int_field :remainder
|
113
113
|
boolean_field :ignore_caret
|
114
|
+
boolean_field :ignore_displacements
|
114
115
|
object_field :accessibility_validation, Applitools::AccessibilitySettings, true
|
115
116
|
object_field :properties, Array
|
116
117
|
|
@@ -141,6 +142,14 @@ module Applitools
|
|
141
142
|
default_match_settings.remainder = value
|
142
143
|
end
|
143
144
|
|
145
|
+
def custom_setter_for_ignore_displacements(value)
|
146
|
+
default_match_settings.ignore_displacements = value
|
147
|
+
end
|
148
|
+
|
149
|
+
def custom_getter_for_ignore_displacements(_value)
|
150
|
+
default_match_settings.ignore_displacements
|
151
|
+
end
|
152
|
+
|
144
153
|
def custom_getter_for_exact(_value)
|
145
154
|
default_match_settings.exact
|
146
155
|
end
|
@@ -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
|
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.10
|
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-06-
|
11
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|