rubroxy 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +9 -2
- data/lib/rubroxy.rb +1 -1
- data/lib/rubroxy/proxy_core.rb +2 -2
- data/lib/rubroxy/version.rb +1 -1
- metadata +24 -26
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -3
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 269cb3fef4ddb422c91ee6547f7b6612e96aad34
|
4
|
+
data.tar.gz: d50bca73d5ae2e38a899d304fad60f2d4a5d0e42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad892f7e7ec6c3a2e89d1c1a0107c810b905a6a27d2d41843ffac90cada8bdfb5d087b0ea6ae58de6f5a1000ac520cc6f99bfa9bb8eeea07229363faee217b0f
|
7
|
+
data.tar.gz: 22ba8a6cf6ecd438235604fb045ae658f041ca780930a83c848edf90551568fc12a62469d66345bfc9f97f5ca8da234271a8c697afd9d285eead25d0df19db0b
|
data/README.md
CHANGED
@@ -55,9 +55,16 @@ The above will add the designated header to any request going to that URL.
|
|
55
55
|
|
56
56
|
If you think you can contribute to the project, whether it's through development or testing or when there's a bug to be fixed - feel free to clone the repo and create an issue so that I'm aware. Once it's complete and tested, create a Pull Request so that it can be merged in.
|
57
57
|
|
58
|
-
###
|
58
|
+
### Tasks
|
59
59
|
|
60
|
-
|
60
|
+
Rake is being used to make build, installation and releases easier to manage. You can find the tasks by typing `rake -T` at the terminal.
|
61
|
+
|
62
|
+
Useful tasks include:
|
63
|
+
|
64
|
+
- `rake console` - runs a ruby console with the gem required
|
65
|
+
- `rake build` - builds the gem with the current source
|
66
|
+
- `rake install` - installs any gems in the pkg directory
|
67
|
+
- `rake test` - runs rspec tests
|
61
68
|
|
62
69
|
### Todos
|
63
70
|
|
data/lib/rubroxy.rb
CHANGED
data/lib/rubroxy/proxy_core.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Rubroxy
|
2
|
-
# Main class of the proxy object, includes control methods
|
2
|
+
# Main class of the proxy object, includes control methods
|
3
3
|
class Proxy
|
4
4
|
attr_accessor :server
|
5
5
|
|
@@ -9,7 +9,7 @@ module Rubroxy
|
|
9
9
|
# @param port [Integer] The expected port number (eg: 8080)
|
10
10
|
# @param logger_level [Integer] Sets the detail of the logger included.
|
11
11
|
# @return [Proxy]
|
12
|
-
def initialize(host, port, logger_level =
|
12
|
+
def initialize(host, port, logger_level = 3)
|
13
13
|
logger = Logger.new($stderr)
|
14
14
|
logger.level = logger_level
|
15
15
|
access_log = [] if logger.level == 3
|
data/lib/rubroxy/version.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubroxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Prescott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
|
-
-
|
12
|
-
|
13
|
-
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRcwFQYDVQQDDA5qYW1l
|
14
|
-
cy5wcmVzY290dDETMBEGCgmSJomT8ixkARkWA2l0djETMBEGCgmSJomT8ixkARkW
|
15
|
-
A2NvbTAeFw0xNjA2MDgxMjQ5MjlaFw0xNzA2MDgxMjQ5MjlaMEMxFzAVBgNVBAMM
|
16
|
-
DmphbWVzLnByZXNjb3R0MRMwEQYKCZImiZPyLGQBGRYDaXR2MRMwEQYKCZImiZPy
|
17
|
-
LGQBGRYDY29tMIIBIjANBgkqhki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
-
date: 2016-06-30 00:00:00.000000000 Z
|
11
|
+
- certs/rubroxy.pem
|
12
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
34
13
|
dependencies:
|
35
14
|
- !ruby/object:Gem::Dependency
|
36
15
|
name: webrick
|
@@ -152,6 +131,26 @@ dependencies:
|
|
152
131
|
- - ">="
|
153
132
|
- !ruby/object:Gem::Version
|
154
133
|
version: 0.13.7
|
134
|
+
- !ruby/object:Gem::Dependency
|
135
|
+
name: rubygems-tasks
|
136
|
+
requirement: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0.2'
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: 0.2.4
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0.2'
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.2.4
|
155
154
|
description: A simple ruby built proxy
|
156
155
|
email: james.prescott@itv.com
|
157
156
|
executables: []
|
@@ -184,9 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
183
|
version: '0'
|
185
184
|
requirements: []
|
186
185
|
rubyforge_project:
|
187
|
-
rubygems_version: 2.
|
186
|
+
rubygems_version: 2.5.1
|
188
187
|
signing_key:
|
189
188
|
specification_version: 4
|
190
189
|
summary: Rubroxy
|
191
190
|
test_files: []
|
192
|
-
has_rdoc:
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED