phantom_proxy 1.3.12 → 1.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44d8ebc829128ca93cacfb0de98c2e0ff3a73104
4
- data.tar.gz: beeda93d4972edceaa7421c6b045095b55cd2116
3
+ metadata.gz: 0f2a8c99ff79489977a89a447b925cffa920e646
4
+ data.tar.gz: 0ad4373807fc74922b5be2e1adc3589f9043cae9
5
5
  SHA512:
6
- metadata.gz: fcf34ae77e3929cefc1a1fdcc004bc7df3ba6dfe3e8edcf2fa08c80ae2f2f18b92529aea91366206963dc99b634448288e29d57e2b81e9da8b4be418a8ac9813
7
- data.tar.gz: 2d7dd5cb9c9b94fd4f58ce531971bc3febb779a71223d2a031784aa27cd12d1f8565601b07ef556812ea587a57cbfe38b41bbe270259c1598a5c09d95b952d42
6
+ metadata.gz: cb445296dd5404a1de8d0ad69bb2cc00dae20741b4043358c8dcbb457e3221ff550aa9615963d835d6da9216fe1b00695ede0f533276de3db58250242545fff0
7
+ data.tar.gz: ea80998b623346c72bba742e2be2c15399aa21663c0bcc7533d0a5e37f5ebeb7cbab82a472a1074717297061e8e5d458353d4d2ba58bccb3286cf33b926f0664
@@ -1 +1 @@
1
- 2.0.0-p643
1
+ 2.3.0
@@ -3,10 +3,10 @@ The phantom proxy acts as a http proxy server. It fetches the remote webpages
3
3
  with the help phantomjs (see http://www.phantomjs.org/ ).
4
4
 
5
5
  You can use this to get a page after the javascipt execution. By setting some HTTP
6
- headers you can get the page with all iframes included or as an image.
6
+ headers you can get the page with all iframes included or as an image.
7
7
 
8
8
  == Installation
9
- Install phanotmjs (see: http://code.google.com/p/phantomjs/wiki/BuildInstructions)
9
+ Install phanotmjs (see: http://code.google.com/p/phantomjs/wiki/BuildInstruction, http://phantomjs.org/download.html)
10
10
 
11
11
  On Debian:
12
12
 
@@ -17,21 +17,21 @@ On Debian:
17
17
  qmake-qt4 && make
18
18
 
19
19
  checkout phantom_proxy
20
-
20
+
21
21
  gem build phantom_proxy.gemspec
22
22
 
23
23
  gem install phantom_proxy-*.gem
24
-
24
+
25
25
  == Usage
26
26
  Run
27
- phantom_proxy
27
+ phantom_proxy
28
28
  either with -self (ip, port) to not use the thin::runner framework
29
29
  or
30
30
  with any thin parameter you want (e.g. -p 8080).
31
31
 
32
32
  Point your browser's proxy to http://localhost:8080 for testting.
33
33
 
34
- You can use the Net::HTTP lib to fetch page or use the phantom_client
34
+ You can use the Net::HTTP lib to fetch page or use the phantom_client
35
35
  (see: https://github.com/experteer/phantom_client).
36
36
 
37
37
  Monitoring(1.1.0):
@@ -58,4 +58,7 @@ If you created config as a directory place your config files in there. In the in
58
58
 
59
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
60
 
61
+ Phantomjs2.1.1(1.4.0)
62
+ The proxy now neew phantomjs 2.1.1
63
+
61
64
  == TODO
@@ -1,4 +1,5 @@
1
1
  var fs = require('fs');
2
+ var system = require('system');
2
3
 
3
4
  var framesWorked = 0;
4
5
  var frameCount = 1;
@@ -86,21 +87,21 @@ var loadpage = function(url, referer, success, failure, configure) {
86
87
  };
87
88
 
88
89
  function main() {
89
-
90
- if (phantom.args.length < 2) {
90
+ console.log(system.args)
91
+ if (system.args.length < 3) {
91
92
  console.log('Usage: proxy.js <picture filename or none> <load iframe(true/false)> <URL> <url param count> <url params...>');
92
93
  phantom.exit();
93
94
  } else {
94
- file_name = phantom.args[0];
95
- var loadIframes = phantom.args[1].match(/true/i) ? true : false;
96
- address = phantom.args[2];
95
+ file_name = system.args[1];
96
+ var loadIframes = system.args[2].match(/true/i) ? true : false;
97
+ address = system.args[3];
97
98
 
98
- var argCount = phantom.args[3];
99
+ var argCount = system.args[4];
99
100
 
100
101
  args = ""
101
102
 
102
103
  for (var i=0;i<argCount;i++) {
103
- args += phantom.args[i+4];
104
+ args += system.args[i+5];
104
105
  if (i<argCount-1) args += "&"
105
106
  }
106
107
  if (args.length > 0)
@@ -1,3 +1,3 @@
1
1
  module PhantomProxy
2
- VERSION = "1.3.12"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantom_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.12
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suddani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.8.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.8.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: goliath
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: journey
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.0.4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.0.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.6.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.6.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ruby-hmac
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.4.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.4.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.6'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.6'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '10.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10.0'
111
111
  description: This is a phyntonjs Proxy it allows you to fetch webpages and execute
@@ -117,9 +117,9 @@ executables:
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
- - .gitignore
121
- - .rbenv-gemsets
122
- - .ruby-version
120
+ - ".gitignore"
121
+ - ".rbenv-gemsets"
122
+ - ".ruby-version"
123
123
  - Gemfile
124
124
  - LICENSE.txt
125
125
  - README.rdoc
@@ -151,17 +151,17 @@ require_paths:
151
151
  - lib
152
152
  required_ruby_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - '>='
154
+ - - ">="
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - '>='
159
+ - - ">="
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.0.14
164
+ rubygems_version: 2.5.1
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: This is a phantomjs Proxy