chromedriver-helper 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/README.md +73 -0
- data/Rakefile +1 -0
- data/bin/chromedriver +5 -0
- data/chromedriver-helper.gemspec +26 -0
- data/lib/chromedriver/helper.rb +59 -0
- data/lib/chromedriver/helper/google_code_parser.rb +18 -0
- data/lib/chromedriver/helper/version.rb +5 -0
- data/spec/assets/google-code.html +1396 -0
- data/spec/google_code_parser_spec.rb +28 -0
- data/spec/spec_helper.rb +2 -0
- metadata +89 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Chromedriver::Helper::GoogleCodeParser do
|
4
|
+
describe ".new" do
|
5
|
+
it "takes HTML" do
|
6
|
+
html = "<html><body><div>hello</div></body></html>"
|
7
|
+
parser = Chromedriver::Helper::GoogleCodeParser.new html
|
8
|
+
parser.html.should == html
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe "#downloads" do
|
13
|
+
it "returns a hash of names and urls" do
|
14
|
+
parser = Chromedriver::Helper::GoogleCodeParser.new File.read(File.join(File.dirname(__FILE__), "assets/google-code.html"))
|
15
|
+
parser.downloads.should == [
|
16
|
+
"//chromium.googlecode.com/files/chromedriver_win_16.0.902.0.zip",
|
17
|
+
"//chromium.googlecode.com/files/chromedriver_mac_16.0.902.0.zip",
|
18
|
+
"//chromium.googlecode.com/files/chromedriver_linux64_16.0.902.0.zip",
|
19
|
+
"//chromium.googlecode.com/files/chromedriver_linux32_16.0.902.0.zip",
|
20
|
+
"//chromium.googlecode.com/files/Chrome552.215.exe",
|
21
|
+
"//chromium.googlecode.com/files/Chrome517.41.exe",
|
22
|
+
"//chromium.googlecode.com/files/codesite.crx",
|
23
|
+
"//chromium.googlecode.com/files/chromecomicJPGS.zip"
|
24
|
+
]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chromedriver-helper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mike Dalessio
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-12-07 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &14253880 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *14253880
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: nokogiri
|
27
|
+
requirement: &14252700 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *14252700
|
36
|
+
description: ! '`chromedriver-helper` installs a script, `chromedriver`, in your gem
|
37
|
+
|
38
|
+
path. This script will, if necessary, download the appropriate binary
|
39
|
+
|
40
|
+
for your platform and install it into `~/.chromedriver-helper`, then
|
41
|
+
|
42
|
+
it will exec the real `chromedriver`. Easy peasy!
|
43
|
+
|
44
|
+
'
|
45
|
+
email:
|
46
|
+
- mike@csa.net
|
47
|
+
executables:
|
48
|
+
- chromedriver
|
49
|
+
extensions: []
|
50
|
+
extra_rdoc_files: []
|
51
|
+
files:
|
52
|
+
- .gitignore
|
53
|
+
- Gemfile
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- bin/chromedriver
|
57
|
+
- chromedriver-helper.gemspec
|
58
|
+
- lib/chromedriver/helper.rb
|
59
|
+
- lib/chromedriver/helper/google_code_parser.rb
|
60
|
+
- lib/chromedriver/helper/version.rb
|
61
|
+
- spec/assets/google-code.html
|
62
|
+
- spec/google_code_parser_spec.rb
|
63
|
+
- spec/spec_helper.rb
|
64
|
+
homepage: ''
|
65
|
+
licenses: []
|
66
|
+
post_install_message:
|
67
|
+
rdoc_options: []
|
68
|
+
require_paths:
|
69
|
+
- lib
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
requirements: []
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 1.8.10
|
85
|
+
signing_key:
|
86
|
+
specification_version: 3
|
87
|
+
summary: Easy installation and use of chromedriver, the Chromium project's selenium
|
88
|
+
webdriver adapter.
|
89
|
+
test_files: []
|