chromedriver_update 0.1.7 → 0.1.8
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 +14 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a692227e492aa71eef9d98f686af91343c55bf33ca1dd94ffc8ed676477bada
|
4
|
+
data.tar.gz: 932c93437c817f28e6aa76ce635e404af61fcffccc7c3e34a38b7cc617c2b677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 720cb831b5a5736c388519fe97d12be36a36ce4cc78665f54149a2b7a4801709e2db7abf09dabaaf9d1c57dff957bcbb9ee3882ee709a9fe5657ea2d16c1464f
|
7
|
+
data.tar.gz: d461a29c79912443e7cf7017b8f6e1f78a871f9f4f19ad34b94c361741a30f4ec84a7cdd1d14d5d68f06759136c6937b2196afd144910bbe54aff209fdcc9c8d
|
data/lib/chromedriver_update.rb
CHANGED
@@ -81,7 +81,7 @@ class ChromedriverUpdate
|
|
81
81
|
if OS.windows?
|
82
82
|
"https://storage.googleapis.com/chrome-for-testing-public/#{version}/win64/chromedriver-win64.zip"
|
83
83
|
elsif OS.mac?
|
84
|
-
"https://storage.googleapis.com/chrome-for-testing-public/#{version}/
|
84
|
+
"https://storage.googleapis.com/chrome-for-testing-public/#{version}/#{mac_platform}/chromedriver-mac-arm64.zip"
|
85
85
|
else
|
86
86
|
"https://storage.googleapis.com/chrome-for-testing-public/#{version}/linux64/chromedriver-linux64.zip"
|
87
87
|
end
|
@@ -97,7 +97,7 @@ class ChromedriverUpdate
|
|
97
97
|
platform = if OS.windows?
|
98
98
|
"win64"
|
99
99
|
elsif OS.mac?
|
100
|
-
|
100
|
+
mac_platform
|
101
101
|
else
|
102
102
|
"linux64"
|
103
103
|
end
|
@@ -106,6 +106,18 @@ class ChromedriverUpdate
|
|
106
106
|
latest_match['downloads']['chromedriver'].filter { |el| el['platform'] == platform }.first['url']
|
107
107
|
end
|
108
108
|
|
109
|
+
#
|
110
|
+
# Detect macOS platform
|
111
|
+
#
|
112
|
+
# @return [String] platform for macos
|
113
|
+
def self.mac_platform
|
114
|
+
if RUBY_PLATFORM.include?("x86") || RUBY_PLATFORM.include?("x64")
|
115
|
+
'mac-x64'
|
116
|
+
else
|
117
|
+
'mac-arm64'
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
109
121
|
#
|
110
122
|
# Get the path of the installed chromedriver
|
111
123
|
#
|