proxy_rb 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.env +3 -0
  3. data/.gitignore +1 -0
  4. data/.rubocop.yml +1 -0
  5. data/.travis.yml +8 -2
  6. data/Gemfile +7 -3
  7. data/README.md +42 -8
  8. data/Rakefile +8 -23
  9. data/bin/bootstrap +10 -0
  10. data/{script → bin}/console +1 -0
  11. data/bin/test +3 -0
  12. data/cucumber.yml +2 -0
  13. data/fixtures/proxy-config/.rspec +2 -0
  14. data/fixtures/proxy-config/README.md +18 -0
  15. data/fixtures/proxy-config/Rakefile +10 -0
  16. data/fixtures/proxy-config/bin/http_server +14 -0
  17. data/fixtures/proxy-config/spec/spec_helper.rb +8 -0
  18. data/fixtures/proxy-config/spec/support/aruba.rb +2 -0
  19. data/fixtures/proxy-config/spec/support/proxy_rb.rb +2 -0
  20. data/lib/proxy_rb/basic_configuration/in_config_wrapper.rb +28 -0
  21. data/lib/proxy_rb/basic_configuration/option.rb +32 -0
  22. data/lib/proxy_rb/basic_configuration.rb +148 -0
  23. data/lib/proxy_rb/configuration.rb +42 -0
  24. data/lib/proxy_rb/credentials.rb +52 -0
  25. data/lib/proxy_rb/errors.rb +5 -0
  26. data/lib/proxy_rb/http_downloader.rb +23 -0
  27. data/lib/proxy_rb/http_proxy.rb +52 -0
  28. data/lib/proxy_rb/main.rb +8 -2
  29. data/lib/proxy_rb/no_proxy.rb +26 -0
  30. data/lib/proxy_rb/password_fetchers/basic_password_fetcher.rb +12 -0
  31. data/lib/proxy_rb/password_fetchers/environment_password_fetcher.rb +34 -0
  32. data/lib/proxy_rb/password_fetchers/vault_password_fetcher.rb +47 -0
  33. data/lib/proxy_rb/password_fetchers.rb +6 -0
  34. data/lib/proxy_rb/proxy_url.rb +73 -0
  35. data/lib/proxy_rb/proxy_url_parser.rb +56 -0
  36. data/lib/proxy_rb/request.rb +36 -0
  37. data/lib/proxy_rb/resource.rb +28 -0
  38. data/lib/proxy_rb/response.rb +20 -0
  39. data/lib/proxy_rb/rspec/helpers/http_proxy.rb +78 -0
  40. data/lib/proxy_rb/rspec/helpers/passwords.rb +29 -0
  41. data/lib/proxy_rb/rspec.rb +9 -6
  42. data/lib/proxy_rb/user_passwords/environment_user_password.rb +30 -0
  43. data/lib/proxy_rb/user_passwords/vault_user_password.rb +27 -0
  44. data/lib/proxy_rb/user_passwords.rb +7 -0
  45. data/lib/proxy_rb/version.rb +2 -1
  46. data/lib/proxy_rb.rb +2 -0
  47. data/proxy_rb.gemspec +5 -3
  48. metadata +40 -9
  49. data/Gemfile.lock +0 -263
  50. data/script/bootstrap +0 -7
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proxy_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-08 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: activesupport
84
+ name: contracts
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,7 +95,7 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: uglifier
98
+ name: excon
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -115,6 +115,7 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".env"
118
119
  - ".gitignore"
119
120
  - ".rspec"
120
121
  - ".rubocop.yml"
@@ -123,21 +124,51 @@ files:
123
124
  - ".yardopts"
124
125
  - CONTRIBUTING.md
125
126
  - Gemfile
126
- - Gemfile.lock
127
127
  - README.md
128
128
  - Rakefile
129
+ - bin/bootstrap
130
+ - bin/console
131
+ - bin/test
132
+ - cucumber.yml
133
+ - fixtures/proxy-config/.rspec
134
+ - fixtures/proxy-config/README.md
135
+ - fixtures/proxy-config/Rakefile
136
+ - fixtures/proxy-config/bin/http_server
137
+ - fixtures/proxy-config/spec/spec_helper.rb
138
+ - fixtures/proxy-config/spec/support/aruba.rb
139
+ - fixtures/proxy-config/spec/support/proxy_rb.rb
129
140
  - lib/proxy_rb.rb
