eyes_core 4.6.0 → 4.6.1

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: 4259f81f87552a4729eee89d697e1d534ffae9c2e448251d2310dd05860f0df5
4
- data.tar.gz: d241c44d26afd831d18b9c48c04fef94878a520198736b6e5ecfd58f9b65d0c7
3
+ metadata.gz: f5da50988617f6f1d1d8fa0d841ffb56513559c51d7226c0e7507a7c6ffb97bf
4
+ data.tar.gz: 5a4426568492124b82ed7cc0b701cf90b63e9b0e0e5095b87c4c4b12e2d4b17d
5
5
  SHA512:
6
- metadata.gz: 61ab67a89de0e6d138e2b9cfc9dfa9318b52a49d4cc292996da92489c1bb9ea81ef759ceecd80c167cf37098f324e976171de1d3a7a7c4c0a7bb63ce2150dac7
7
- data.tar.gz: b487a9aa5139df95d5af1deeb8e3876d7db3ba8323e182da94a4f4155748b8f5b74793fce814e808ab458f7ee05d0359dceef677b003e2930a3653d967022e70
6
+ metadata.gz: 8a8de0abdfb28f62370dbb6d567c1995e45ba3ec9c836a794c03e2010072d29f7b96a54e2d800f67933843cf358233ea02755aaa60035942a7236f96192d788e
7
+ data.tar.gz: 0ae44b83b5085243e03dc156496f0eeef82dc91229c45d99b7fc5359f2c18a42218c4f3f3a45764a3926ce424ff60a03c1086761db603ebde1eb3bd169d3cddc
@@ -10,9 +10,17 @@ module Applitools::Connectivity
10
10
  server_lib ? File.join(server_lib.gem_dir, 'ext', 'eyes-universal', filename) : ''
11
11
  end
12
12
 
13
+ def other_filepaths
14
+ in_gem_path = File.join('gems', server_lib.full_name, 'ext', 'eyes-universal', filename)
15
+ Gem.path.map {|path| File.expand_path(in_gem_path, path) }
16
+ end
17
+
13
18
  def executable_filepath
14
- raise 'Universal server unrecognized' unless File.exist?(filepath) && File.executable?(filepath)
15
- filepath
19
+ raise 'Universal server not Found' if server_lib.nil?
20
+ return filepath if valid_file?(filepath)
21
+ core_path = other_filepaths.find {|path| valid_file?(path) }
22
+ return core_path if core_path
23
+ raise 'Universal server unrecognized'
16
24
  end
17
25
 
18
26
  private
@@ -41,5 +49,9 @@ module Applitools::Connectivity
41
49
  end
42
50
  end
43
51
 
52
+ def valid_file?(path)
53
+ File.exist?(path) && File.executable?(path)
54
+ end
55
+
44
56
  end
45
57
  end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module Applitools
4
- VERSION = '4.6.0'.freeze
5
- IMAGES_VERSION = '4.2.0'.freeze
6
- UNIVERSAL_VERSION = '3.3.0'.freeze
7
- UNIVERSAL_CORE_VERSION = '2.3.10'.freeze
4
+ VERSION = '4.6.1'.freeze
5
+ IMAGES_VERSION = '4.2.1'.freeze
6
+ UNIVERSAL_VERSION = '3.3.1'.freeze
7
+ UNIVERSAL_CORE_VERSION = '2.4.8'.freeze
8
8
  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: 4.6.0
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Applitools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-06 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 3.3.0
117
+ version: 3.3.1
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 3.3.0
124
+ version: 3.3.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler
127
127
  requirement: !ruby/object:Gem::Requirement