selenium-proxy 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/selenium-proxy.rb +3 -2
- metadata +4 -4
data/lib/selenium-proxy.rb
CHANGED
|
@@ -5,7 +5,7 @@ require 'selenium'
|
|
|
5
5
|
require 'drb/drb'
|
|
6
6
|
|
|
7
7
|
module SeleniumProxy
|
|
8
|
-
VERSION = '0.0.
|
|
8
|
+
VERSION = '0.0.2'
|
|
9
9
|
|
|
10
10
|
class Browser
|
|
11
11
|
def initialize(opts = {})
|
|
@@ -31,10 +31,11 @@ module SeleniumProxy
|
|
|
31
31
|
@@default_serenium_host = 'localhost'
|
|
32
32
|
@@default_serenium_port = 4444
|
|
33
33
|
|
|
34
|
-
def self.browser(opts = {}
|
|
34
|
+
def self.browser(opts = {})
|
|
35
35
|
drb, browser = nil, nil
|
|
36
36
|
begin
|
|
37
37
|
drb = DRbObject.new_with_uri(self.drb_uri(opts))
|
|
38
|
+
drb.alive? if drb.respond_to?(:alive?)
|
|
38
39
|
rescue DRb::DRbConnError => e
|
|
39
40
|
browser = self.new(StringIO.new).browser(opts)
|
|
40
41
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: selenium-proxy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Taku AMANO
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date:
|
|
18
|
+
date: 2011-01-23 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|