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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3fec9e08863b0523e81a22dc9ca814594c1807af15103cd33d3ae5fdd920f6ff
4
- data.tar.gz: cd99b6053547f98d71919530ad7863ef2defaac8fd7ea829f64fecf5e4732ad7
3
+ metadata.gz: 5782d1ae89609a7fe93772a2ef90fd1e53f20fd432939ad988cf4ae943490d5a
4
+ data.tar.gz: a8b39c4ed35d4e3dff6d2811c6edbd9d199d3112218798d95beb1f45aae21ecf
5
5
  SHA512:
6
- metadata.gz: 917324723274f093a3806993011e5baf127b57c54500265d0317f7419fa3247a2a8bb1cf50a9ef1fc52269ea08f42d9bdced2ba8a714e90879ce890148fa97ac
7
- data.tar.gz: 99e9601adee40be269992a387c727dc91b12c0a3e6bd23d9b619a8c35cd5b5db7c34ccc019d2936576bba21e9524c3af2b0b3952cd68f059a612ca97b566c077
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['id'], response['url'], res.status == HTTP_STATUS_CODES[:created])
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(session_id, session_url, new_session)
8
- @id = session_id
9
- @url = session_url
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.16.13'.freeze
4
+ VERSION = '3.16.14'.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.16.13
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-06 00:00:00.000000000 Z
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.6
387
+ rubygems_version: 3.0.8
374
388
  signing_key:
375
389
  specification_version: 4
376
390
  summary: Core of the Applitools Ruby SDK