goliath 0.9.4 → 1.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of goliath might be problematic. Click here for more details.

Files changed (102) hide show
  1. data/.gitignore +3 -0
  2. data/Guardfile +8 -0
  3. data/HISTORY.md +10 -0
  4. data/LICENSE +1 -1
  5. data/README.md +28 -29
  6. data/Rakefile +10 -2
  7. data/examples/activerecord/config/srv.rb +2 -1
  8. data/examples/activerecord/srv.rb +14 -5
  9. data/examples/api_proxy.rb +3 -7
  10. data/examples/around.rb +38 -0
  11. data/examples/async_aroundware_demo.rb +2 -2
  12. data/examples/async_upload.rb +1 -1
  13. data/examples/auth_and_rate_limit.rb +1 -1
  14. data/examples/clone.rb +26 -0
  15. data/examples/config/websocket.rb +1 -0
  16. data/examples/custom_logs.rb +21 -0
  17. data/examples/custom_server.rb +6 -44
  18. data/examples/early_abort.rb +6 -3
  19. data/examples/echo.rb +1 -1
  20. data/examples/fiber_pool.rb +35 -0
  21. data/examples/grape/config/apiserver.rb +8 -0
  22. data/examples/grape/server.rb +67 -0
  23. data/examples/gziped.rb +1 -1
  24. data/examples/params.rb +36 -0
  25. data/examples/rasterize/rasterize.rb +1 -2
  26. data/examples/router.rb +15 -0
  27. data/examples/template.rb +14 -7
  28. data/examples/test.rb +31 -0
  29. data/examples/upload.rb +17 -0
  30. data/examples/views/joke.markdown +4 -4
  31. data/examples/websocket.rb +39 -0
  32. data/examples/ws/favicon.ico +0 -0
  33. data/examples/ws/index.erb +50 -0
  34. data/goliath.gemspec +24 -6
  35. data/lib/goliath/api.rb +15 -82
  36. data/lib/goliath/application.rb +3 -17
  37. data/lib/goliath/connection.rb +16 -9
  38. data/lib/goliath/constants.rb +2 -0
  39. data/lib/goliath/env.rb +2 -3
  40. data/lib/goliath/goliath.rb +24 -34
  41. data/lib/goliath/plugins/latency.rb +7 -3
  42. data/lib/goliath/rack/builder.rb +1 -37
  43. data/lib/goliath/rack/favicon.rb +31 -0
  44. data/lib/goliath/rack/formatters/json.rb +1 -1
  45. data/lib/goliath/rack/heartbeat.rb +1 -0
  46. data/lib/goliath/rack/jsonp.rb +1 -0
  47. data/lib/goliath/rack/params.rb +2 -17
  48. data/lib/goliath/rack/render.rb +0 -1
  49. data/lib/goliath/rack/templates.rb +18 -7
  50. data/lib/goliath/rack/types/base.rb +24 -0
  51. data/lib/goliath/rack/types/boolean.rb +18 -0
  52. data/lib/goliath/rack/types/core.rb +19 -0
  53. data/lib/goliath/rack/types/symbol.rb +16 -0
  54. data/lib/goliath/rack/types.rb +10 -0
  55. data/lib/goliath/rack/validation/coerce.rb +48 -0
  56. data/lib/goliath/rack/validation/param.rb +113 -0
  57. data/lib/goliath/rack/validation/request_method.rb +1 -1
  58. data/lib/goliath/rack/validation/required.rb +47 -0
  59. data/lib/goliath/rack/validation/required_param.rb +42 -17
  60. data/lib/goliath/rack/validation.rb +3 -0
  61. data/lib/goliath/rack.rb +2 -2
  62. data/lib/goliath/request.rb +41 -9
  63. data/lib/goliath/response.rb +0 -2
  64. data/lib/goliath/runner.rb +55 -4
  65. data/lib/goliath/server.rb +7 -3
  66. data/lib/goliath/test_helper.rb +70 -16
  67. data/lib/goliath/test_helper_ws.rb +42 -0
  68. data/lib/goliath/version.rb +1 -1
  69. data/lib/goliath/websocket.rb +80 -0
  70. data/pkg/goliath-0.9.4.gem +0 -0
  71. data/pkg/goliath-1.0.0.beta.1.gem +0 -0
  72. data/spec/integration/async_request_processing.rb +1 -1
  73. data/spec/integration/early_abort_spec.rb +3 -10
  74. data/spec/integration/echo_spec.rb +8 -8
  75. data/spec/integration/jsonp_spec.rb +31 -0
  76. data/spec/integration/keepalive_spec.rb +2 -2
  77. data/spec/integration/template_spec.rb +10 -5
  78. data/spec/integration/test_helper_spec.rb +33 -0
  79. data/spec/integration/valid_spec.rb +35 -5
  80. data/spec/integration/websocket_spec.rb +44 -0
  81. data/spec/unit/api_spec.rb +2 -19
  82. data/spec/unit/connection_spec.rb +3 -0
  83. data/spec/unit/rack/formatters/json_spec.rb +3 -3
  84. data/spec/unit/rack/heartbeat_spec.rb +13 -0
  85. data/spec/unit/rack/params_spec.rb +2 -8
  86. data/spec/unit/rack/validation/param_spec.rb +443 -0
  87. data/spec/unit/rack/validation/request_method_spec.rb +5 -0
  88. data/spec/unit/rack/validation/required_param_spec.rb +71 -1
  89. data/spec/unit/runner_spec.rb +21 -7
  90. data/test/echo_test.rb +25 -0
  91. data/test/test_helper.rb +5 -0
  92. metadata +316 -78
  93. data/examples/env_use_statements.rb +0 -20
  94. data/examples/favicon.rb +0 -40
  95. data/examples/rack_routes.rb +0 -125
  96. data/examples/rasterize/thumb/f7ad4cb03e5bfd0e2c43db8e598fb3cd.png +0 -0
  97. data/examples/valid.rb +0 -17
  98. data/lib/goliath/deprecated/async_aroundware.rb +0 -133
  99. data/lib/goliath/deprecated/mongo_receiver.rb +0 -84
  100. data/lib/goliath/deprecated/response_receiver.rb +0 -97
  101. data/spec/integration/rack_routes_spec.rb +0 -169
  102. data/spec/unit/rack/builder_spec.rb +0 -40
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goliath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
5
- prerelease:
4
+ version: 1.0.0.beta.1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - dan sinclair
@@ -10,22 +10,27 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-10-20 00:00:00.000000000Z
13
+ date: 2012-06-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: eventmachine
17
- requirement: &2152695420 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 1.0.0.beta.3
22
+ version: 1.0.0.beta.4
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2152695420
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 1.0.0.beta.4
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: em-synchrony
28
- requirement: &2152694920 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,21 +38,47 @@ dependencies:
33
38
  version: 1.0.0
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *2152694920
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.0
37
47
  - !ruby/object:Gem::Dependency
