chromedriver-helper 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/chromedriver/helper.rb +6 -1
- data/lib/chromedriver/helper/version.rb +1 -1
- data/spec/helper_spec.rb +17 -0
- data/spec/spec_helper.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81fc4bcdd4594d97fd3668c429ed12609556b24e
|
4
|
+
data.tar.gz: 9042cae64dfe1027155bd5cf7911691cab69eb56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 605dd03c166daa481d497ffd5f059728e2032b9a59d0b5dd01f9b3ae7b117919d814d00354930b98d4e0f867284681ee81a019e97b5e7926dcfbe048f9bf8b04
|
7
|
+
data.tar.gz: 821d2b6c53e30f159eecf4392b3813f437d732ac077dfc9016645a484c4c84846ec43250cc3680435cfcd221d21d57b469da56bbf68704acc40e95d28fee544d
|
data/CHANGELOG.md
CHANGED
data/lib/chromedriver/helper.rb
CHANGED
@@ -33,7 +33,11 @@ module Chromedriver
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def binary_path
|
36
|
-
|
36
|
+
if platform == "win"
|
37
|
+
File.join platform_install_dir, "chromedriver.exe"
|
38
|
+
else
|
39
|
+
File.join platform_install_dir, "chromedriver"
|
40
|
+
end
|
37
41
|
end
|
38
42
|
|
39
43
|
def platform_install_dir
|
@@ -57,5 +61,6 @@ module Chromedriver
|
|
57
61
|
else "win"
|
58
62
|
end
|
59
63
|
end
|
64
|
+
|
60
65
|
end
|
61
66
|
end
|
data/spec/helper_spec.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Chromedriver::Helper do
|
4
|
+
let(:helper) { Chromedriver::Helper.new }
|
5
|
+
|
6
|
+
describe "#binary_path" do
|
7
|
+
context "on a linux platform" do
|
8
|
+
before { allow(helper).to receive(:platform) { "linux32" } }
|
9
|
+
it { expect(helper.binary_path).to match(/chromedriver$/) }
|
10
|
+
end
|
11
|
+
|
12
|
+
context "on a windows platform" do
|
13
|
+
before { allow(helper).to receive(:platform) { "win" } }
|
14
|
+
it { expect(helper.binary_path).to match(/chromedriver\.exe$/) }
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require "rspec"
|
2
|
-
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib/chromedriver/helper
|
2
|
+
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib/chromedriver/helper"))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chromedriver-helper
|
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
|
- Mike Dalessio
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- spec/assets/google-code-bucket.xml
|
63
63
|
- spec/assets/google-code.html
|
64
64
|
- spec/google_code_parser_spec.rb
|
65
|
+
- spec/helper_spec.rb
|
65
66
|
- spec/spec_helper.rb
|
66
67
|
homepage: ''
|
67
68
|
licenses: []
|