chromedriver-helper 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/lib/chromedriver/helper.rb +5 -3
- data/lib/chromedriver/helper/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/lib/chromedriver/helper.rb
CHANGED
@@ -2,6 +2,7 @@ require "chromedriver/helper/version"
|
|
2
2
|
require "chromedriver/helper/google_code_parser"
|
3
3
|
require 'fileutils'
|
4
4
|
require 'open-uri'
|
5
|
+
require 'rbconfig'
|
5
6
|
|
6
7
|
module Chromedriver
|
7
8
|
class Helper
|
@@ -54,9 +55,10 @@ module Chromedriver
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def platform
|
57
|
-
|
58
|
-
|
59
|
-
when /linux/ then
|
58
|
+
cfg = RbConfig::CONFIG
|
59
|
+
case cfg['host_os']
|
60
|
+
when /linux/ then
|
61
|
+
cfg['host_cpu'] =~ /x86_64|amd64/ ? "linux64" : "linux32"
|
60
62
|
when /darwin/ then "mac"
|
61
63
|
else "win"
|
62
64
|
end
|
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.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|