chromedriver_update 0.1.5 → 0.1.7

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: 8736ebfde62b10d5b4491b4f0563f1ae891aee584bb4fd497691055d0a0fee83
4
- data.tar.gz: 19d916a82d4ffb71d27ef12625bc850d30369156e97c039fcfa3e6ce9e47c190
3
+ metadata.gz: c884f0ee244e14fff32d0e7247c4d45964a900e7793d1759a454e2f6b6b9479a
4
+ data.tar.gz: b2dd4b60392c743c87cded44de9c33d7a3ffd0578c326d1caf8f14949188b709
5
5
  SHA512:
6
- metadata.gz: a4687eacec5d9f7be86dc15a393c3944fae9f63088886c031d1591d5d49755fd8402718a20b0b4f668033a5bf5c2d54977969017ba7942f0cbbb923a218c29b6
7
- data.tar.gz: 877d62955b895fdb03fa76bb0f5b2fdab48afe2cdfa9b4f3567787e2dc9c47610965d5c7e2a8852ae247095c97ba0945895eb0b87644e1a9c46f83fafeaea233
6
+ metadata.gz: b81f119ed0595efc509491d32240a1c31f70608e079eeb9dce3b6380451a04688a4b0645b4c01ed3469fddcb59b89dd8e73ec2ceac4f67412ff3d658fe4d34d9
7
+ data.tar.gz: f04d7088733b286f5d0dd6e7aa9039fb3019fc454134a7055b82cc69be7db692445585ef1c8626803d664c00d5078772db2a8b2b85f5a65e88751dec4505e9b6
@@ -1,3 +1,3 @@
1
1
  class ChromedriverUpdate
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.7'.freeze
3
3
  end
@@ -24,6 +24,7 @@ class ChromedriverUpdate
24
24
  chromedriver_zip = HTTParty.get(chromedriver_closest_link_for_version(installed_chrome_version))
25
25
  end
26
26
  destination_dir = File.expand_path(File.dirname(__FILE__) + "/../tmp")
27
+ FileUtils.mkdir_p destination_dir
27
28
  Zip::File.open_buffer(chromedriver_zip.body) do |zip_files|
28
29
  zip_files.each do |entry|
29
30
  if (entry.name.end_with?("/chromedriver") || entry.name.end_with?("/chromedriver.exe"))
@@ -51,7 +52,7 @@ class ChromedriverUpdate
51
52
  version = `reg query "HKEY_CURRENT_USER\\Software\\Google\\Chrome\\BLBeacon" /v version`
52
53
  version.scan(/version[^0-9]*([0-9\.]+)/).flatten.first
53
54
  elsif OS.mac?
54
- version = `/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version`
55
+ version = `"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version`
55
56
  version.scan(/([0-9\.]+)/).flatten.first
56
57
  else
57
58
  version = ""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chromedriver_update
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthäus Beyrle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-31 00:00:00.000000000 Z
11
+ date: 2024-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os