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: 146e80c8c3ca9cc31827d827b108314e4bc8c123
4
- data.tar.gz: 017d81e0990de51280563d2eebf78da8d3bff6c5
3
+ metadata.gz: 9092c5a4bb75d02c9764395eb157057a7fd86a62
4
+ data.tar.gz: 283f7008d961b750ebbe1b9f0674a57f9985c5ec
5
5
  SHA512:
6
- metadata.gz: b616f32bd82a2de401e9e6d90440b308992c37cac951a6e5b3570d910fae5104be0fe0168899ef27065033c7cac43f6b149b361308b418f9367627cb0ca3f066
7
- data.tar.gz: 5680c689cd140e7f5c4db90e8fd2c589a3b059c9952049786eb41358d086d6ac3ad958cd60267a6daa251d9a8f6c7c68d3d823ce7a611ac13a3a5398f44e9b6f
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(full_url) {|cloud| File.write(where, cloud.read) }
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.6/'
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
- 'b5e8160b94389cd496cca79b55bf5d17e99b307e9413deccf29784d681daf648'
41
+ '8eb9d98d14480ae9ec5e2ca18b9c6e1b4e3a5427cdd6dfe5cb61cf1f53562b20'
41
42
  when /linux|arch/i
42
- 'da34c88504571008ae3d0aee8ef97b793b4e20b0483c1c0d5be1142cc19c35ac'
43
+ 'c89d850c984ed39142974391809e645c18e8037259f9cc4f09937d73315c3c94'
43
44
  when /darwin/i
44
- '0aa411f97aa36ab4fedd7155ff99d40c372d481152c8faa15a5fbf8f3eb8e503'
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.6
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-01-24 00:00:00.000000000 Z
11
+ date: 2022-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open-uri