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 +4 -4
- data/lib/chromedriver_update/version.rb +1 -1
- data/lib/chromedriver_update.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c884f0ee244e14fff32d0e7247c4d45964a900e7793d1759a454e2f6b6b9479a
|
4
|
+
data.tar.gz: b2dd4b60392c743c87cded44de9c33d7a3ffd0578c326d1caf8f14949188b709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b81f119ed0595efc509491d32240a1c31f70608e079eeb9dce3b6380451a04688a4b0645b4c01ed3469fddcb59b89dd8e73ec2ceac4f67412ff3d658fe4d34d9
|
7
|
+
data.tar.gz: f04d7088733b286f5d0dd6e7aa9039fb3019fc454134a7055b82cc69be7db692445585ef1c8626803d664c00d5078772db2a8b2b85f5a65e88751dec4505e9b6
|
data/lib/chromedriver_update.rb
CHANGED
@@ -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 =
|
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.
|
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-
|
11
|
+
date: 2024-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|