phantom_proxy 1.2.9 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -48,5 +48,14 @@ Simply supply "-hmac THE_KEY" when starting the proxy and the proxy is secured
48
48
  Service script(1.2.1)
49
49
  In lib/phantom_proxy/install you can find an init.d script which makes it pretty easy to use phantom_proxy as a service with variable configured instances.
50
50
  A howto on the config of the services can be found in the init script.
51
-
51
+
52
+ Service script(1.2.10)
53
+ Added an example script fixed alot of bugs from previous versions
54
+ To succesfully run the service you have to create the following directories and files
55
+ mkdir /etc/phantom_proxy
56
+ mkdir /etc/phantom_proxy/config or place a config file there
57
+ If you created config as a directory place your config files in there. In the install dir you find an example script for this.
58
+
59
+ Inside phproxy you have to set PP_USER_STANDARD and PP_USER to the user you want to run the as or set this variable inside the proxy script.
60
+
52
61
  == TODO
@@ -0,0 +1,3 @@
1
+ PP_PID_NAME="phantom_proxy_instance"
2
+ PP_PORT=3001
3
+ PP_HOST=0.0.0.0
@@ -22,7 +22,7 @@ function evaluateWithVars(page, func, vars)
22
22
  }
23
23
 
24
24
  function insertFrames(url) {
25
-
25
+
26
26
  var page = masterPage;
27
27
  /*
28
28
  var page = require('webpage').create();
@@ -46,7 +46,7 @@ function insertFrames(url) {
46
46
  frames[i].innerHTML = "PHANTOMJS_PROXY_IFRAME"+i;
47
47
  }
48
48
  });
49
-
49
+
50
50
  //replace iframes with their data
51
51
  var content = new String(page.content);
52
52
  for (var i in frameContent) {
@@ -97,7 +97,7 @@ function loadIFrames(page) {
97
97
  });
98
98
 
99
99
  frameCount = frames.length+1;
100
-
100
+
101
101
  for (var i=0;i<frames.length;i++) {
102
102
  console.log("Frame: "+i+" : "+frames[i]);
103
103
  loadpage(frames[i]);
@@ -134,7 +134,7 @@ function main() {
134
134
  masterURL = address;
135
135
 
136
136
  masterPage = page;
137
-
137
+
138
138
  //catches status != 200 and throws error immidiatly
139
139
  page.onResourceReceived = function (response) {
140
140
  if (response.stage == "end" && response.url == address && response.status != 200)
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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 9
10
- version: 1.2.9
9
+ - 10
10
+ version: 1.2.10
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: 2012-10-05 00:00:00 +02:00
18
+ date: 2012-10-22 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -66,7 +66,8 @@ files:
66
66
  - lib/phantom_proxy/scripts/proxy.js
67
67
  - lib/phantom_proxy/config.ru
68
68
  - lib/phantom_proxy/web/control_panel.html
69
- - lib/phantom_proxy/install/phproxy
69
+ - lib/phantom_proxy/install/etc/init.d/phproxy
70
+ - lib/phantom_proxy/install/etc/phantom_proxy/config/example_config
70
71
  - bin/phantom_proxy
71
72
  - README.rdoc
72
73
  - Gemfile