eyes_core 3.17.18 → 3.17.23

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
- SHA256:
3
- metadata.gz: 61272f8c794f0a12c2eb824d096987716ddfbc0e4a7fd9346687a4ebc71cc95f
4
- data.tar.gz: 22a3c71582d53d02dc6bfd0911c094830483f8fe9738ed445e7636304ab96752
2
+ SHA1:
3
+ metadata.gz: e60232c8c4f56d9a3ce5d51451c34d4b52366d20
4
+ data.tar.gz: a9f712d9d757ca5ce3563b7346c59d0cd0f6893a
5
5
  SHA512:
6
- metadata.gz: b46455cced31d0443c153654f657087ae06c37501d62de78a1cddaac33a4e81045f5876c24e4c11bd91a4b252de546c09c5a65c9c1c47907b59b94a7b76c9975
7
- data.tar.gz: 46d878ddb0273372f69d835127dc86becbd190cbe34e77fc838b1e66c8d00f28838540ae226175f1395385ff334afa2af398de55d21ff2ec087b83dcc135c217
6
+ metadata.gz: 364de46faa621389349dc015d5ff061c38adcc7b3cfdf0c7cdd77d10728d27e178a3fe67499de52b381c59d1e87d45dcfa50ac38a476b3f6d77c7ca6d39f0c72
7
+ data.tar.gz: 24cd2636e19894ab0b65da7e44aee46a72df64f8c57b7bd0617a1e49855d382daebdced58c5efdfa48ba7e76395aebd240489c5c604ebbb8d27b25c39afb6f23
@@ -12,6 +12,14 @@ module Applitools
12
12
 
13
13
  def convert_viewport_rect_coordinates
14
14
  region = viewport_rect
15
+
16
+ session_info = Applitools::Utils::EyesSeleniumUtils.session_capabilities(driver)
17
+ if session_info['deviceScreenSize']
18
+ device_height = session_info['deviceScreenSize'].split('x').last.to_i
19
+ system_bars_height = driver.get_system_bars.map {|_,v| v['height'] }.sum
20
+ region['height'] = device_height - system_bars_height
21
+ end
22
+
15
23
  Applitools::Region.new(
16
24
  region['left'],
17
25
  region['top'],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '3.17.18'.freeze
4
+ VERSION = '3.17.23'.freeze
5
5
  end
@@ -0,0 +1,4 @@
1
+ module Applitools
2
+ JS_PATH = 'lib/applitools/selenium/scripts/node_modules'.freeze
3
+ SCRIPT_TEMPLATES_PATH = 'lib/applitools/selenium/scripts'.freeze
4
+ end
@@ -4,6 +4,7 @@ require 'forwardable'
4
4
  require 'delegate'
5
5
  require 'time'
6
6
  require_relative 'require_utils'
7
+ require_relative 'eyes_consts'
7
8
 
8
9
  module Applitools
9
10
  extend Applitools::RequireUtils
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.17.18
4
+ version: 3.17.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-01 00:00:00.000000000 Z
11
+ date: 2021-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oily_png
@@ -364,6 +364,7 @@ files:
364
364
  - lib/applitools/utils/image_utils.rb
365
365
  - lib/applitools/utils/utils.rb
366
366
  - lib/applitools/version.rb
367
+ - lib/eyes_consts.rb
367
368
  - lib/eyes_core.rb
368
369
  - lib/eyes_rspec.rb
369
370
  - lib/require_utils.rb
@@ -372,7 +373,7 @@ licenses:
372
373
  - Applitools
373
374
  metadata:
374
375
  yard.run: yri
375
- post_install_message:
376
+ post_install_message:
376
377
  rdoc_options: []
377
378
  require_paths:
378
379
  - lib
@@ -388,8 +389,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
388
389
  - !ruby/object:Gem::Version
389
390
  version: '0'
390
391
  requirements: []
391
- rubygems_version: 3.0.8
392
- signing_key:
392
+ rubyforge_project:
393
+ rubygems_version: 2.6.14.3
394
+ signing_key:
393
395
  specification_version: 4
394
396
  summary: Core of the Applitools Ruby SDK
395
397
  test_files: []