rubroxy 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab93edcac22cc9df6aaa24ecb577dbd0f73dd52d
4
- data.tar.gz: ddddc791cc4293d8195ea58cdb7437c228cee660
3
+ metadata.gz: 269cb3fef4ddb422c91ee6547f7b6612e96aad34
4
+ data.tar.gz: d50bca73d5ae2e38a899d304fad60f2d4a5d0e42
5
5
  SHA512:
6
- metadata.gz: f6835b39c4e16e6a673d0802054e055ab257c8457020a19e1b16920005dbcae443983617ac70a4fa03c6527c3c2553c773f327e13601a611e29d561b6de31e45
7
- data.tar.gz: 70963a7eaf0dc52fa305a426ef7c0799151361083c0115e7cf3a3185e21b7629e3e8019d76e51206ba21cc1786b2766f00bda85eebc2034c04163b4c2f763614
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
- ### Tests
58
+ ### Tasks
59
59
 
60
- We're using Rspec to build the tests for Rubroxy. If you want to run the current test suite just type `rspec` when in the rubroxy repo directory after cloning. All new features must come with relevant tests.
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
 
@@ -3,4 +3,4 @@ require 'webrick/httpproxy'
3
3
  require 'logger'
4
4
  require 'pry'
5
5
  require 'require_all'
6
- require_all 'lib/rubroxy'
6
+ require_rel 'rubroxy'
@@ -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 = 1)
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
@@ -1,4 +1,4 @@
1
1
  #:nodoc:
2
2
  module Rubroxy
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
4
4
  end
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.2
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
- -----BEGIN CERTIFICATE-----
13
- MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRcwFQYDVQQDDA5qYW1l
14
- cy5wcmVzY290dDETMBEGCgmSJomT8ixkARkWA2l0djETMBEGCgmSJomT8ixkARkW
15
- A2NvbTAeFw0xNjA2MDgxMjQ5MjlaFw0xNzA2MDgxMjQ5MjlaMEMxFzAVBgNVBAMM
16
- DmphbWVzLnByZXNjb3R0MRMwEQYKCZImiZPyLGQBGRYDaXR2MRMwEQYKCZImiZPy
17
- LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxw+qWVku
18
- dPd2ZRkIIWDZI+mzq0O9FvnAf7bsHQNUyVXD0Tp35vWTA4uMZ7KHK086LfBMEhR3
19
- 2JP9zR/TSvU/4lOYnzCn+p5y78wEsriYimBshWb5kvvJSe9qw2cNZ6C4RsILVjvi
20
- cQs+IBAQCEkiA7yO7A18PYEWbXi2aWCUyIzjO6K7i1ImUtHrw3xEdklCtXaxF2cu
21
- eWdcehwjDa+gGSMVlRF5xWNwOjXmP+b/Ue6wN1AWKgWOBZ2au5jxOkQMc7vs7Fop
22
- On8jLmsAx0hjUXxkbjHJOH4ibnsUG/59lahR7Z81N7SDvuJV2XeF9siINjPPUjVc
23
- pUViO3oPue9/JQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
24
- HQ4EFgQUmVNnNk3e+xHCzwEBO4s51h1sElUwIQYDVR0RBBowGIEWamFtZXMucHJl
25
- c2NvdHRAaXR2LmNvbTAhBgNVHRIEGjAYgRZqYW1lcy5wcmVzY290dEBpdHYuY29t
26
- MA0GCSqGSIb3DQEBBQUAA4IBAQAT/5x5FISP0g3Lolph1Dxe91cAMdWpPnuS9cGj
27
- pV5lvSLemJg91DDEq0xiW9j2RmS7hAqgr4OEHrvfaJ23L+d8h3e5c5N1TU/uBDzD
28
- 3A5ksLJKJ3BgqahibgHTc60wVSHeiojcv0EEMI4RuXcfvupkekymquzhPTIAf/b/
29
- qamACLst9BoPyfQ8GDyXJargT91lkpztE4E8kmND/465JyOBg7Px6Mc3K2ufNTKm
30
- CniA6SAR8CxOQNwqzuOOYt9V1Yj3ihCdfWFkEMcsc7dmbOhsey2gifTPMgRusJVe
31
- RV//y3nv21WEIgu0Q4GCMxWCCBIpq3otjDMoofmjM8R7TCfK
32
- -----END CERTIFICATE-----
33
- 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.4.8
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:
Binary file
data.tar.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- a�H�9[@EU�¥�id���nJ�4��>1H�^��({ou^Ukn.�f�8�z�^�h�HEbV�f����ǰC+öY���&
2
- Ãc `T���d�pi�!,y�qd�a������nM�/�u��t�T�x� Gj��b� ���ӯ�X�k1��r��%��j΂d�"; '�rG�����l0�
3
- ���;�a�[B a%���@��vd�(ͶPkd;��'ܐ.L�P��V/�V#���Ǯ�g��U)��>i�
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- `�y��;$���N넵���pu���n���E�ފ�a�%�2���n6 Hv�a-�i�+s��w�2�����=���-3��+� �D5��i�:a,P_�b���|��rU�s����-^�.��E�0��X~{.aIf��
2
- ��-�[Ӳ�ƭ{���9Q:#D�J.<�96+K���"�{�u�D�$�d~y�_n'��16�z�Ř`�ͣgl��5�|�v�(��|�8�(x���J~�"Nw��z��c�����}