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 +4 -4
- data/lib/applitools/universal_sdk/executable_finder.rb +14 -2
- data/lib/applitools/version.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5da50988617f6f1d1d8fa0d841ffb56513559c51d7226c0e7507a7c6ffb97bf
|
4
|
+
data.tar.gz: 5a4426568492124b82ed7cc0b701cf90b63e9b0e0e5095b87c4c4b12e2d4b17d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/applitools/version.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
|
3
3
|
module Applitools
|
4
|
-
VERSION = '4.6.
|
5
|
-
IMAGES_VERSION = '4.2.
|
6
|
-
UNIVERSAL_VERSION = '3.3.
|
7
|
-
UNIVERSAL_CORE_VERSION = '2.
|
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.
|
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-
|
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.
|
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.
|
124
|
+
version: 3.3.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: bundler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|