141
+ - lib/proxy_rb/basic_configuration.rb
142
+ - lib/proxy_rb/basic_configuration/in_config_wrapper.rb
143
+ - lib/proxy_rb/basic_configuration/option.rb
144
+ - lib/proxy_rb/configuration.rb
145
+ - lib/proxy_rb/credentials.rb
146
+ - lib/proxy_rb/errors.rb
147
+ - lib/proxy_rb/http_downloader.rb
148
+ - lib/proxy_rb/http_proxy.rb
130
149
  - lib/proxy_rb/main.rb
150
+ - lib/proxy_rb/no_proxy.rb
151
+ - lib/proxy_rb/password_fetchers.rb
152
+ - lib/proxy_rb/password_fetchers/basic_password_fetcher.rb
153
+ - lib/proxy_rb/password_fetchers/environment_password_fetcher.rb
154
+ - lib/proxy_rb/password_fetchers/vault_password_fetcher.rb
155
+ - lib/proxy_rb/proxy_url.rb
156
+ - lib/proxy_rb/proxy_url_parser.rb
157
+ - lib/proxy_rb/request.rb
158
+ - lib/proxy_rb/resource.rb
159
+ - lib/proxy_rb/response.rb
131
160
  - lib/proxy_rb/rspec.rb
132
161
  - lib/proxy_rb/rspec/helpers/.keep
133
162
  - lib/proxy_rb/rspec/helpers/http_proxy.rb
163
+ - lib/proxy_rb/rspec/helpers/passwords.rb
134
164
  - lib/proxy_rb/rspec/matchers/.keep
135
165
  - lib/proxy_rb/rspec/shared_contexts/.keep
136
166
  - lib/proxy_rb/rspec/shared_examples/.keep
167
+ - lib/proxy_rb/user_passwords.rb
168
+ - lib/proxy_rb/user_passwords/environment_user_password.rb
169
+ - lib/proxy_rb/user_passwords/vault_user_password.rb
137
170
  - lib/proxy_rb/version.rb
138
171
  - proxy_rb.gemspec
139
- - script/bootstrap
140
- - script/console
141
172
  homepage: https://github.com/fedux-org/proxy_rb
142
173
  licenses: []
143
174
  metadata: {}
@@ -149,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
180
  requirements:
150
181
  - - "~>"
151
182
  - !ruby/object:Gem::Version
152
- version: '2.0'
183
+ version: '2.3'
153
184
  required_rubygems_version: !ruby/object:Gem::Requirement
154
185
  requirements:
155
186
  - - ">="
@@ -157,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
188
  version: '0'
158
189
  requirements: []
159
190
  rubyforge_project:
160
- rubygems_version: 2.4.5
191
+ rubygems_version: 2.5.1
161
192
  signing_key:
162
193
  specification_version: 4
163
194
  summary: This gem makes testing your proxy easy.
