selenium 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -5,6 +5,6 @@
5
5
 
6
6
  * Initial release.
7
7
 
8
- == Version 0.0.2
8
+ == Version 0.0.3
9
9
 
10
10
  * Addign suppoert for windows.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/lib/selenium.rb CHANGED
@@ -6,12 +6,11 @@ $:.unshift(File.dirname(__FILE__)) unless
6
6
  require 'fileutils'
7
7
  require 'net/http'
8
8
 
9
- if RUBY_PLATFORM =~ /windows/
10
- require "zip/zipfilesystem"
11
- else
12
- require 'zip/zip'
13
- end
14
-
15
9
  require 'selenium/selenium'
16
10
  require 'selenium/runner'
17
- require 'selenium/jvm_options_probe'
11
+ require 'selenium/jvm_options_probe'
12
+
13
+ require 'rbconfig'
14
+ WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw|windows/
15
+
16
+ WINDOZE ? (require "zip/zipfilesystem") : (require 'zip/zip')
@@ -1,16 +1,13 @@
1
- if RUBY_PLATFORM =~ /windows/
2
- require 'win32-open3'
3
- else
4
- require "open3"
5
- end
1
+ require 'rbconfig'
6
2
 
3
+ require 'open3' unless Config::CONFIG['host_os'] =~ /mswin|mingw|windows/
7
4
 
8
5
  class JvmOptionsProbe
9
6
 
10
7
  def initialize
11
8
  @d32 = @d64 = @client = false
12
9
 
13
- if RUBY_PLATFORM =~ /windows/
10
+ if WINDOZE
14
11
  @help = `java -h`
15
12
  @d32 = (@help == `java -d32`) ? true : false
16
13
  @d64 = (@help == `java -d64`) ? true : false
data/selenium.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{selenium}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Shvets"]
@@ -55,14 +55,11 @@ Gem::Specification.new do |s|
55
55
 
56
56
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
57
  s.add_runtime_dependency(%q<jeweler>, [">= 0"])
58
- s.add_runtime_dependency(%q<rubyzip>, [">= 0"])
59
58
  else
60
59
  s.add_dependency(%q<jeweler>, [">= 0"])
61
- s.add_dependency(%q<rubyzip>, [">= 0"])
62
60
  end
63
61
  else
64
62
  s.add_dependency(%q<jeweler>, [">= 0"])
65
- s.add_dependency(%q<rubyzip>, [">= 0"])
66
63
  end
67
64
  end
68
65
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alexander Shvets
@@ -32,20 +32,6 @@ dependencies:
32
32
  - 0
33
33
  version: "0"
34
34
  requirement: *id001
35
- - !ruby/object:Gem::Dependency
36
- type: :runtime
37
- prerelease: false
38
- name: rubyzip
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
48
- requirement: *id002
49
35
  description: Gem wrapper for selenium server.
50
36
  email: alexander.shvets@gmail.com
51
37
  executables: