eyes_universal 1.0.6 → 2.5.11

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: a814555af8190967a980522537577fc71a9d2bee
4
+ data.tar.gz: f4f66554eab6ee4fea9d52a6acd2fed4b054188e
5
5
  SHA512:
6
- metadata.gz: b616f32bd82a2de401e9e6d90440b308992c37cac951a6e5b3570d910fae5104be0fe0168899ef27065033c7cac43f6b149b361308b418f9367627cb0ca3f066
7
- data.tar.gz: 5680c689cd140e7f5c4db90e8fd2c589a3b059c9952049786eb41358d086d6ac3ad958cd60267a6daa251d9a8f6c7c68d3d823ce7a611ac13a3a5398f44e9b6f
6
+ metadata.gz: 2126ca993fcae019f1ce7f721bc5d03077cc7c981a180800687767102f8363fa135c44cec232642300656d95e62a1ab42e7004b1a5515957310a330ef08037be
7
+ data.tar.gz: cd983f7e5e3c9332a26eda947086ca463f91995ec13edc29d6ac5cacc8e7c7bf2dca8d395a51c637d804516ba7ddd79271171f185fcd50f6db5fbf30fbf6a9f9
@@ -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.binwrite(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%402.5.11/'
31
31
  end
32
32
 
33
33
  def full_url
@@ -35,21 +35,23 @@ module Applitools
35
35
  end
36
36
 
37
37
  def expected_binary_sha
38
+ return 'dc8dd79855c0e7b2280afad9807be14ef03bf404c5f9610b51f10b319b92f11b' if Gem.win_platform?
38
39
  case RUBY_PLATFORM
39
- when /mswin|windows/i
40
- 'b5e8160b94389cd496cca79b55bf5d17e99b307e9413deccf29784d681daf648'
40
+ when /mswin|windows|mingw/i
41
+ 'dc8dd79855c0e7b2280afad9807be14ef03bf404c5f9610b51f10b319b92f11b'
41
42
  when /linux|arch/i
42
- 'da34c88504571008ae3d0aee8ef97b793b4e20b0483c1c0d5be1142cc19c35ac'
43
+ '7a85935ebd3b29c198152e18a36b64abe10604f6c987dd4b2bc92e9dc5d2e2b0'
43
44
  when /darwin/i
44
- '0aa411f97aa36ab4fedd7155ff99d40c372d481152c8faa15a5fbf8f3eb8e503'
45
+ 'b7867db41b2ed333856da9115f1ae062979e492a34ef2ea2d7ba3f705816bf48'
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
- when /mswin|windows/i
54
+ when /mswin|windows|mingw/i
53
55
  'eyes-universal-win.exe'
54
56
  when /linux|arch/i
55
57
  'eyes-universal-linux'
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: 2.5.11
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-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open-uri