eyes_core 3.16.13 → 3.16.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/connectivity/server_connector.rb +1 -1
- data/lib/applitools/core/session.rb +11 -4
- data/lib/applitools/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5782d1ae89609a7fe93772a2ef90fd1e53f20fd432939ad988cf4ae943490d5a
|
4
|
+
data.tar.gz: a8b39c4ed35d4e3dff6d2811c6edbd9d199d3112218798d95beb1f45aae21ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 843f71efa4898e3570004299c82733505eec9c56e1e74c7701cf04a18a051750998ac33522408844dd04889eaf0fe8b36d9468a1949a77915eb126487dd8db00
|
7
|
+
data.tar.gz: cb74c13c17dd7d3d2918f9289202800c9015ca5aa844977ae8c772c2315aec3b317c5105a60fb341ae512ddb0b2167192046446b8c2dea7eccffd466f1c36b28
|
@@ -288,7 +288,7 @@ module Applitools::Connectivity
|
|
288
288
|
raise Applitools::EyesError.new("Request failed: #{res.status} #{res.body} #{request_body}") unless res.success?
|
289
289
|
|
290
290
|
response = Oj.load(res.body)
|
291
|
-
Applitools::Session.new(response
|
291
|
+
Applitools::Session.new(response, res.status == HTTP_STATUS_CODES[:created])
|
292
292
|
end
|
293
293
|
|
294
294
|
def stop_session(session, aborted = nil, save = false)
|
@@ -2,15 +2,22 @@
|
|
2
2
|
|
3
3
|
module Applitools
|
4
4
|
class Session
|
5
|
-
attr_reader :id, :url
|
5
|
+
attr_reader :id, :url, :new_session, :session_data
|
6
|
+
attr_accessor :new_session
|
7
|
+
private :new_session, :new_session=
|
6
8
|
|
7
|
-
def initialize(
|
8
|
-
@
|
9
|
-
@
|
9
|
+
def initialize(server_response, new_session)
|
10
|
+
@session_data = server_response
|
11
|
+
@id = session_data['id']
|
12
|
+
@url = session_data['url']
|
10
13
|
@new_session = new_session
|
11
14
|
end
|
12
15
|
|
13
16
|
def new_session?
|
17
|
+
unless (result = session_data['isNew']).nil?
|
18
|
+
return @new_session unless result.is_a?(TrueClass) | result.is_a?(FalseClass)
|
19
|
+
return result
|
20
|
+
end
|
14
21
|
@new_session
|
15
22
|
end
|
16
23
|
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.16.
|
4
|
+
version: 3.16.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oily_png
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - "<="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 0.46.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: webdrivers
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: pry
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -370,7 +384,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
384
|
- !ruby/object:Gem::Version
|
371
385
|
version: '0'
|
372
386
|
requirements: []
|
373
|
-
rubygems_version: 3.0.
|
387
|
+
rubygems_version: 3.0.8
|
374
388
|
signing_key:
|
375
389
|
specification_version: 4
|
376
390
|
summary: Core of the Applitools Ruby SDK
|