38
- name: http_parser.rb
39
- requirement: &2152694540 !ruby/object:Gem::Requirement
48
+ name: em-websocket
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
40
58
  none: false
41
59
  requirements:
42
60
  - - ! '>='
43
61
  - !ruby/object:Gem::Version
44
62
  version: '0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: http_parser.rb
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - '='
69
+ - !ruby/object:Gem::Version
70
+ version: 0.5.3
45
71
  type: :runtime
46
72
  prerelease: false
47
- version_requirements: *2152694540
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - '='
77
+ - !ruby/object:Gem::Version
78
+ version: 0.5.3
48
79
  - !ruby/object:Gem::Dependency
49
80
  name: log4r
50
- requirement: &2157802800 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
51
82
  none: false
52
83
  requirements:
53
84
  - - ! '>='
@@ -55,10 +86,15 @@ dependencies:
55
86
  version: '0'
56
87
  type: :runtime
57
88
  prerelease: false
58
- version_requirements: *2157802800
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
59
95
  - !ruby/object:Gem::Dependency
60
96
  name: rack
61
- requirement: &2157802300 !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
62
98
  none: false
63
99
  requirements:
64
100
  - - ! '>='
@@ -66,10 +102,15 @@ dependencies:
66
102
  version: 1.2.2
67
103
  type: :runtime
68
104
  prerelease: false
