eyes_core 3.15.6.beta → 3.15.7.beta
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/core/eyes_base.rb +1 -12
- data/lib/applitools/core/eyes_base_configuration.rb +25 -3
- data/lib/applitools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99669b31d17f34f6a29365d3aa30df2b8947c8e3ed71a2b0649f60ea1cc8b007
|
4
|
+
data.tar.gz: 6181740fe07b164c8c7617308b4acd6de9e37a35d4743af005cd2ea5978dd4b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
54
|
-
validation_errors[:
|
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
|
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.15.
|
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-
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|