data/Gemfile.lock DELETED
@@ -1,263 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- proxy_rb (0.1.0)
5
- activesupport
6
- addressable
7
- capybara
8
- poltergeist
9
- uglifier
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- activesupport (4.2.1)
15
- i18n (~> 0.7)
16
- json (~> 1.7, >= 1.7.7)
17
- minitest (~> 5.1)
18
- thread_safe (~> 0.3, >= 0.3.4)
19
- tzinfo (~> 1.1)
20
- addressable (2.3.8)
21
- aruba (0.6.2)
22
- childprocess (>= 0.3.6)
23
- cucumber (>= 1.1.1)
24
- rspec-expectations (>= 2.7.0)
25
- ast (2.0.0)
26
- astrolabe (1.3.0)
27
- parser (>= 2.2.0.pre.3, < 3.0)
28
- awesome_print (1.6.1)
29
- binding_of_caller (0.7.2)
30
- debug_inspector (>= 0.0.1)
31
- blockenspiel (0.4.5)
32
- builder (3.2.2)
33
- byebug (4.0.5)
34
- columnize (= 0.9.0)
35
- capybara (2.4.4)
36
- mime-types (>= 1.16)
37
- nokogiri (>= 1.3.3)
38
- rack (>= 1.0.0)
39
- rack-test (>= 0.5.4)
40
- xpath (~> 2.0)
41
- childprocess (0.5.6)
42
- ffi (~> 1.0, >= 1.0.11)
43
- cliver (0.3.2)
44
- coderay (1.1.0)
45
- columnize (0.9.0)
46
- command_exec (0.2.0)
47
- activesupport
48
- smart_colored
49
- xml-simple
50
- coveralls (0.8.0)
51
- multi_json (~> 1.10)
52
- rest-client (>= 1.6.8, < 2)
53
- simplecov (~> 0.9.1)
54
- term-ansicolor (~> 1.3)
55
- thor (~> 0.19.1)
56
- crack (0.4.2)
57
- safe_yaml (~> 1.0.0)
58
- cucumber (2.0.0)
59
- builder (>= 2.1.2)
60
- cucumber-core (~> 1.1.3)
61
- diff-lcs (>= 1.1.3)
62
- gherkin (~> 2.12)
63
- multi_json (>= 1.7.5, < 2.0)
64
- multi_test (>= 0.1.2)
65
- cucumber-core (1.1.3)
66
- gherkin (~> 2.12.0)
67
- debug_inspector (0.0.2)
68
- diff-lcs (1.2.5)
69
- docile (1.1.5)
70
- domain_name (0.5.23)
71
- unf (>= 0.0.5, < 1.0.0)
72
- erubis (2.7.0)
73
- execjs (2.5.0)
74
- fedux_org-stdlib (0.7.33)
75
- activesupport
76
- ffi (1.9.8)
77
- filegen (0.4.3)
78
- activesupport
79
- foreman (0.78.0)
80
- thor (~> 0.19.1)
81
- fuubar (2.0.0)
82
- rspec (~> 3.0)
83
- ruby-progressbar (~> 1.4)
84
- gherkin (2.12.2)
85
- multi_json (~> 1.3)
86
- github-markup (1.3.3)
87
- http-cookie (1.0.2)
88
- domain_name (~> 0.5)
89
- httparty (0.13.3)
90
- json (~> 1.8)
91
- multi_xml (>= 0.5.2)
92
- i18n (0.7.0)
93
- inch (0.5.10)
94
- pry
95
- sparkr (>= 0.2.0)
96
- term-ansicolor
97
- yard (~> 0.8.7.5)
98
- json (1.8.2)
99
- launchy (2.4.3)
100
- addressable (~> 2.3)
101
- libv8 (3.16.14.7)
102
- license_finder (2.0.3)
103
- bundler
104
- httparty
105
- thor
106
- xml-simple
107
- method_source (0.8.2)
108
- mime-types (2.4.3)
109
- mini_portile (0.6.2)
110
- minitest (5.5.1)
111
- multi_json (1.11.0)
112
- multi_test (0.1.2)
113
- multi_xml (0.5.5)
114
- netrc (0.10.3)
115
- nokogiri (1.6.6.2)
116
- mini_portile (~> 0.6.0)
117
- parser (2.2.0.3)
118
- ast (>= 1.1, < 3.0)
119
- poltergeist (1.6.0)
120
- capybara (~> 2.1)
121
- cliver (~> 0.3.1)
122
- multi_json (~> 1.0)
123
- websocket-driver (>= 0.2.0)
124
- powerpack (0.1.0)
125
- pry (0.10.1)
126
- coderay (~> 1.1.0)
127
- method_source (~> 0.8.1)
128
- slop (~> 3.4)
129
- pry-byebug (3.1.0)
130
- byebug (~> 4.0)
131
- pry (~> 0.10)
132
- pry-doc (0.6.0)
133
- pry (~> 0.9)
134
- yard (~> 0.8)
135
- pry-stack_explorer (0.4.9.2)
136
- binding_of_caller (>= 0.7)
137
- pry (>= 0.9.11)
138
- rack (1.6.0)
139
- rack-protection (1.5.3)
140
- rack
141
- rack-test (0.6.3)
142
- rack (>= 1.0)
143
- rainbow (2.0.0)
144
- rake (10.4.2)
145
- redcarpet (3.2.3)
146
- ref (1.0.5)
147
- rest-client (1.8.0)
148
- http-cookie (>= 1.0.2, < 2.0)
149
- mime-types (>= 1.16, < 3.0)
150
- netrc (~> 0.7)
151
- rspec (3.2.0)
152
- rspec-core (~> 3.2.0)
153
- rspec-expectations (~> 3.2.0)
154
- rspec-mocks (~> 3.2.0)
155
- rspec-core (3.2.3)
156
- rspec-support (~> 3.2.0)
157
- rspec-expectations (3.2.1)
158
- diff-lcs (>= 1.2.0, < 2.0)
159
- rspec-support (~> 3.2.0)
160
- rspec-mocks (3.2.1)
161
- diff-lcs (>= 1.2.0, < 2.0)
162
- rspec-support (~> 3.2.0)
163
- rspec-support (3.2.2)
164
- rubocop (0.30.0)
165
- astrolabe (~> 1.3)
166
- parser (>= 2.2.0.1, < 3.0)
167
- powerpack (~> 0.1)
168
- rainbow (>= 1.99.1, < 3.0)
169
- ruby-progressbar (~> 1.4)
170
- ruby-prof (0.15.6)
171
- ruby-progressbar (1.7.5)
172
- safe_yaml (1.0.4)
173
- simplecov (0.9.2)
174
- docile (~> 1.1.0)
175
- multi_json (~> 1.0)
176
- simplecov-html (~> 0.9.0)
177
- simplecov-html (0.9.0)
178
- sinatra (1.4.6)
179
- rack (~> 1.4)
180
- rack-protection (~> 1.4)
181
- tilt (>= 1.3, < 3)
182
- slop (3.6.0)
183
- smart_colored (1.1.1)
184
- sparkr (0.4.1)
185
- term-ansicolor (1.3.0)
186
- tins (~> 1.0)
187
- therubyracer (0.12.2)
188
- libv8 (~> 3.16.14.0)
189
- ref
190
- therubyrhino (2.0.4)
191
- therubyrhino_jar (>= 1.7.3)
192
- therubyrhino_jar (1.7.4)
193
- thor (0.19.1)
194
- thread_safe (0.3.5)
195
- tilt (2.0.1)
196
- tins (1.3.5)
197
- tmrb (1.2.7)
198
- thor
199
- travis-lint (2.0.0)
200
- json
201
- tzinfo (1.2.2)
202
- thread_safe (~> 0.1)
203
- uglifier (2.7.1)
204
- execjs (>= 0.3.0)
205
- json (>= 1.8.0)
206
- unf (0.1.4)
207
- unf_ext
208
- unf_ext (0.0.6)
209
- versionomy (0.4.4)
210
- blockenspiel (>= 0.4.5)
211
- webmock (1.21.0)
212
- addressable (>= 2.3.6)
213
- crack (>= 0.3.2)
214
- websocket-driver (0.5.4)
215
- websocket-extensions (>= 0.1.0)
216
- websocket-extensions (0.1.2)
217
- xml-simple (1.1.5)
218
- xpath (2.0.0)
219
- nokogiri (~> 1.3)
220
- yard (0.8.7.6)
221
-
222
- PLATFORMS
223
- ruby
224
-
225
- DEPENDENCIES
226
- activesupport (~> 4.2.0)
227
- aruba
228
- awesome_print
229
- bundler (~> 1.3)
230
- byebug
231
- command_exec
232
- coveralls
233
- cucumber
234
- erubis
235
- fedux_org-stdlib (~> 0.7.25)
236
- filegen
237
- foreman
238
- fuubar
239
- github-markup
240
- inch
241
- launchy
242
- license_finder
243
- proxy_rb!
244
- pry
245
- pry-byebug
246
- pry-doc
247
- pry-stack_explorer
248
- rack
249
- rack-test
250
- rake
251
- redcarpet
252
- rspec
253
- rubocop
254
- ruby-prof
255
- simplecov
256
- sinatra
257
- therubyracer
258
- therubyrhino
259
- tmrb
260
- travis-lint
261
- versionomy
262
- webmock
263
- yard
data/script/bootstrap DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here