chromedriver-helper 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81fc4bcdd4594d97fd3668c429ed12609556b24e
4
- data.tar.gz: 9042cae64dfe1027155bd5cf7911691cab69eb56
3
+ metadata.gz: 4f5054f78e2f529cc6a450f5b791eef2bde67a7d
4
+ data.tar.gz: eb706a2bf947127267e409f02ec42b302cdfee3a
5
5
  SHA512:
6
- metadata.gz: 605dd03c166daa481d497ffd5f059728e2032b9a59d0b5dd01f9b3ae7b117919d814d00354930b98d4e0f867284681ee81a019e97b5e7926dcfbe048f9bf8b04
7
- data.tar.gz: 821d2b6c53e30f159eecf4392b3813f437d732ac077dfc9016645a484c4c84846ec43250cc3680435cfcd221d21d57b469da56bbf68704acc40e95d28fee544d
6
+ metadata.gz: 81ae656e4004080b694b81734a4306a985be18cd72a070fd64baa0382c4e76e1b0408d82e68a3521765a322bc823b958dacb58ef6b1a174014509f06980731fa
7
+ data.tar.gz: be82f10897dbc666a45c54afe8afa57e9ee251dbafef1802b4dba2d33fd7d0a3dc6ef015e0b3d09d48b37b18213af29d7bb407ae610d129011f4ef45fa556add
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # chromedriver-helper
2
2
 
3
- Easy installation and use of chromedriver, the Chromium project's
3
+ [![Build status](https://api.travis-ci.org/flavorjones/chromedriver-helper.svg)](https://travis-ci.org/flavorjones/chromedriver-helper)
4
+
5
+ Easy installation and use of [chromedriver](https://sites.google.com/a/chromium.org/chromedriver/), the Chromium project's
4
6
  selenium webdriver adapter.
5
7
 
6
8
  * [http://github.com/flavorjones/chromedriver-helper](http://github.com/flavorjones/chromedriver-helper)
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -16,6 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_development_dependency "rspec", "~> 3.0"
20
- s.add_runtime_dependency "nokogiri"
19
+ s.add_development_dependency "rspec", "~> 3.0"
20
+ s.add_development_dependency "rake"
21
+ s.add_runtime_dependency "nokogiri", "~> 1.6"
22
+ s.add_runtime_dependency "version_sorter", "~> 1.1"
21
23
  end
@@ -1,5 +1,6 @@
1
1
  require 'nokogiri'
2
2
  require 'open-uri'
3
+ require 'version_sorter'
3
4
 
4
5
  module Chromedriver
5
6
  class Helper
@@ -21,7 +22,7 @@ module Chromedriver
21
22
  end
22
23
 
23
24
  def newest_download
24
- downloads.last
25
+ VersionSorter.sort(downloads).last
25
26
  end
26
27
  end
27
28
  end
@@ -1,5 +1,5 @@
1
1
  module Chromedriver
2
2
  class Helper
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -23,6 +23,20 @@ describe Chromedriver::Helper::GoogleCodeParser do
23
23
  it "returns the last URL for the platform" do
24
24
  expect(parser.newest_download).to eq "http://chromedriver.storage.googleapis.com/2.4/chromedriver_mac32.zip"
25
25
  end
26
+
27
+ context "out-of-order versions" do
28
+ before do
29
+ allow(parser).to receive(:downloads).and_return([
30
+ "http://chromedriver.storage.googleapis.com/2.3/chromedriver_mac32.zip",
31
+ "http://chromedriver.storage.googleapis.com/2.4/chromedriver_mac32.zip",
32
+ "http://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip",
33
+ "http://chromedriver.storage.googleapis.com/2.2/chromedriver_mac32.zip",
34
+ ])
35
+ end
36
+
37
+ it "returns the newest version" do
38
+ expect(parser.newest_download).to eq("http://chromedriver.storage.googleapis.com/2.14/chromedriver_mac32.zip")
39
+ end
40
+ end
26
41
  end
27
42
  end
28
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chromedriver-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-26 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -25,19 +25,47 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: nokogiri
28
+ name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :runtime
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: nokogiri
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.6'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: version_sorter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.1'
41
69
  description: Easy installation and use of chromedriver, the Chromium project's selenium
42
70
  webdriver adapter.
43
71
  email:
@@ -49,6 +77,7 @@ extensions: []
49
77
  extra_rdoc_files: []
50
78
  files:
51
79
  - ".gitignore"
80
+ - ".travis.yml"
52
81
  - CHANGELOG.md
53
82
  - Gemfile
54
83
  - README.md
@@ -83,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
112
  version: '0'
84
113
  requirements: []
85
114
  rubyforge_project:
86
- rubygems_version: 2.2.2
115
+ rubygems_version: 2.4.5
87
116
  signing_key:
88
117
  specification_version: 4
89
118
  summary: Easy installation and use of chromedriver, the Chromium project's selenium