eyes_core 3.15.6.beta → 3.15.7.beta

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: a0b86ed94cca58f1f4d36d67789052aef97c2321ca7955413feece47f49553fa
4
- data.tar.gz: 28808f38fda8febebcbdceeb66786efb615106a7393279aba9596f93ce100ef8
3
+ metadata.gz: 99669b31d17f34f6a29365d3aa30df2b8947c8e3ed71a2b0649f60ea1cc8b007
4
+ data.tar.gz: 6181740fe07b164c8c7617308b4acd6de9e37a35d4743af005cd2ea5978dd4b4
5
5
  SHA512:
6
- metadata.gz: 6807da8c452a6086ad4a94b2db02077693d83a3c8526ede51936d5e62fc59ac571b61d3640cec2a8d74d994e2c7f9815aea97958788c2f23eed112aca0815e9a
7
- data.tar.gz: 752cc6cb631db683f5f6319481ba1fb2d24cf590c22627ecaa36951679abb768a4c6d1d33a42a1ec302fdda460d1daec6c69029c94114210df3dee0f9196fa71
6
+ metadata.gz: 19a9e8bdaf5d2e089a50752bb2dca193fa494f5d487e79a186e223b5515c6bf2b61aace719f36878555ecb9d4eec69d125fe7c4899f52067540db945a7888e1b
7
+ data.tar.gz: 0705edd3d2dcd15db7d1e8f0d94d1b412662330372555a9c1394b9489475039420711772e66cd4ad202b426ead215a990993c276786c82ee0f2a824d0c11e176
@@ -167,14 +167,6 @@ module Applitools
167
167
  }
168
168
  end
169
169
 
170
- def batch
171
- if @batch.nil?
172
- logger.info 'No batch set'
173
- self.batch = BatchInfo.new
174
- end
175
- @batch
176
- end
177
-
178
170
  def full_agent_id
179
171
  if !agent_id.nil? && !agent_id.empty?
180
172
  "#{agent_id} [#{base_agent_id}]"
@@ -269,10 +261,7 @@ module Applitools
269
261
  default_options = { session_type: 'SEQUENTIAL' }
270
262
  options = default_options.merge options
271
263
 
272
- if app_name && app_name.empty?
273
- # Applitools::ArgumentGuard.not_nil options[:app_name], 'options[:app_name]'
274
- self.app_name = options[:app_name] if options[:app_name]
275
- end
264
+ self.app_name = options[:app_name] if options[:app_name]
276
265
 
277
266
  # Applitools::ArgumentGuard.not_nil options[:test_name], 'options[:test_name]'
278
267
  self.test_name = options[:test_name] if options[:test_name]
@@ -22,7 +22,7 @@ module Applitools
22
22
 
23
23
  def initialize
24
24
  super
25
- self.batch_info = Applitools::BatchInfo.new
25
+ # self.batch_info = Applitools::BatchInfo.new
26
26
  end
27
27
 
28
28
  def merge(other_config)
@@ -50,13 +50,32 @@ module Applitools
50
50
 
51
51
  def valid?
52
52
  validation_errors.clear
53
- validation_errors[:app_name] = ':app_name is required' if app_name.empty?
54
- validation_errors[:test_name] = ':test_name is required' if test_name.empty?
53
+
54
+ validation_errors[:app_name] = ':app_name is required' unless app_name
55
+ validation_errors[:test_name] = ':test_name is required' unless test_name
56
+
57
+ validation_errors[:app_name] = ':app_name is required' if app_name && app_name.empty?
58
+ validation_errors[:test_name] = ':test_name is required' if test_name && test_name.empty?
55
59
  # validation_errors[:viewport_size] = ':viewport_size is required' if viewport_size.square.zero?
56
60
  return true if validation_errors.keys.size.zero?
57
61
  false
58
62
  end
59
63
 
64
+ def batch
65
+ if batch_info.nil?
66
+ Applitools::EyesLogger.info 'No batch set'
67
+ self.batch_info = BatchInfo.new
68
+ end
69
+ batch_info
70
+ end
71
+
72
+ def batch=(value)
73
+ self.batch_info = value
74
+ end
75
+
76
+ methods_to_delegate.push :batch
77
+ methods_to_delegate.push :batch=
78
+
60
79
  string_field :branch_name
61
80
  string_field :parent_branch_name
62
81
  string_field :baseline_branch_name
@@ -75,6 +94,9 @@ module Applitools
75
94
  string_field :host_app
76
95
  object_field :proxy, Applitools::Connectivity::Proxy
77
96
 
97
+ methods_to_delegate.delete(:batch_info)
98
+ methods_to_delegate.delete(:batch_info=)
99
+
78
100
  def short_description
79
101
  "#{test_name} of #{app_name}"
80
102
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.15.6.beta'.freeze
4
+ VERSION = '3.15.7.beta'.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.15.6.beta
4
+ version: 3.15.7.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png