experella-proxy 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/.gitignore +15 -0
  2. data/Gemfile +3 -0
  3. data/README.md +219 -0
  4. data/Rakefile +25 -0
  5. data/TODO.txt +20 -0
  6. data/bin/experella-proxy +54 -0
  7. data/config/default/404.html +16 -0
  8. data/config/default/503.html +18 -0
  9. data/config/default/config.rb +64 -0
  10. data/config/default/ssl/certs/experella-proxy.pem +18 -0
  11. data/config/default/ssl/private/experella-proxy.key +28 -0
  12. data/dev/experella-proxy +62 -0
  13. data/experella-proxy.gemspec +39 -0
  14. data/lib/experella-proxy/backend.rb +58 -0
  15. data/lib/experella-proxy/backend_server.rb +100 -0
  16. data/lib/experella-proxy/configuration.rb +154 -0
  17. data/lib/experella-proxy/connection.rb +557 -0
  18. data/lib/experella-proxy/connection_manager.rb +167 -0
  19. data/lib/experella-proxy/globals.rb +37 -0
  20. data/lib/experella-proxy/http_status_codes.rb +45 -0
  21. data/lib/experella-proxy/proxy.rb +61 -0
  22. data/lib/experella-proxy/request.rb +106 -0
  23. data/lib/experella-proxy/response.rb +204 -0
  24. data/lib/experella-proxy/server.rb +68 -0
  25. data/lib/experella-proxy/version.rb +15 -0
  26. data/lib/experella-proxy.rb +93 -0
  27. data/spec/echo-server/echo_server.rb +49 -0
  28. data/spec/experella-proxy/backend_server_spec.rb +101 -0
  29. data/spec/experella-proxy/configuration_spec.rb +27 -0
  30. data/spec/experella-proxy/connection_manager_spec.rb +159 -0
  31. data/spec/experella-proxy/experella-proxy_spec.rb +471 -0
  32. data/spec/experella-proxy/request_spec.rb +88 -0
  33. data/spec/experella-proxy/response_spec.rb +44 -0
  34. data/spec/fixtures/404.html +16 -0
  35. data/spec/fixtures/503.html +18 -0
  36. data/spec/fixtures/spec.log +331 -0
  37. data/spec/fixtures/test_config.rb +34 -0
  38. data/spec/spec.log +235 -0
  39. data/spec/spec_helper.rb +35 -0
  40. data/test/sinatra/hello_world_server.rb +17 -0
  41. data/test/sinatra/server_one.rb +89 -0
  42. data/test/sinatra/server_two.rb +89 -0
  43. metadata +296 -0
