eyes_core 3.17.3 → 3.17.4

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: c787872bfae6a5ebff57943e35298ec87694ddb2c981da7269d153c0070feab9
4
- data.tar.gz: 3879aa521a421e7ad6ad454de14ded53873bf04fe931dcf5088c143e564a22cf
3
+ metadata.gz: 312e54caac6310abd60d5bc82d8e0897fc635d374a66744f560143232d324d0a
4
+ data.tar.gz: 06c6261334f611245938c4653bb2e6619a6309538285e3ace4d4bcfc4e2be214
5
5
  SHA512:
6
- metadata.gz: f75c0d8811e9d2dfe57af4e4c43122dc0f501db4fbf14024218fd2c8c0c5d6e654953c17b57d66913ce4eb7255ad73bdd74bc432c8de8233f20caccd6e553b63
7
- data.tar.gz: cab966515a359bdccbb8e42dd43195624e9bd96ecc376ee29b3fddf17e5ed8520201b5a53221ed0dd8de7dc73c38418fdc4022ca2f8edc54dc0809f757c3eb46
6
+ metadata.gz: 86a30cb5da86b0f128f3265f52c61880f429eb5310529a1fbf755b013c6e017515327c11d0507513acee261c57ca89d24b33306d69ea4cdea9dadb9455d82172
7
+ data.tar.gz: 9ab3f66d06e33475bcdf250b80fce6013f413ec1d77fc92457e14ac36052382a97d5de964dc06e63feeef0e455711c23c4989fd5b8d5b2156037f1711e489e0d
@@ -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
@@ -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,
@@ -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.3'.freeze
4
+ VERSION = '3.17.4'.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.3
4
+ version: 3.17.4
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-09 00:00:00.000000000 Z
11
+ date: 2020-06-11 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: []