selenium-phantomjs 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/selenium/phantomjs/instance.rb +3 -2
- data/lib/selenium/phantomjs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 554f0411f4ae723a5d2d420c02154fcf74327363
|
4
|
+
data.tar.gz: d78a154185e98524ce40a1027aad9aeffee1165a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67a95d1affc9cada3e6f2ac718fdbff13bed117d22fda8895407f5667ebf8e9cc7553af7972c632cddfcc65b7ac468826bc79b2e89ac68a489c7c93f0e85cf1
|
7
|
+
data.tar.gz: 3a69d11b505960d1a4983f1d93a321a807aeb721e6f2c9debd589edbe59606a4766b142b2633a9c6639591c287e7d01977daab2f2f469d5bd8d318e2716b3983
|
@@ -20,7 +20,7 @@ module Selenium
|
|
20
20
|
arguments = if args.is_a? Hash
|
21
21
|
args.map do |k, v|
|
22
22
|
if v
|
23
|
-
%Q{--#{k}
|
23
|
+
%Q{--#{k}=#{v}}
|
24
24
|
else
|
25
25
|
"--#{k}"
|
26
26
|
end
|
@@ -31,7 +31,8 @@ module Selenium
|
|
31
31
|
|
32
32
|
raise ArgumentError.new("PhantomJS: interactive shell is not supported.") if arguments.empty?
|
33
33
|
|
34
|
-
|
34
|
+
command = [PHANTOMJS_BIN] + arguments
|
35
|
+
@pid = Process.spawn(*command, options)
|
35
36
|
Process.detach(@pid)
|
36
37
|
|
37
38
|
sleep 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selenium-phantomjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Slotin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.0.
|
93
|
+
rubygems_version: 2.0.6
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Running specs with Capybara, Selenium and PhantomJS
|