chauffeur 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25ed3b40862fa1fe1d343ac6a833f0e43d93f82768c174ee0206b9d95fd36731
|
4
|
+
data.tar.gz: 1690d87b8601b092abd548ef6815cfe218361297e2263945e5e028bcbb60341f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c102b7b06574f9d4219088f7eb2fafa3793037d2945fba3bae87486c6aaffe8eab0d5368eae844fc1ffa094d1e4595a0ce4c0991625b0a1bca570fd29fd204
|
7
|
+
data.tar.gz: 00173ee3792169314d7067efa58ba9580f6b6ee973678a4de6da19015582cef0ff1cd741562e7b8b4db31b8d06dfcd408bdc8d3caaaceb7611841489df359dc1
|
data/chauffeur.gemspec
CHANGED
@@ -3,8 +3,8 @@ require 'English'
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'chauffeur'
|
6
|
-
s.version = '0.0.
|
7
|
-
s.date = '
|
6
|
+
s.version = '0.0.7'
|
7
|
+
s.date = '2018-10-11'
|
8
8
|
s.summary = 'summary'
|
9
9
|
s.description = 'Chauffeur is a tool to help manage drivers for automating browsers.'
|
10
10
|
s.authors = ['Jeremy Gardner']
|
@@ -31,9 +31,9 @@ class FirefoxdriverDownloader < DriverDownloader
|
|
31
31
|
def all_driver_versions
|
32
32
|
resp = HTTParty.get(GECKODRIVER_URL, verify: false).parsed_response
|
33
33
|
doc = Nokogiri::XML.parse(resp)
|
34
|
-
ver_array = doc.css('div.release
|
34
|
+
ver_array = doc.css('div.release div.release-header div a').map(&:text)
|
35
35
|
raise 'No versions found' if ver_array.empty?
|
36
|
-
ver_array
|
36
|
+
ver_array - ['Latest release']
|
37
37
|
end
|
38
38
|
|
39
39
|
# Returns the url for the desired version of geckodriver
|
@@ -77,31 +77,31 @@ describe 'firefox downloader install methods' do
|
|
77
77
|
end
|
78
78
|
describe 'install_driver' do
|
79
79
|
it 'installs a latest driver version for linux32' do
|
80
|
-
Chauffeur.install_driver('firefox', 'linux32', '0.
|
80
|
+
Chauffeur.install_driver('firefox', 'linux32', '0.23.0', false)
|
81
81
|
file_exists = File.exist?("#{Chauffeur::PathExpander.path_to_geckodriver('linux32')}/geckodriver")
|
82
82
|
version = Chauffeur.driver_versions['geckodriver']['linux32'].to_f > 0
|
83
83
|
expect([file_exists, version]).to eq([true, true])
|
84
84
|
end
|
85
85
|
it 'returns a latest driver version for linux64' do
|
86
|
-
Chauffeur.install_driver('firefox', 'linux64', '0.
|
86
|
+
Chauffeur.install_driver('firefox', 'linux64', '0.23.0', false)
|
87
87
|
file_exists = File.exist?("#{Chauffeur::PathExpander.path_to_geckodriver('linux64')}/geckodriver")
|
88
88
|
version = Chauffeur.driver_versions['geckodriver']['linux64'].to_f > 0
|
89
89
|
expect([file_exists, version]).to eq([true, true])
|
90
90
|
end
|
91
91
|
it 'returns a latest driver version for macos' do
|
92
|
-
Chauffeur.install_driver('firefox','macos', '0.
|
92
|
+
Chauffeur.install_driver('firefox','macos', '0.23.0', false)
|
93
93
|
file_exists = File.exist?("#{Chauffeur::PathExpander.path_to_geckodriver('macos')}/geckodriver")
|
94
94
|
version = Chauffeur.driver_versions['geckodriver']['macos'].to_f > 0
|
95
95
|
expect([file_exists, version]).to eq([true, true])
|
96
96
|
end
|
97
97
|
it 'returns a latest driver version for win32' do
|
98
|
-
Chauffeur.install_driver('firefox', 'win32', '0.
|
98
|
+
Chauffeur.install_driver('firefox', 'win32', '0.23.0', false)
|
99
99
|
file_exists = File.exist?("#{Chauffeur::PathExpander.path_to_geckodriver('win32')}/geckodriver.exe")
|
100
100
|
version = Chauffeur.driver_versions['geckodriver']['win32'].to_f > 0
|
101
101
|
expect([file_exists, version]).to eq([true, true])
|
102
102
|
end
|
103
103
|
it 'returns a latest driver version for win64' do
|
104
|
-
Chauffeur.install_driver('firefox', 'win64', '0.
|
104
|
+
Chauffeur.install_driver('firefox', 'win64', '0.23.0', false)
|
105
105
|
file_exists = File.exist?("#{Chauffeur::PathExpander.path_to_geckodriver('win64')}/geckodriver.exe")
|
106
106
|
version = Chauffeur.driver_versions['geckodriver']['win64'].to_f > 0
|
107
107
|
expect([file_exists, version]).to eq([true, true])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Gardner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|