eyes_selenium 3.17.5 → 3.17.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 119f032b65d1a768ae420679f6cb509480505767691d86b7417f3cb210fb7e8d
4
- data.tar.gz: 100b6606ffb9a405d5e042a7d424fedd96599a426235ba1056792056c26d771e
3
+ metadata.gz: e81278b147df24895ba9b7ca6182a8c709c8e64df2c5abc74e5f834260825aed
4
+ data.tar.gz: 1dc8b2beaa8b84b39d5e7663f897ea6bdf43ed7b7e3769955f20dbb3df6348e2
5
5
  SHA512:
6
- metadata.gz: c48cea011af489db8c29a06b1b6b7ac3a10ab733f22fe46e9dc70ac9a0bd587bc5ed960c98692f34f39521e99f14d8dc3c7eb559de8ed3b9eb0adec2da41e5c6
7
- data.tar.gz: 4388fbfb94018ef6629f019ece08eee0186bdcad74dcad6b83815aafb4a4c44b04233522d73b1f18bd829c395781b7e1610c7d419514abf3c0a772b01ae4cd61
6
+ metadata.gz: b8190f7ef1c3bbc79d5e99b9c46cbfe1a209267349ca787f76cab54c1297d414efbe8de2fd1c35fdfcff6f8f6a66436619b58f274be4a6edb913db26f92d6b41
7
+ data.tar.gz: aab5775f889d219b99e0d01080e1fcd381f7e9b1f363ffbc23287b713561d62f54d6ca3bcd9b42522937872d5d53ab39239516b395e3988a37d5f08b7010652b
@@ -25,18 +25,21 @@ module Applitools
25
25
  # end
26
26
  #
27
27
  def initialize(*args)
28
- super
28
+ options = Applitools::Utils.extract_options!(args.dup)
29
+ super(options)
29
30
  case args[0]
30
31
  when String
31
32
  self.emulation_info = EmulationInfo.new.tap do |ei|
32
33
  ei.device_name = args[0]
33
- ei.screen_orientation = args[1] || Orientations::PORTRAIT
34
+ ei.screen_orientation = args[1] || Orientation::PORTRAIT
34
35
  end
35
36
  when Hash
36
37
  self.emulation_info = EmulationInfo.new.tap do |ei|
37
38
  ei.device_name = args[0][:device_name]
38
- ei.screen_orientation = args[0][:screen_orientation] || Orientations::PORTRAIT
39
+ ei.screen_orientation = args[0][:screen_orientation] || Orientation::PORTRAIT
39
40
  end
41
+ else
42
+ raise Applitools::EyesIllegalArgument, 'You should pass :device_name and :screen_orientation'
40
43
  end
41
44
  end
42
45
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.5'.freeze
4
+ VERSION = '3.17.6'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eyes_selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.17.5
4
+ version: 3.17.6
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-06-15 00:00:00.000000000 Z
11
+ date: 2020-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eyes_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.17.5
19
+ version: 3.17.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.17.5
26
+ version: 3.17.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: selenium-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement