eyes_core 3.17.1 → 3.17.6
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/connectivity/server_connector.rb +0 -1
- data/lib/applitools/core/abstract_configuration.rb +5 -3
- data/lib/applitools/core/app_environment.rb +1 -1
- data/lib/applitools/core/eyes_base_configuration.rb +3 -4
- data/lib/applitools/core/jsonable.rb +5 -1
- data/lib/applitools/version.rb +1 -1
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2fa10fbd0c2597600ea21107d50d6201a45f25b43e5c06ef208b1c9aebc466c
|
4
|
+
data.tar.gz: 1dbb1d656c766c68bb515e24ef0d3f99683e5ef53c3ce8aaa95ada9a7cdfdf2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef785e7c125ad85f8f5078610ac97b71eb05b13f1cb7ff51c0c416d6697160aade1d1bddb9da4370956d5a13496fadf516cd98577ccf041e51d87f5afb5fc2b6
|
7
|
+
data.tar.gz: 17b96a3c1e32518fe69d261005c87857dc0a286dbf4f60cac76c3d78e5983ad3c743f41c4179e34d7d5a8bcab08ec33e38c9f1e6663f1b4bb3a0ace21f272ecf
|
@@ -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
|
@@ -11,9 +11,11 @@ module Applitools
|
|
11
11
|
def initialize
|
12
12
|
@config_hash = {}
|
13
13
|
self.validation_errors = {}
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
if self.class.respond_to? :default_config
|
15
|
+
default_config = self.class.default_config
|
16
|
+
default_config.keys.each do |k|
|
17
|
+
send "#{k}=", default_config[k] unless default_config[k].nil?
|
18
|
+
end
|
17
19
|
end
|
18
20
|
end
|
19
21
|
|
@@ -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
|
|
@@ -8,14 +8,13 @@ require 'applitools/core/match_level'
|
|
8
8
|
require 'applitools/core/match_level_setter'
|
9
9
|
require 'applitools/connectivity/server_connector'
|
10
10
|
require 'applitools/core/image_match_settings'
|
11
|
-
require 'active_support/deprecation'
|
12
11
|
|
13
12
|
module Applitools
|
14
13
|
class EyesBaseConfiguration < AbstractConfiguration
|
15
14
|
DEFAULT_CONFIG = {
|
16
|
-
branch_name: ENV['APPLITOOLS_BRANCH']
|
17
|
-
parent_branch_name: ENV['APPLITOOLS_PARENT_BRANCH']
|
18
|
-
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'],
|
19
18
|
save_diffs: false,
|
20
19
|
server_url: ENV['APPLITOOLS_SERVER_URL'] ||
|
21
20
|
ENV['bamboo_APPLITOOLS_SERVER_URL'] || Applitools::Connectivity::ServerConnector::DEFAULT_SERVER_URL,
|
@@ -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.6
|
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-
|
11
|
+
date: 2020-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: activesupport
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: bundler
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -384,7 +370,7 @@ licenses:
|
|
384
370
|
- Applitools
|
385
371
|
metadata:
|
386
372
|
yard.run: yri
|
387
|
-
post_install_message:
|
373
|
+
post_install_message:
|
388
374
|
rdoc_options: []
|
389
375
|
require_paths:
|
390
376
|
- lib
|
@@ -401,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
401
387
|
version: '0'
|
402
388
|
requirements: []
|
403
389
|
rubygems_version: 3.0.8
|
404
|
-
signing_key:
|
390
|
+
signing_key:
|
405
391
|
specification_version: 4
|
406
392
|
summary: Core of the Applitools Ruby SDK
|
407
393
|
test_files: []
|