phantom_proxy 1.2.16 → 1.2.17
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/phantomjsserver.rb +2 -2
- data/phantom_proxy.gemspec +2 -2
- metadata +5 -5
@@ -94,7 +94,7 @@ module PhantomJSProxy
|
|
94
94
|
|
95
95
|
def prepareUrl(env, params, req, https_request, type)
|
96
96
|
if type == "none"
|
97
|
-
url =
|
97
|
+
url = env['REQUEST_URI']#req.url
|
98
98
|
puts "URL is: #{url}"
|
99
99
|
if https_request
|
100
100
|
url['http'] = 'https' if url['http']
|
@@ -137,7 +137,7 @@ module PhantomJSProxy
|
|
137
137
|
env['rack.errors'].write("Paramas: "+params+"\n")
|
138
138
|
|
139
139
|
#this routes the request to the outgoing server incase its not html that we want to load
|
140
|
-
type = check_for_route(
|
140
|
+
type = check_for_route(env['REQUEST_URI'])#req.url
|
141
141
|
if type == "control_panel"
|
142
142
|
return control_panel.show()
|
143
143
|
elsif type != "none" and type != "base64"
|
data/phantom_proxy.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'phantom_proxy'
|
5
|
-
s.version = '1.2.
|
5
|
+
s.version = '1.2.17'
|
6
6
|
s.summary = "This is a phantomjs Proxy"
|
7
7
|
s.description = "This is a phyntonjs Proxy it allows you to fetch webpages and execute javascript in them."
|
8
8
|
s.authors = ["Daniel Sudmann"]
|
@@ -23,6 +23,6 @@ Gem::Specification.new do |s|
|
|
23
23
|
=end
|
24
24
|
s.homepage = 'http://experteer.com'
|
25
25
|
s.executables = ['phantom_proxy']
|
26
|
-
s.add_dependency('thin', '
|
26
|
+
s.add_dependency('thin', '= 1.3.1')
|
27
27
|
s.add_dependency('ruby-hmac', '>= 0.4.0')
|
28
28
|
end
|
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: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 17
|
10
|
+
version: 1.2.17
|
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: 2014-05-
|
18
|
+
date: 2014-05-16 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - "="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
hash: 25
|
30
30
|
segments:
|