eyes_core 3.17.2 → 3.17.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/connectivity/server_connector.rb +0 -1
- data/lib/applitools/core/abstract_configuration.rb +1 -1
- data/lib/applitools/core/app_environment.rb +1 -1
- data/lib/applitools/core/eyes_base_configuration.rb +12 -3
- data/lib/applitools/core/jsonable.rb +5 -1
- data/lib/applitools/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9555d726813e8cb07c12090bc7400cddabf069153aa747c50be3d587b8e7dc9
|
4
|
+
data.tar.gz: 9d97a12b71ead6116338a4123db155aa6d8429dacd7332a53d0bab5645bead65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b9a79f42a06e88d463e1d83124556772505174d732a5d8edac6f8cc67ae0bc7733b38e8c95fef95db3ed1ae18f42f7639a80080641c971a9979a863c3e19c7
|
7
|
+
data.tar.gz: 1dd194f6bdcc78fc900295cda84dd9fe59b058bf4f08ec0751a1c6e2ec398136529b796e315f53dcbd0509252de57f3b98e5a13ac042f51b07d3049db732fa79
|
@@ -284,7 +284,6 @@ module Applitools::Connectivity
|
|
284
284
|
endpoint_url, body: request_body
|
285
285
|
)
|
286
286
|
raise Applitools::EyesError.new("Request failed: #{res.status} #{res.body} #{request_body}") unless res.success?
|
287
|
-
|
288
287
|
response = Oj.load(res.body)
|
289
288
|
Applitools::Session.new(response, res.status == HTTP_STATUS_CODES[:created])
|
290
289
|
end
|
@@ -14,7 +14,7 @@ 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
|
-
send "#{k}=", default_config[k]
|
17
|
+
send "#{k}=", default_config[k] unless default_config[k].nil?
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -18,7 +18,7 @@ module Applitools
|
|
18
18
|
'hostingApp' => hosting_app,
|
19
19
|
'displaySize' => display_size && display_size.to_hash,
|
20
20
|
'inferred' => inferred_environment,
|
21
|
-
'deviceInfo' => device_info.nil? || device_info.empty? ? 'Desktop' : device_info
|
21
|
+
'deviceInfo' => device_info.nil? || device_info.empty? ? 'Desktop' : device_info
|
22
22
|
}
|
23
23
|
end
|
24
24
|
|
@@ -12,9 +12,9 @@ require 'applitools/core/image_match_settings'
|
|
12
12
|
module Applitools
|
13
13
|
class EyesBaseConfiguration < AbstractConfiguration
|
14
14
|
DEFAULT_CONFIG = {
|
15
|
-
branch_name: ENV['APPLITOOLS_BRANCH']
|
16
|
-
parent_branch_name: ENV['APPLITOOLS_PARENT_BRANCH']
|
17
|
-
baseline_branch_name: ENV['APPLITOOLS_BASELINE_BRANCH']
|
15
|
+
branch_name: ENV['APPLITOOLS_BRANCH'],
|
16
|
+
parent_branch_name: ENV['APPLITOOLS_PARENT_BRANCH'],
|
17
|
+
baseline_branch_name: ENV['APPLITOOLS_BASELINE_BRANCH'],
|
18
18
|
save_diffs: false,
|
19
19
|
server_url: ENV['APPLITOOLS_SERVER_URL'] ||
|
20
20
|
ENV['bamboo_APPLITOOLS_SERVER_URL'] || Applitools::Connectivity::ServerConnector::DEFAULT_SERVER_URL,
|
@@ -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
|
@@ -42,7 +42,11 @@ module Applitools
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def json_data
|
45
|
-
result = self.class.json_methods.sort.map
|
45
|
+
result = self.class.json_methods.sort.map do |k,v|
|
46
|
+
val = json_value(send(v))
|
47
|
+
next if val.nil?
|
48
|
+
[k, val]
|
49
|
+
end.compact.to_h
|
46
50
|
result = self.class.wrap_data_block.call(result) if self.class.wrap_data_block.is_a? Proc
|
47
51
|
result
|
48
52
|
end
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|
@@ -370,7 +370,7 @@ licenses:
|
|
370
370
|
- Applitools
|
371
371
|
metadata:
|
372
372
|
yard.run: yri
|
373
|
-
post_install_message:
|
373
|
+
post_install_message:
|
374
374
|
rdoc_options: []
|
375
375
|
require_paths:
|
376
376
|
- lib
|
@@ -387,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
387
387
|
version: '0'
|
388
388
|
requirements: []
|
389
389
|
rubygems_version: 3.0.8
|
390
|
-
signing_key:
|
390
|
+
signing_key:
|
391
391
|
specification_version: 4
|
392
392
|
summary: Core of the Applitools Ruby SDK
|
393
393
|
test_files: []
|