chauffeur 0.0.4 → 0.0.5

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
- SHA256:
3
- metadata.gz: 15ec6da95667258f765c93b24ad02e4d3c7e82b761f587ae4cea95d9021b0542
4
- data.tar.gz: 724ddf2a5bf78eacc6a5980c0c17321e0fb39c670ec7c2241a01902572db1327
2
+ SHA1:
3
+ metadata.gz: cbd461cd51ac5b5a39e4228f296ec58d745b78be
4
+ data.tar.gz: a76393a1c82ec1d48c50c35b54c5dc91931cace8
5
5
  SHA512:
6
- metadata.gz: d1da8c2421dcc0d4227ea6bf7945ada6ab982d8a693c72fbb915184671c10ac0bf249714307afde0fef96070ecb1ea0037cd8f7ab4b219c66414645d93d10703
7
- data.tar.gz: cf37c76677be373daecab603fa2a02080a295bd6546147009219aa383f6db95d0addc7703d10d3b2e0b2d298a28a2381aa70c1ed35c61ee8e5e3ccee1a82ca6f
6
+ metadata.gz: ad1d4a5712b320e6bdacc1d558375c5177b2e124d0e333aaaf38a23103119cf221401e13ce54bc4b22be6fd1abcb516f709c32ea55060357c7bd3fffc2da601a
7
+ data.tar.gz: d584db708b2f9914b1d2e04615dd01f6713c0491b36b8d630449f9f5c3a20bc23c691f1fc19ca69eeb57a988cac83151ed1371bbc95562f52e6946664da9a90a
data/bin/chauffeur CHANGED
File without changes
data/chauffeur.gemspec CHANGED
@@ -3,7 +3,7 @@ require 'English'
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'chauffeur'
6
- s.version = '0.0.4'
6
+ s.version = '0.0.5'
7
7
  s.date = '2017-10-23'
8
8
  s.summary = 'summary'
9
9
  s.description = 'Chauffeur is a tool to help manage drivers for automating browsers.'
@@ -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 geckodriver
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 geckodriver
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'
@@ -1,5 +1,5 @@
1
- # require 'pry'
1
+ require 'pry'
2
2
  require_relative './chauffeur'
3
3
  require_relative './chauffeur/requires'
4
4
 
5
- # binding.pry
5
+ binding.pry
@@ -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.34')
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.34')
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
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.7.2
164
+ rubygems_version: 2.6.11
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: summary