metadata ADDED
@@ -0,0 +1,296 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: experella-proxy
3
+ version: !ruby/object:Gem::Version
4
+ hash: 19
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 6
10
+ version: 0.0.6
11
+ platform: ruby
12
+ authors:
13
+ - Dennis-Florian Herr
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2014-02-12 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: daemons
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 27
30
+ segments:
31
+ - 1
32
+ - 1
33
+ - 4
34
+ version: 1.1.4
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: eventmachine
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 17
46
+ segments:
47
+ - 1
48
+ - 0
49
+ - 3
50
+ version: 1.0.3
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: http_parser.rb
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 13
62
+ segments:
63
+ - 0
64
+ - 5
65
+ - 3
66
+ version: 0.5.3
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ hash: 75
78
+ segments:
79
+ - 10
80
+ - 1
81
+ - 0
82
+ version: 10.1.0
83
+ type: :development
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: rspec
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - "="
92
+ - !ruby/object:Gem::Version
93
+ hash: 53
94
+ segments:
95
+ - 2
96
+ - 14
97
+ - 1
98
+ version: 2.14.1
99
+ type: :development
100
+ version_requirements: *id005
101
+ - !ruby/object:Gem::Dependency
102
+ name: posix-spawn
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 3
110
+ segments:
111
+ - 0
112
+ version: "0"
113
+ type: :development
114
+ version_requirements: *id006
115
+ - !ruby/object:Gem::Dependency
116
+ name: em-http-request
117
+ prerelease: false
118
+ requirement: &id007 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ hash: 3
124
+ segments:
125
+ - 0
126
+ version: "0"
127
+ type: :development
128
+ version_requirements: *id007
129
+ - !ruby/object:Gem::Dependency
130
+ name: sinatra
131
+ prerelease: false
132
+ requirement: &id008 !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - "="
136
+ - !ruby/object:Gem::Version
137
+ hash: 1
138
+ segments:
139
+ - 1
140
+ - 4
141
+ - 3
142
+ version: 1.4.3
143
+ type: :development
144
+ version_requirements: *id008
145
+ - !ruby/object:Gem::Dependency
146
+ name: thin
147
+ prerelease: false
148
+ requirement: &id009 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ~>
152
+ - !ruby/object:Gem::Version
153
+ hash: 1
154
+ segments:
155
+ - 1
156
+ - 5
157
+ - 1
158
+ version: 1.5.1
159
+ type: :development
160
+ version_requirements: *id009
161
+ - !ruby/object:Gem::Dependency
162
+ name: yard
163
+ prerelease: false
164
+ requirement: &id010 !ruby/object:Gem::Requirement
165
+ none: false
166
+ requirements:
167
+ - - ~>
168
+ - !ruby/object:Gem::Version
169
+ hash: 21
170
+ segments:
171
+ - 0
172
+ - 8
173
+ - 7
174
+ - 3
175
+ version: 0.8.7.3
176
+ type: :development
177
+ version_requirements: *id010
178
+ - !ruby/object:Gem::Dependency
179
+ name: redcarpet
180
+ prerelease: false
181
+ requirement: &id011 !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ~>
185
+ - !ruby/object:Gem::Version
186
+ hash: 3
187
+ segments:
188
+ - 2
189
+ - 3
190
+ - 0
191
+ version: 2.3.0
192
+ type: :development
193
+ version_requirements: *id011
194
+ description: a balancing & routing proxy, see README for more details
195
+ email:
196
+ - dennis.herr@experteer.com
197
+ executables:
198
+ - experella-proxy
199
+ extensions: []
200
+
201
+ extra_rdoc_files:
202
+ - README.md
203
+ files:
204
+ - bin/experella-proxy
205
+ - dev/experella-proxy
206
+ - lib/experella-proxy/connection_manager.rb
207
+ - lib/experella-proxy/connection.rb
208
+ - lib/experella-proxy/request.rb
209
+ - lib/experella-proxy/http_status_codes.rb
210
+ - lib/experella-proxy/server.rb
211
+ - lib/experella-proxy/response.rb
212
+ - lib/experella-proxy/backend.rb
213
+ - lib/experella-proxy/globals.rb
214
+ - lib/experella-proxy/configuration.rb
215
+ - lib/experella-proxy/proxy.rb
216
+ - lib/experella-proxy/backend_server.rb
217
+ - lib/experella-proxy/version.rb
218
+ - lib/experella-proxy.rb
219
+ - config/default/config.rb
220
+ - config/default/ssl/private/experella-proxy.key
221
+ - config/default/ssl/certs/experella-proxy.pem
222
+ - config/default/404.html
223
+ - config/default/503.html
224
+ - spec/experella-proxy/backend_server_spec.rb
225
+ - spec/experella-proxy/configuration_spec.rb
226
+ - spec/experella-proxy/experella-proxy_spec.rb
227
+ - spec/experella-proxy/response_spec.rb
228
+ - spec/experella-proxy/request_spec.rb
229
+ - spec/experella-proxy/connection_manager_spec.rb
230
+ - spec/fixtures/test_config.rb
231
+ - spec/fixtures/spec.log
232
+ - spec/fixtures/404.html
233
+ - spec/fixtures/503.html
234
+ - spec/spec_helper.rb
235
+ - spec/echo-server/echo_server.rb
236
+ - spec/spec.log
237
+ - test/sinatra/server_two.rb
238
+ - test/sinatra/hello_world_server.rb
239
+ - test/sinatra/server_one.rb
240
+ - .gitignore
241
+ - Gemfile
242
+ - experella-proxy.gemspec
243
+ - README.md
244
+ - TODO.txt
245
+ - Rakefile
246
+ has_rdoc: true
247
+ homepage: https://github.com/experteer/experella-proxy
248
+ licenses:
249
+ - MIT
250
+ post_install_message:
251
+ rdoc_options: []
252
+
253
+ require_paths:
254
+ - lib
255
+ required_ruby_version: !ruby/object:Gem::Requirement
256
+ none: false
257
+ requirements:
258
+ - - ">="
259
+ - !ruby/object:Gem::Version
260
+ hash: 3
261
+ segments:
262
+ - 0
263
+ version: "0"
264
+ required_rubygems_version: !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - ">="
268
+ - !ruby/object:Gem::Version
269
+ hash: 3
270
+ segments:
271
+ - 0
272
+ version: "0"
273
+ requirements: []
274
+
275
+ rubyforge_project:
276
+ rubygems_version: 1.5.3
277
+ signing_key:
278
+ specification_version: 3
279
+ summary: experella-proxy gem
280
+ test_files:
281
+ - spec/experella-proxy/backend_server_spec.rb
282
+ - spec/experella-proxy/configuration_spec.rb
283
+ - spec/experella-proxy/experella-proxy_spec.rb
284
+ - spec/experella-proxy/response_spec.rb
285
+ - spec/experella-proxy/request_spec.rb
286
+ - spec/experella-proxy/connection_manager_spec.rb
287
+ - spec/fixtures/test_config.rb
288
+ - spec/fixtures/spec.log
289
+ - spec/fixtures/404.html
290
+ - spec/fixtures/503.html
291
+ - spec/spec_helper.rb
292
+ - spec/echo-server/echo_server.rb
293
+ - spec/spec.log
294
+ - test/sinatra/server_two.rb
295
+ - test/sinatra/hello_world_server.rb
296
+ - test/sinatra/server_one.rb