69
- version_requirements: *2157802300
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: 1.2.2
70
111
  - !ruby/object:Gem::Dependency
71
112
  name: rack-contrib
72
- requirement: &2157801880 !ruby/object:Gem::Requirement
113
+ requirement: !ruby/object:Gem::Requirement
73
114
  none: false
74
115
  requirements:
75
116
  - - ! '>='
@@ -77,10 +118,15 @@ dependencies:
77
118
  version: '0'
78
119
  type: :runtime
79
120
  prerelease: false
80
- version_requirements: *2157801880
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
81
127
  - !ruby/object:Gem::Dependency
82
128
  name: rack-respond_to
83
- requirement: &2157801420 !ruby/object:Gem::Requirement
129
+ requirement: !ruby/object:Gem::Requirement
84
130
  none: false
85
131
  requirements:
86
132
  - - ! '>='
@@ -88,10 +134,15 @@ dependencies:
88
134
  version: '0'
89
135
  type: :runtime
90
136
  prerelease: false
91
- version_requirements: *2157801420
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
92
143
  - !ruby/object:Gem::Dependency
93
144
  name: async-rack
94
- requirement: &2157801000 !ruby/object:Gem::Requirement
145
+ requirement: !ruby/object:Gem::Requirement
95
146
  none: false
96
147
  requirements:
97
148
  - - ! '>='
@@ -99,10 +150,15 @@ dependencies:
99
150
  version: '0'
100
151
  type: :runtime
101
152
  prerelease: false
102
- version_requirements: *2157801000
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
103
159
  - !ruby/object:Gem::Dependency
104
160
  name: multi_json
105
- requirement: &2157800580 !ruby/object:Gem::Requirement
161
+ requirement: !ruby/object:Gem::Requirement
106
162
  none: false
107
163
  requirements:
108
164
  - - ! '>='
@@ -110,21 +166,15 @@ dependencies:
110
166
  version: '0'
111
167
  type: :runtime
112
168
  prerelease: false
113
- version_requirements: *2157800580
114
- - !ruby/object:Gem::Dependency
115
- name: http_router
116
- requirement: &2157800080 !ruby/object:Gem::Requirement
169
+ version_requirements: !ruby/object:Gem::Requirement
117
170
  none: false
118
171
  requirements:
119
- - - ~>
172
+ - - ! '>='
120
173
  - !ruby/object:Gem::Version
121
- version: 0.9.0
122
- type: :runtime
123
- prerelease: false
124
- version_requirements: *2157800080
174
+ version: '0'
125
175
  - !ruby/object:Gem::Dependency
126
176
  name: rake
127
- requirement: &2157799580 !ruby/object:Gem::Requirement
177
+ requirement: !ruby/object:Gem::Requirement
128
178
  none: false
129
179
  requirements:
130
180
  - - ! '>='
@@ -132,10 +182,15 @@ dependencies:
132
182
  version: 0.8.7
133
183
  type: :development
134
184
  prerelease: false
135
- version_requirements: *2157799580
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: 0.8.7
136
191
  - !ruby/object:Gem::Dependency
137
192
  name: rspec
138
- requirement: &2157799120 !ruby/object:Gem::Requirement
193
+ requirement: !ruby/object:Gem::Requirement
139
194
  none: false
140
195
  requirements:
141
196
  - - ! '>'
@@ -143,10 +198,15 @@ dependencies:
143
198
  version: '2.0'
144
199
  type: :development
145
200
  prerelease: false
146
- version_requirements: *2157799120
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ! '>'
205
+ - !ruby/object:Gem::Version
206
+ version: '2.0'
147
207
  - !ruby/object:Gem::Dependency
148
208
  name: nokogiri
149
- requirement: &2157798740 !ruby/object:Gem::Requirement
209
+ requirement: !ruby/object:Gem::Requirement
150
210
  none: false
151
211
  requirements:
152
212
  - - ! '>='
@@ -154,10 +214,15 @@ dependencies:
154
214
  version: '0'
155
215
  type: :development
156
216
  prerelease: false
157
- version_requirements: *2157798740
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
158
223
  - !ruby/object:Gem::Dependency
159
224
  name: em-http-request
