eyes_universal 1.0.6 → 1.0.9
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9092c5a4bb75d02c9764395eb157057a7fd86a62
|
4
|
+
data.tar.gz: 283f7008d961b750ebbe1b9f0674a57f9985c5ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c843205ee11cd3d902837cd60811ac8ad1bebb7ccea92db91117867914dec788affe7bee2087a7619ec37fbb9677206a4b2b2e64006debe66669ae25e7d06e21
|
7
|
+
data.tar.gz: c01918351af246d338c81b5be01b88090456c300f69c544bf1de99958ae0aae851a307a6f8006686404e6912d10eebc587fa5adc727bba1a7bd7b402af5bd9e5
|
@@ -11,7 +11,7 @@ module Applitools
|
|
11
11
|
def download(to)
|
12
12
|
puts "[eyes-universal] Downloading Eyes universal server from #{full_url}"
|
13
13
|
where = filepath(to)
|
14
|
-
open
|
14
|
+
full_url.open {|cloud| File.write(where, cloud.read) }
|
15
15
|
if Digest::SHA256.file(where).to_s == expected_binary_sha
|
16
16
|
FileUtils.chmod('+x', where)
|
17
17
|
puts "[eyes-universal] Download complete. Server placed in #{where}"
|
@@ -27,7 +27,7 @@ module Applitools
|
|
27
27
|
private
|
28
28
|
|
29
29
|
def base_url
|
30
|
-
'https://github.com/applitools/eyes.sdk.javascript1/releases/download/%40applitools/eyes-universal%401.0.
|
30
|
+
'https://github.com/applitools/eyes.sdk.javascript1/releases/download/%40applitools/eyes-universal%401.0.9/'
|
31
31
|
end
|
32
32
|
|
33
33
|
def full_url
|
@@ -35,19 +35,21 @@ module Applitools
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def expected_binary_sha
|
38
|
+
return '8eb9d98d14480ae9ec5e2ca18b9c6e1b4e3a5427cdd6dfe5cb61cf1f53562b20' if Gem.win_platform?
|
38
39
|
case RUBY_PLATFORM
|
39
40
|
when /mswin|windows/i
|
40
|
-
'
|
41
|
+
'8eb9d98d14480ae9ec5e2ca18b9c6e1b4e3a5427cdd6dfe5cb61cf1f53562b20'
|
41
42
|
when /linux|arch/i
|
42
|
-
'
|
43
|
+
'c89d850c984ed39142974391809e645c18e8037259f9cc4f09937d73315c3c94'
|
43
44
|
when /darwin/i
|
44
|
-
'
|
45
|
+
'2bf73d118f81b33379fa5527ed8fb5508966d88299315121b44f47570923f8e8'
|
45
46
|
else
|
46
47
|
raise 'Unsupported platform'
|
47
48
|
end
|
48
49
|
end
|
49
50
|
|
50
51
|
def filename
|
52
|
+
return 'eyes-universal-win.exe' if Gem.win_platform?
|
51
53
|
case RUBY_PLATFORM
|
52
54
|
when /mswin|windows/i
|
53
55
|
'eyes-universal-win.exe'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_universal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open-uri
|