eyes_selenium 3.17.4 → 3.17.5

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: ab60fb86502ed730997a08c2de160bab0bbff7bc9651a7773fdd3e2971d49b18
4
- data.tar.gz: 717c9ec052aac3390691551e0e83febf7af4582f643031d49cd61226f6f61e86
3
+ metadata.gz: 119f032b65d1a768ae420679f6cb509480505767691d86b7417f3cb210fb7e8d
4
+ data.tar.gz: 100b6606ffb9a405d5e042a7d424fedd96599a426235ba1056792056c26d771e
5
5
  SHA512:
6
- metadata.gz: 49b8e28b830cd12d2cd5af053a07218ab9081d155d569fd1f42579ebcbe43e16c06612de3221b25a984a0928e4bb1e311c26d541b341b1f27d6f498fb7d430aa
7
- data.tar.gz: fab03f7637243850574bcf4354fdcbc7f0d26d55aabb8070daafdc199196ae27e9370f0c68ae717ba204fde2b3eb4fa904b41ae238ace4926e879c28d39b0d9e
6
+ metadata.gz: c48cea011af489db8c29a06b1b6b7ac3a10ab733f22fe46e9dc70ac9a0bd587bc5ed960c98692f34f39521e99f14d8dc3c7eb559de8ed3b9eb0adec2da41e5c6
7
+ data.tar.gz: 4388fbfb94018ef6629f019ece08eee0186bdcad74dcad6b83815aafb4a4c44b04233522d73b1f18bd829c395781b7e1610c7d419514abf3c0a772b01ae4cd61
@@ -7,7 +7,7 @@ module Applitools
7
7
  DEFAULT_CONFIG = proc do
8
8
  {
9
9
  platform: 'linux',
10
- browser_type: BrowserTypes::CHROME,
10
+ browser_type: BrowserType::CHROME,
11
11
  # size_mode: 'full-page',
12
12
  viewport_size: Applitools::RectangleSize.from_any_argument(width: 0, height: 0)
13
13
  }
@@ -25,7 +25,7 @@ module Applitools
25
25
  # end
26
26
  #
27
27
  def initialize(*args)
28
- super()
28
+ super
29
29
  case args[0]
30
30
  when String
31
31
  self.emulation_info = EmulationInfo.new.tap do |ei|
@@ -7,7 +7,7 @@ module Applitools
7
7
  DEFAULT_CONFIG = proc do
8
8
  {
9
9
  platform: 'linux',
10
- browser_type: BrowserTypes::CHROME,
10
+ browser_type: BrowserType::CHROME,
11
11
  # size_mode: 'full-page',
12
12
  viewport_size: Applitools::RectangleSize.from_any_argument(width: 0, height: 0)
13
13
  }
@@ -20,7 +20,7 @@ module Applitools
20
20
  end
21
21
 
22
22
  def initialize(options = {})
23
- super()
23
+ super
24
24
  if options[:width] && options[:height]
25
25
  self.viewport_size = Applitools::RectangleSize.from_any_argument(width: options[:width], height: options[:height])
26
26
  end
@@ -29,7 +29,7 @@ module Applitools
29
29
 
30
30
  def platform
31
31
  case browser_type
32
- when BrowserTypes::EDGE_LEGACY, BrowserTypes::EDGE_CHROMIUM, BrowserTypes::EDGE_CHROMIUM_ONE_VERSION_BACK
32
+ when BrowserType::EDGE_LEGACY, BrowserType::EDGE_CHROMIUM, BrowserType::EDGE_CHROMIUM_ONE_VERSION_BACK
33
33
  'windows'
34
34
  else
35
35
  'linux'
@@ -3,11 +3,16 @@ module Applitools
3
3
  class IRenderBrowserInfo < ::Applitools::AbstractConfiguration
4
4
 
5
5
  object_field :viewport_size, Applitools::RectangleSize
6
- enum_field :browser_type, BrowserTypes.enum_values
6
+ enum_field :browser_type, BrowserType.enum_values
7
7
  string_field :platform
8
8
  string_field :size_mode
9
9
  string_field :baseline_env_name
10
10
 
11
+ def initialize(options = {})
12
+ super()
13
+ self.baseline_env_name = options[:baseline_env_name] if options[:baseline_env_name]
14
+ end
15
+
11
16
  def to_s
12
17
  return "#{viewport_size} (#{browser_type})"
13
18
  end
@@ -21,10 +21,10 @@ module Applitools
21
21
  end
22
22
 
23
23
  def initialize(options = {})
24
- super()
24
+ super
25
25
  self.ios_device_info = EmulationInfo.new.tap do |ei|
26
26
  ei.device_name = options[:device_name]
27
- ei.screen_orientation = options[:screen_orientation] || options[:orientation] || IosScreenshotOrientation::PORTRAIT
27
+ ei.screen_orientation = options[:screen_orientation] || options[:orientation] || IosScreenOrientation::PORTRAIT
28
28
  end
29
29
  end
30
30
 
@@ -40,7 +40,7 @@ module Applitools
40
40
 
41
41
  class EmulationInfo < EmulationBaseInfo
42
42
  enum_field :device_name, IosDeviceName.enum_values
43
- enum_field :screen_orientation, IosScreenshotOrientation.enum_values
43
+ enum_field :screen_orientation, IosScreenOrientation.enum_values
44
44
 
45
45
  def json_data
46
46
  {
@@ -1,4 +1,4 @@
1
- module IosScreenshotOrientation
1
+ module IosScreenOrientation
2
2
  extend self
3
3
  PORTRAIT ='portrait'
4
4
  LANDSCAPE_LEFT = 'landscapeLeft'
@@ -23,7 +23,7 @@ module Applitools
23
23
  end
24
24
 
25
25
  def initialize(options = {})
26
- super()
26
+ super
27
27
  if options[:width] && options[:height]
28
28
  self.viewport_size = Applitools::RectangleSize.from_any_argument(width: options[:width], height: options[:height])
29
29
  end
@@ -33,7 +33,7 @@ module Applitools
33
33
  def platform
34
34
  return 'ios' if ios_device_info
35
35
  case browser_type
36
- when BrowserTypes::EDGE_LEGACY, BrowserTypes::EDGE_CHROMIUM, BrowserTypes::EDGE_CHROMIUM_ONE_VERSION_BACK
36
+ when BrowserType::EDGE_LEGACY, BrowserType::EDGE_CHROMIUM, BrowserType::EDGE_CHROMIUM_ONE_VERSION_BACK
37
37
  'windows'
38
38
  else
39
39
  'linux'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.4'.freeze
4
+ VERSION = '3.17.5'.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.4
4
+ version: 3.17.5
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-11 00:00:00.000000000 Z
11
+ date: 2020-06-15 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.4
19
+ version: 3.17.5
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.4
26
+ version: 3.17.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: selenium-webdriver
29
29
  requirement: !ruby/object:Gem::Requirement