160
- requirement: &2157798200 !ruby/object:Gem::Requirement
225
+ requirement: !ruby/object:Gem::Requirement
161
226
  none: false
162
227
  requirements:
163
228
  - - ! '>='
@@ -165,10 +230,15 @@ dependencies:
165
230
  version: 1.0.0
166
231
  type: :development
167
232
  prerelease: false
168
- version_requirements: *2157798200
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ none: false
235
+ requirements:
236
+ - - ! '>='
237
+ - !ruby/object:Gem::Version
238
+ version: 1.0.0
169
239
  - !ruby/object:Gem::Dependency
170
240
  name: em-mongo
171
- requirement: &2157797700 !ruby/object:Gem::Requirement
241
+ requirement: !ruby/object:Gem::Requirement
172
242
  none: false
173
243
  requirements:
174
244
  - - ~>
@@ -176,10 +246,15 @@ dependencies:
176
246
  version: 0.4.0
177
247
  type: :development
178
248
  prerelease: false
179
- version_requirements: *2157797700
249
+ version_requirements: !ruby/object:Gem::Requirement
250
+ none: false
251
+ requirements:
252
+ - - ~>
253
+ - !ruby/object:Gem::Version
254
+ version: 0.4.0
180
255
  - !ruby/object:Gem::Dependency
181
- name: yajl-ruby
182
- requirement: &2157797320 !ruby/object:Gem::Requirement
256
+ name: rack-rewrite
257
+ requirement: !ruby/object:Gem::Requirement
183
258
  none: false
184
259
  requirements:
185
260
  - - ! '>='
@@ -187,21 +262,15 @@ dependencies:
187
262
  version: '0'
188
263
  type: :development
189
264
  prerelease: false
190
- version_requirements: *2157797320
191
- - !ruby/object:Gem::Dependency
192
- name: rack-rewrite
193
- requirement: &2157796860 !ruby/object:Gem::Requirement
265
+ version_requirements: !ruby/object:Gem::Requirement
194
266
  none: false
195
267
  requirements:
196
268
  - - ! '>='
197
269
  - !ruby/object:Gem::Version
198
270
  version: '0'
199
- type: :development
200
- prerelease: false
201
- version_requirements: *2157796860
202
271
  - !ruby/object:Gem::Dependency
203
272
  name: multipart_body
204
- requirement: &2157796440 !ruby/object:Gem::Requirement
273
+ requirement: !ruby/object:Gem::Requirement
205
274
  none: false
206
275
  requirements:
207
276
  - - ! '>='
@@ -209,10 +278,15 @@ dependencies:
209
278
  version: '0'
210
279
  type: :development
211
280
  prerelease: false
212
- version_requirements: *2157796440
281
+ version_requirements: !ruby/object:Gem::Requirement
282
+ none: false
283
+ requirements:
284
+ - - ! '>='
285
+ - !ruby/object:Gem::Version
286
+ version: '0'
213
287
  - !ruby/object:Gem::Dependency
214
288
  name: amqp
215
- requirement: &2157795940 !ruby/object:Gem::Requirement
289
+ requirement: !ruby/object:Gem::Requirement
216
290
  none: false
217
291
  requirements:
218
292
  - - ! '>='
@@ -220,10 +294,31 @@ dependencies:
220
294
  version: 0.7.1
221
295
  type: :development
222
296
  prerelease: false
223
- version_requirements: *2157795940
297
+ version_requirements: !ruby/object:Gem::Requirement
298
+ none: false
299
+ requirements:
300
+ - - ! '>='
301
+ - !ruby/object:Gem::Version
302
+ version: 0.7.1
303
+ - !ruby/object:Gem::Dependency
304
+ name: em-websocket-client
305
+ requirement: !ruby/object:Gem::Requirement
306
+ none: false
307
+ requirements:
308
+ - - ! '>='
309
+ - !ruby/object:Gem::Version
310
+ version: '0'
311
+ type: :development
312
+ prerelease: false
313
+ version_requirements: !ruby/object:Gem::Requirement
314
+ none: false
315
+ requirements:
316
+ - - ! '>='
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
224
319
  - !ruby/object:Gem::Dependency
225
320
  name: tilt
226
- requirement: &2157795440 !ruby/object:Gem::Requirement
321
+ requirement: !ruby/object:Gem::Requirement
227
322
  none: false
228
323
  requirements:
229
324
  - - ! '>='
@@ -231,10 +326,15 @@ dependencies:
231
326
  version: 1.2.2
232
327
  type: :development
233
328
  prerelease: false
234
- version_requirements: *2157795440
329
+ version_requirements: !ruby/object:Gem::Requirement
330
+ none: false
331
+ requirements:
332
+ - - ! '>='
333
+ - !ruby/object:Gem::Version
334
+ version: 1.2.2
235
335
  - !ruby/object:Gem::Dependency
236
336
  name: haml
237
- requirement: &2157811340 !ruby/object:Gem::Requirement
337
+ requirement: !ruby/object:Gem::Requirement
238
338
  none: false
239
339
  requirements:
240
340
  - - ! '>='
@@ -242,10 +342,63 @@ dependencies:
242
342
  version: 3.0.25
243
343
  type: :development
244
344
  prerelease: false
245
- version_requirements: *2157811340
345
+ version_requirements: !ruby/object:Gem::Requirement
346
+ none: false
347
+ requirements:
348
+ - - ! '>='
349
+ - !ruby/object:Gem::Version
350
+ version: 3.0.25
246
351
  - !ruby/object:Gem::Dependency
247
352
  name: yard
248
- requirement: &2157810960 !ruby/object:Gem::Requirement
353
+ requirement: !ruby/object:Gem::Requirement
354
+ none: false
355
+ requirements:
356
+ - - ! '>='
357
+ - !ruby/object:Gem::Version
358
+ version: '0'
359
+ type: :development
360
+ prerelease: false
361
+ version_requirements: !ruby/object:Gem::Requirement
362
+ none: false
363
+ requirements:
364
+ - - ! '>='
365
+ - !ruby/object:Gem::Version
366
+ version: '0'
367
+ - !ruby/object:Gem::Dependency
368
+ name: guard
369
+ requirement: !ruby/object:Gem::Requirement
370
+ none: false
371
+ requirements:
372
+ - - ! '>='
373
+ - !ruby/object:Gem::Version
374
+ version: '0'
375
+ type: :development
376
+ prerelease: false
377
+ version_requirements: !ruby/object:Gem::Requirement
378
+ none: false
379
+ requirements:
380
+ - - ! '>='
381
+ - !ruby/object:Gem::Version
382
+ version: '0'
383
+ - !ruby/object:Gem::Dependency
384
+ name: guard-rspec
385
+ requirement: !ruby/object:Gem::Requirement
386
+ none: false
387
+ requirements:
388
+ - - ! '>='
389
+ - !ruby/object:Gem::Version
390
+ version: '0'
391
+ type: :development
392
+ prerelease: false
393
+ version_requirements: !ruby/object:Gem::Requirement
394
+ none: false
395
+ requirements:
396
+ - - ! '>='
397
+ - !ruby/object:Gem::Version
398
+ version: '0'
399
+ - !ruby/object:Gem::Dependency
400
+ name: yajl-ruby
401
+ requirement: !ruby/object:Gem::Requirement
249
402
  none: false
250
403
  requirements:
251
404
  - - ! '>='
@@ -253,10 +406,63 @@ dependencies:
253
406
  version: '0'
254
407
  type: :development
255
408
  prerelease: false
256
- version_requirements: *2157810960
409
+ version_requirements: !ruby/object:Gem::Requirement
410
+ none: false
411
+ requirements:
412
+ - - ! '>='
413
+ - !ruby/object:Gem::Version
414
+ version: '0'
257
415
  - !ruby/object:Gem::Dependency
258
416
  name: bluecloth
259
- requirement: &2157810500 !ruby/object:Gem::Requirement
417
+ requirement: !ruby/object:Gem::Requirement
418
+ none: false
419
+ requirements:
420
+ - - ! '>='
421
+ - !ruby/object:Gem::Version
422
+ version: '0'
423
+ type: :development
424
+ prerelease: false
425
+ version_requirements: !ruby/object:Gem::Requirement
426
+ none: false
427
+ requirements:
428
+ - - ! '>='
429
+ - !ruby/object:Gem::Version
430
+ version: '0'
431
+ - !ruby/object:Gem::Dependency
432
+ name: bson_ext
433
+ requirement: !ruby/object:Gem::Requirement
434
+ none: false
435
+ requirements:
436
+ - - ! '>='
437
+ - !ruby/object:Gem::Version
438
+ version: '0'
439
+ type: :development
440
+ prerelease: false
441
+ version_requirements: !ruby/object:Gem::Requirement
442
+ none: false
443
+ requirements:
444
+ - - ! '>='
445
+ - !ruby/object:Gem::Version
446
+ version: '0'
447
+ - !ruby/object:Gem::Dependency
448
+ name: growl
449
+ requirement: !ruby/object:Gem::Requirement
450
+ none: false
451
+ requirements:
452
+ - - ~>
453
+ - !ruby/object:Gem::Version
454
+ version: 1.0.3
455
+ type: :development
456
+ prerelease: false
457
+ version_requirements: !ruby/object:Gem::Requirement
458
+ none: false
459
+ requirements:
460
+ - - ~>
461
+ - !ruby/object:Gem::Version
462
+ version: 1.0.3
463
+ - !ruby/object:Gem::Dependency
464
+ name: rb-fsevent
465
+ requirement: !ruby/object:Gem::Requirement
260
466
  none: false
261
467
  requirements:
262
468
  - - ! '>='
@@ -264,7 +470,12 @@ dependencies:
264
470
  version: '0'
265
471
  type: :development
266
472
  prerelease: false
267
- version_requirements: *2157810500
473
+ version_requirements: !ruby/object:Gem::Requirement
474
+ none: false
475
+ requirements:
476
+ - - ! '>='
477
+ - !ruby/object:Gem::Version
478
+ version: '0'
268
479
  description: Async framework for writing API servers
269
480
  email:
270
481
  - dj2@everburning.com
@@ -276,10 +487,12 @@ files:
276
487
  - examples/activerecord/config/srv.rb
277
488
  - examples/activerecord/srv.rb
278
489
  - examples/api_proxy.rb
490
+ - examples/around.rb
279
491
  - examples/async_aroundware_demo.rb
280
492
  - examples/async_upload.rb
281
493
  - examples/auth_and_rate_limit.rb
282
494
  - examples/chunked_streaming.rb
495
+ - examples/clone.rb
283
496
  - examples/conf_test.rb
284
497
  - examples/config/auth_and_rate_limit.rb
285
498
  - examples/config/conf_test.rb
@@ -288,41 +501,46 @@ files:
288
501
  - examples/config/http_log.rb
289
502
  - examples/config/shared.rb
290
503
  - examples/config/template.rb
504
+ - examples/config/websocket.rb
291
505
  - examples/content_stream.rb
506
+ - examples/custom_logs.rb
292
507
  - examples/custom_server.rb
293
508
  - examples/early_abort.rb
294
509
  - examples/echo.rb
295
- - examples/env_use_statements.rb
296
- - examples/favicon.rb
510
+ - examples/fiber_pool.rb
511
+ - examples/grape/config/apiserver.rb
512
+ - examples/grape/server.rb
297
513
  - examples/gziped.rb
298
514
  - examples/hello_world.rb
299
515
  - examples/http_log.rb
516
+ - examples/params.rb
300
517
  - examples/public/favicon.ico
301
518
  - examples/public/stylesheets/style.css
302
- - examples/rack_routes.rb
303
519
  - examples/rasterize/rasterize.js
304
520
  - examples/rasterize/rasterize.rb
305
521
  - examples/rasterize/rasterize_and_shorten.rb
306
- - examples/rasterize/thumb/f7ad4cb03e5bfd0e2c43db8e598fb3cd.png
522
+ - examples/router.rb
307
523
  - examples/stream.rb
308
524
  - examples/template.rb
525
+ - examples/test.rb
309
526
  - examples/test_rig.rb
310
- - examples/valid.rb
527
+ - examples/upload.rb
311
528
  - examples/views/debug.haml
312
529
  - examples/views/joke.markdown
313
530
  - examples/views/layout.erb
314
531
  - examples/views/layout.haml
315
532
  - examples/views/root.haml
533
+ - examples/websocket.rb
534
+ - examples/ws/favicon.ico
535
+ - examples/ws/index.erb
316
536
  - Gemfile
317
537
  - goliath.gemspec
538
+ - Guardfile
318
539
  - HISTORY.md
319
540
  - lib/goliath/api.rb
320
541
  - lib/goliath/application.rb
321
542
  - lib/goliath/connection.rb
322
543
  - lib/goliath/constants.rb
323
- - lib/goliath/deprecated/async_aroundware.rb
324
- - lib/goliath/deprecated/mongo_receiver.rb
325
- - lib/goliath/deprecated/response_receiver.rb
326
544
  - lib/goliath/env.rb
327
545
  - lib/goliath/goliath.rb
328
546
  - lib/goliath/headers.rb
@@ -334,6 +552,7 @@ files:
334
552
  - lib/goliath/rack/builder.rb
335
553
  - lib/goliath/rack/default_mime_type.rb
336
554
  - lib/goliath/rack/default_response_format.rb
555
+ - lib/goliath/rack/favicon.rb
337
556
  - lib/goliath/rack/formatters/html.rb
338
557
  - lib/goliath/rack/formatters/json.rb
339
558
  - lib/goliath/rack/formatters/plist.rb
@@ -348,10 +567,18 @@ files:
348
567
  - lib/goliath/rack/simple_aroundware_factory.rb
349
568
  - lib/goliath/rack/templates.rb
350
569
  - lib/goliath/rack/tracer.rb
570
+ - lib/goliath/rack/types/base.rb
571
+ - lib/goliath/rack/types/boolean.rb
572
+ - lib/goliath/rack/types/core.rb
573
+ - lib/goliath/rack/types/symbol.rb
574
+ - lib/goliath/rack/types.rb
351
575
  - lib/goliath/rack/validation/boolean_value.rb
576
+ - lib/goliath/rack/validation/coerce.rb
352
577
  - lib/goliath/rack/validation/default_params.rb
353
578
  - lib/goliath/rack/validation/numeric_range.rb
579
+ - lib/goliath/rack/validation/param.rb
354
580
  - lib/goliath/rack/validation/request_method.rb
581
+ - lib/goliath/rack/validation/required.rb
355
582
  - lib/goliath/rack/validation/required_param.rb
356
583
  - lib/goliath/rack/validation/required_value.rb
357
584
  - lib/goliath/rack/validation.rb
@@ -362,14 +589,18 @@ files:
362
589
  - lib/goliath/runner.rb
363
590
  - lib/goliath/server.rb
364
591
  - lib/goliath/test_helper.rb
592
+ - lib/goliath/test_helper_ws.rb
365
593
  - lib/goliath/validation/error.rb
366
594
  - lib/goliath/validation/standard_http_errors.rb
367
595
  - lib/goliath/validation.rb
368
596
  - lib/goliath/version.rb
597
+ - lib/goliath/websocket.rb
369
598
  - lib/goliath.rb
370
599
  - LICENSE
371
600
  - pkg/data.tar.gz
372
601
  - pkg/goliath-0.9.3.gem
602
+ - pkg/goliath-0.9.4.gem
603
+ - pkg/goliath-1.0.0.beta.1.gem
373
604
  - pkg/metadata
374
605
  - Rakefile
375
606
  - README.md
@@ -378,19 +609,20 @@ files:
378
609
  - spec/integration/echo_spec.rb
379
610
  - spec/integration/empty_body_spec.rb
380
611
  - spec/integration/http_log_spec.rb
612
+ - spec/integration/jsonp_spec.rb
381
613
  - spec/integration/keepalive_spec.rb
382
614
  - spec/integration/pipelining_spec.rb
383
- - spec/integration/rack_routes_spec.rb
384
615
  - spec/integration/reloader_spec.rb
385
616
  - spec/integration/template_spec.rb
617
+ - spec/integration/test_helper_spec.rb
386
618
  - spec/integration/trace_spec.rb
387
619
  - spec/integration/valid_spec.rb
620
+ - spec/integration/websocket_spec.rb
388
621
  - spec/spec_helper.rb
389
622
  - spec/unit/api_spec.rb
390
623
  - spec/unit/connection_spec.rb
391
624
  - spec/unit/env_spec.rb
392
625
  - spec/unit/headers_spec.rb
393
- - spec/unit/rack/builder_spec.rb
394
626
  - spec/unit/rack/default_mime_type_spec.rb
395
627
  - spec/unit/rack/formatters/json_spec.rb
396
628
  - spec/unit/rack/formatters/plist_spec.rb
@@ -402,6 +634,7 @@ files:
402
634
  - spec/unit/rack/validation/boolean_value_spec.rb
403
635
  - spec/unit/rack/validation/default_params_spec.rb
404
636
  - spec/unit/rack/validation/numeric_range_spec.rb
637
+ - spec/unit/rack/validation/param_spec.rb
405
638
  - spec/unit/rack/validation/request_method_spec.rb
406
639
  - spec/unit/rack/validation/required_param_spec.rb
407
640
  - spec/unit/rack/validation/required_value_spec.rb
@@ -410,6 +643,8 @@ files:
410
643
  - spec/unit/runner_spec.rb
411
644
  - spec/unit/server_spec.rb
412
645
  - spec/unit/validation/standard_http_errors_spec.rb
646
+ - test/echo_test.rb
647
+ - test/test_helper.rb
413
648
  - .gemtest
414
649
  - .gitignore
415
650
  - .rspec
@@ -425,16 +660,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
425
660
  requirements:
426
661
  - - ! '>='
427
662
  - !ruby/object:Gem::Version
428
- version: '0'
663
+ version: 1.9.2
429
664
  required_rubygems_version: !ruby/object:Gem::Requirement
430
665
  none: false
431
666
  requirements:
432
- - - ! '>='
667
+ - - ! '>'
433
668
  - !ruby/object:Gem::Version
434
- version: '0'
669
+ version: 1.3.1
435
670
  requirements: []
436
671
  rubyforge_project:
437
- rubygems_version: 1.8.5
672
+ rubygems_version: 1.8.24
438
673
  signing_key:
439
674
  specification_version: 3
440
675
  summary: Async framework for writing API servers
@@ -444,19 +679,20 @@ test_files:
444
679
  - spec/integration/echo_spec.rb
445
680
  - spec/integration/empty_body_spec.rb
446
681
  - spec/integration/http_log_spec.rb
682
+ - spec/integration/jsonp_spec.rb
447
683
  - spec/integration/keepalive_spec.rb
448
684
  - spec/integration/pipelining_spec.rb
449
- - spec/integration/rack_routes_spec.rb
450
685
  - spec/integration/reloader_spec.rb
451
686
  - spec/integration/template_spec.rb
687
+ - spec/integration/test_helper_spec.rb
452
688
  - spec/integration/trace_spec.rb
453
689
  - spec/integration/valid_spec.rb
690
+ - spec/integration/websocket_spec.rb
454
691
  - spec/spec_helper.rb
455
692
  - spec/unit/api_spec.rb
456
693
  - spec/unit/connection_spec.rb
457
694
  - spec/unit/env_spec.rb
458
695
  - spec/unit/headers_spec.rb
459
- - spec/unit/rack/builder_spec.rb
460
696
  - spec/unit/rack/default_mime_type_spec.rb
461
697
  - spec/unit/rack/formatters/json_spec.rb
462
698
  - spec/unit/rack/formatters/plist_spec.rb
@@ -468,6 +704,7 @@ test_files:
468
704
  - spec/unit/rack/validation/boolean_value_spec.rb
469
705
  - spec/unit/rack/validation/default_params_spec.rb
470
706
  - spec/unit/rack/validation/numeric_range_spec.rb
707
+ - spec/unit/rack/validation/param_spec.rb
471
708
  - spec/unit/rack/validation/request_method_spec.rb
472
709
  - spec/unit/rack/validation/required_param_spec.rb
473
710
  - spec/unit/rack/validation/required_value_spec.rb
@@ -476,3 +713,4 @@ test_files:
476
713
  - spec/unit/runner_spec.rb
477
714
  - spec/unit/server_spec.rb
478
715
  - spec/unit/validation/standard_http_errors_spec.rb
716
+ has_rdoc: