eyes_core 3.17.1 → 3.17.6

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: 7310e37493c80d222643d70ce6352cb784fe86d34b27b3fad8740665ee589063
4
- data.tar.gz: 1674260c00c316a86251db7e3dd3da07d77558314b8014ac2f3a90b423b6e17e
3
+ metadata.gz: c2fa10fbd0c2597600ea21107d50d6201a45f25b43e5c06ef208b1c9aebc466c
4
+ data.tar.gz: 1dbb1d656c766c68bb515e24ef0d3f99683e5ef53c3ce8aaa95ada9a7cdfdf2b
5
5
  SHA512:
6
- metadata.gz: 2ac7176e612f88b29670b6675dbcd424d88462ca3a7d055899244438b3e33d3b2f14961b03a48a49bf7444c23145cac744f1a20febea15199c2b2de07480e06d
7
- data.tar.gz: 03343c60d0e6547126f3279be37eac4ea1e138f32bbc1ab4853699b600f099d661b49df9531eb1f2d54311d95890b5dd68fe118dc697c26d466b9825bdafd761
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
- default_config = self.class.default_config
15
- default_config.keys.each do |k|
16
- send "#{k}=", default_config[k]
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 + ' (Chrome emulation)'
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 { |k, v| [k, json_value(send(v))] }.to_h
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.1'.freeze
4
+ VERSION = '3.17.6'.freeze
5
5
  end
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.1
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-05-26 00:00:00.000000000 Z
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: []