phantom_proxy 1.2.11 → 1.2.12
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/phantom_proxy/phantomjs.rb +2 -1
- metadata +4 -4
|
@@ -44,7 +44,7 @@ module PhantomJSProxy
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
@dom = invokePhantomJS(SCRIPT, [picture, loadFrames, url, url_args_.length, url_args])
|
|
47
|
+
@dom = invokePhantomJS(SCRIPT, [picture, loadFrames, "\""+url+"\"", url_args_.length, url_args])
|
|
48
48
|
|
|
49
49
|
puts("Opened page: "+ /Open page: (.*?) END/.match(@dom)[1])
|
|
50
50
|
|
|
@@ -95,6 +95,7 @@ module PhantomJSProxy
|
|
|
95
95
|
argString = " "+args.join(" ")
|
|
96
96
|
puts("Call phantomJS with: "+argString)
|
|
97
97
|
out = ""
|
|
98
|
+
|
|
98
99
|
IO.popen(PHANTOMJS_BIN+" --cookies-file=/tmp/phantom_proxy/cookies.txt --ignore-ssl-errors=yes "+script+argString) {|io|
|
|
99
100
|
out = io.readlines.join
|
|
100
101
|
}
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phantom_proxy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 7
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 1.2.
|
|
9
|
+
- 12
|
|
10
|
+
version: 1.2.12
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Daniel Sudmann
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-04-
|
|
18
|
+
date: 2013-04-24 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|