chauffeur 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/bin/chauffeur +0 -0
- data/chauffeur.gemspec +1 -1
- data/lib/chauffeur/downloaders/edgedriver_downloader.rb +2 -2
- data/lib/chauffeur/path_expander.rb +2 -2
- data/lib/pry_playground.rb +2 -2
- data/spec/chromedriver_downloader_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cbd461cd51ac5b5a39e4228f296ec58d745b78be
|
4
|
+
data.tar.gz: a76393a1c82ec1d48c50c35b54c5dc91931cace8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad1d4a5712b320e6bdacc1d558375c5177b2e124d0e333aaaf38a23103119cf221401e13ce54bc4b22be6fd1abcb516f709c32ea55060357c7bd3fffc2da601a
|
7
|
+
data.tar.gz: d584db708b2f9914b1d2e04615dd01f6713c0491b36b8d630449f9f5c3a20bc23c691f1fc19ca69eeb57a988cac83151ed1371bbc95562f52e6946664da9a90a
|
data/bin/chauffeur
CHANGED
File without changes
|
data/chauffeur.gemspec
CHANGED
@@ -27,7 +27,7 @@ class EdgedriverDownloader < DriverDownloader
|
|
27
27
|
@all_driver_versions.keys.sort.reverse.find { |k| k =~ /^\d+$/ }
|
28
28
|
end
|
29
29
|
|
30
|
-
# Returns all available versions of
|
30
|
+
# Returns all available versions of microsoft webdriver
|
31
31
|
def all_driver_versions
|
32
32
|
resp = HTTParty.get(driver_url, verify: false).parsed_response
|
33
33
|
doc = Nokogiri::XML.parse(resp)
|
@@ -38,7 +38,7 @@ class EdgedriverDownloader < DriverDownloader
|
|
38
38
|
output
|
39
39
|
end
|
40
40
|
|
41
|
-
# Returns the url for the desired version of
|
41
|
+
# Returns the url for the desired version of microsoft webdriver
|
42
42
|
# version: string - must match exactly the version in the download URL
|
43
43
|
# platform: string - must be win
|
44
44
|
def driver_download_url(version, platform)
|
@@ -20,7 +20,7 @@ class Chauffeur
|
|
20
20
|
case RbConfig::CONFIG['host_os']
|
21
21
|
when 'mingw32'
|
22
22
|
'win32'
|
23
|
-
when 'mac'
|
23
|
+
when 'mac', /darwin/
|
24
24
|
'mac32'
|
25
25
|
else
|
26
26
|
RbConfig::CONFIG['host_cpu'].eql?('x86_64') ? 'linux64' : 'linux32'
|
@@ -37,7 +37,7 @@ class Chauffeur
|
|
37
37
|
case RbConfig::CONFIG['host_os']
|
38
38
|
when 'mingw32'
|
39
39
|
ENV['architecture'].eql?('64') ? 'win64' : 'win32'
|
40
|
-
when 'mac'
|
40
|
+
when 'mac', /darwin/
|
41
41
|
'macos'
|
42
42
|
else
|
43
43
|
RbConfig::CONFIG['host_cpu'].eql?('x86_64') ? 'linux64' : 'linux32'
|
data/lib/pry_playground.rb
CHANGED
@@ -62,14 +62,14 @@ describe 'latest_driver_version' do
|
|
62
62
|
FileUtils.rm_r("#{Dir.pwd}/drivers") if File.exist?("#{Dir.pwd}/drivers")
|
63
63
|
end
|
64
64
|
it 'gives the latest version for current platform when none is given' do
|
65
|
-
expected_version = Gem::Version.new('2.
|
65
|
+
expected_version = Gem::Version.new('2.37')
|
66
66
|
found_version = @downloader.latest_driver_version('win32')
|
67
67
|
expect(found_version).to eq(expected_version)
|
68
68
|
end
|
69
69
|
|
70
70
|
it 'gives the latest version for windows when win32 is given' do
|
71
71
|
platform = 'win32'
|
72
|
-
expected_version = Gem::Version.new('2.
|
72
|
+
expected_version = Gem::Version.new('2.37')
|
73
73
|
found_version = @downloader.latest_driver_version(platform)
|
74
74
|
expect(found_version).to eq(expected_version)
|
75
75
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chauffeur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Gardner
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
164
|
+
rubygems_version: 2.6.11
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: summary
|