eyes_core 3.6.10 → 3.7.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
  SHA1:
3
- metadata.gz: d15c919b0a3855dd876f5c97f1c663b4e26f7eb8
4
- data.tar.gz: 65015d063f2996ce8704e88b6761b63c12297e8a
3
+ metadata.gz: 1fd555392ee48c1c207beab2c5e248ac518f7bc5
4
+ data.tar.gz: b8b5bf989d505a8a6ece49967a3a7de99b0be126
5
5
  SHA512:
6
- metadata.gz: c15f4b873889c51b17d02550f40e99905975ec228ab3b4a4d89de9e68f15499aa53b4e2942cb40f665a293e085788c7c8d5fbd4561bebc11f2d8f0a1afa42d74
7
- data.tar.gz: 9208a20ae00ec92b16858cd44cffc4d6ec1abf4a7067f98759045087b71cc6d0cd4ace920fd056f574ee64b21b861a4fce26ce6440463fdcb36a5d922e511491
6
+ metadata.gz: df052a2836404f932d16a39b5b81abe766aed64584ea477f1005abdc04bfdd5a77159122e99fc028006aabded8c3ac5ee0c839a313a395f817a2675f8c5669b6
7
+ data.tar.gz: 4631723867f776356b878175d57e3733299c04c8c765a16db933894c0291d2114f1ed7133645a1c99ba51dfddf430e8b4d57f5c7a7341fec824084e511c6f674
@@ -74,7 +74,7 @@ module Applitools::Connectivity
74
74
  begin
75
75
  Applitools::EyesLogger.debug 'Sending match data...'
76
76
  res = long_post(@single_check_endpoint_url, content_type: 'application/octet-stream', body: body)
77
- rescue Errno::EWOULDBLOCK, Faraday::ConnectionFailed
77
+ rescue Errno::EWOULDBLOCK, Faraday::ConnectionFailed
78
78
  @delays ||= request_delay(RETRY_DELAY, RETRY_STEP_FACTOR, RETRY_MAX_DELAY)
79
79
  begin
80
80
  sleep @delays.next
@@ -56,6 +56,7 @@ module Applitools
56
56
  self.verbose_results = false
57
57
  self.failed = false
58
58
  @inferred_environment = nil
59
+ @properties = []
59
60
 
60
61
  get_app_output_method = ->(r, s) { get_app_output_with_screenshot r, s }
61
62
 
@@ -108,6 +109,10 @@ module Applitools
108
109
  !current_app_name.nil? && !current_app_name.empty? ? current_app_name : @app_name
109
110
  end
110
111
 
112
+ def add_property(name, value)
113
+ @properties << {name: name, value: value}
114
+ end
115
+
111
116
  def abort_if_not_closed
112
117
  if disabled?
113
118
  logger.info "#{__method__} Ignored"
@@ -382,7 +387,7 @@ module Applitools
382
387
  :scale_provider, :session_start_info, :should_match_window_run_once_on_timeout, :app_output_provider,
383
388
  :failed, :server_connector
384
389
 
385
- attr_reader :user_inputs
390
+ attr_reader :user_inputs, :properties
386
391
 
387
392
  private :full_agent_id, :full_agent_id=
388
393
 
@@ -496,7 +501,8 @@ module Applitools
496
501
  scenario_id_or_name: test_name, batch_info: test_batch,
497
502
  env_name: baseline_name, environment: app_env,
498
503
  default_match_settings: default_match_settings,
499
- branch_name: branch_name, parent_branch_name: parent_branch_name
504
+ branch_name: branch_name, parent_branch_name: parent_branch_name,
505
+ properties: properties
500
506
 
501
507
  logger.info 'Starting server session...'
502
508
  self.running_session = server_connector.start_session session_start_info
@@ -13,6 +13,7 @@ module Applitools
13
13
  @default_match_settings = options[:default_match_settings]
14
14
  @branch_name = options[:branch_name]
15
15
  @parent_branch_name = options[:parent_branch_name]
16
+ @properties = options[:properties]
16
17
  end
17
18
 
18
19
  def to_hash
@@ -26,7 +27,8 @@ module Applitools
26
27
  environment: @environment.to_hash,
27
28
  default_match_settings: @default_match_settings,
28
29
  branch_name: @branch_name,
29
- parent_branch_name: @parent_branch_name
30
+ parent_branch_name: @parent_branch_name,
31
+ properties: @properties
30
32
  }
31
33
  end
32
34
  end
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '3.6.10'.freeze
2
+ VERSION = '3.7.10'.freeze
3
3
  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.6.10
4
+ version: 3.7.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: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png