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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aeb1534f10f21b90d821911585b9231e30a3b797
4
- data.tar.gz: e8588c1b71deb779a9a6b5bfaad10c6937897eed
3
+ metadata.gz: 81fc4bcdd4594d97fd3668c429ed12609556b24e
4
+ data.tar.gz: 9042cae64dfe1027155bd5cf7911691cab69eb56
5
5
  SHA512:
6
- metadata.gz: 5dbaf1558ca30899a678ea57919312909d990bbc3bdd572f8d8c687e937143f7a48a9c3882277c51222280959f42b8648354eac62bab31248c56ba988bdcc922
7
- data.tar.gz: 9cc5a0194b9f805809bff9cd4080b39a4fce55b168541e4a05a1c43e808af543363df4f55a4658bd00592c1351c486ba2de683df7617be8a516859a60ad49643
6
+ metadata.gz: 605dd03c166daa481d497ffd5f059728e2032b9a59d0b5dd01f9b3ae7b117919d814d00354930b98d4e0f867284681ee81a019e97b5e7926dcfbe048f9bf8b04
7
+ data.tar.gz: 821d2b6c53e30f159eecf4392b3813f437d732ac077dfc9016645a484c4c84846ec43250cc3680435cfcd221d21d57b469da56bbf68704acc40e95d28fee544d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  ==========
3
3
 
4
+ 0.0.7 - 26 Aug 2014
5
+ ----------
6
+
7
+ * Added support for windows binaries. (Thanks, @elementc!)
8
+
9
+
4
10
  0.0.6 - 26 Aug 2014
5
11
  ----------
6
12
 
@@ -33,7 +33,11 @@ module Chromedriver
33
33
  end
34
34
 
35
35
  def binary_path
36
- File.join platform_install_dir, "chromedriver"
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
@@ -1,5 +1,5 @@
1
1
  module Chromedriver
2
2
  class Helper
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -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/google_code_parser"))
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.6
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: []