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 CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  ==========
3
3
 
4
+ 0.0.5 - 15 Aug 2012
5
+ ----------
6
+
7
+ * Fixed support for JRuby on non-Windows platforms.
8
+
9
+
4
10
  0.0.4 - 1 Aug 2012
5
11
  ----------
6
12
 
@@ -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
- case RUBY_PLATFORM
58
- when /64.*linux|linux.*64/ then "linux64"
59
- when /linux/ then "linux32"
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
@@ -1,5 +1,5 @@
1
1
  module Chromedriver
2
2
  class Helper
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  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
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-02 00:00:00.000000000 Z
12
+ date: 2012-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec