goliath 1.0.4 → 1.0.6
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.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/goliath.gemspec +11 -7
- data/lib/goliath/api.rb +1 -1
- data/lib/goliath/connection.rb +15 -11
- data/lib/goliath/constants.rb +1 -0
- data/lib/goliath/rack/default_response_format.rb +3 -9
- data/lib/goliath/rack/formatters/json.rb +1 -1
- data/lib/goliath/rack/jsonp.rb +7 -2
- data/lib/goliath/rack/params.rb +4 -3
- data/lib/goliath/rack/validator.rb +1 -1
- data/lib/goliath/request.rb +37 -20
- data/lib/goliath/response.rb +2 -0
- data/lib/goliath/runner.rb +4 -3
- data/lib/goliath/server.rb +17 -2
- data/lib/goliath/test_helper_sse.rb +76 -0
- data/lib/goliath/validation/error.rb +4 -1
- data/lib/goliath/version.rb +1 -1
- data/spec/integration/async_request_processing.rb +2 -2
- data/spec/integration/chunked_streaming_spec.rb +1 -1
- data/spec/integration/early_abort_spec.rb +6 -6
- data/spec/integration/echo_spec.rb +7 -7
- data/spec/integration/empty_body_spec.rb +2 -2
- data/spec/integration/event_stream_spec.rb +50 -0
- data/spec/integration/exception_handling_spec.rb +202 -0
- data/spec/integration/http_log_spec.rb +16 -16
- data/spec/integration/jsonp_spec.rb +61 -10
- data/spec/integration/keepalive_spec.rb +2 -2
- data/spec/integration/pipelining_spec.rb +3 -3
- data/spec/integration/reloader_spec.rb +3 -3
- data/spec/integration/template_spec.rb +7 -7
- data/spec/integration/test_helper_spec.rb +3 -3
- data/spec/integration/trace_spec.rb +2 -2
- data/spec/integration/valid_spec.rb +25 -5
- data/spec/integration/websocket_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -3
- data/spec/unit/api_spec.rb +1 -1
- data/spec/unit/connection_spec.rb +8 -8
- data/spec/unit/console_spec.rb +3 -3
- data/spec/unit/env_spec.rb +9 -9
- data/spec/unit/headers_spec.rb +8 -8
- data/spec/unit/rack/default_mime_type_spec.rb +3 -3
- data/spec/unit/rack/formatters/json_spec.rb +35 -13
- data/spec/unit/rack/formatters/plist_spec.rb +8 -8
- data/spec/unit/rack/formatters/xml_spec.rb +18 -18
- data/spec/unit/rack/formatters/yaml_spec.rb +13 -13
- data/spec/unit/rack/heartbeat_spec.rb +15 -15
- data/spec/unit/rack/params_spec.rb +99 -62
- data/spec/unit/rack/render_spec.rb +14 -14
- data/spec/unit/rack/validation/boolean_value_spec.rb +6 -6
- data/spec/unit/rack/validation/default_params_spec.rb +13 -13
- data/spec/unit/rack/validation/numeric_range_spec.rb +17 -17
- data/spec/unit/rack/validation/param_spec.rb +75 -75
- data/spec/unit/rack/validation/request_method_spec.rb +9 -9
- data/spec/unit/rack/validation/required_param_spec.rb +39 -39
- data/spec/unit/rack/validation/required_value_spec.rb +19 -19
- data/spec/unit/request_spec.rb +18 -18
- data/spec/unit/response_spec.rb +6 -6
- data/spec/unit/runner_spec.rb +31 -31
- data/spec/unit/server_spec.rb +21 -21
- data/spec/unit/validation/standard_http_errors_spec.rb +6 -6
- metadata +149 -94
- data/examples/around.rb +0 -38
- data/examples/clone.rb +0 -26
- data/examples/router.rb +0 -15
- data/examples/test.rb +0 -31
- data/examples/upload.rb +0 -17
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goliath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dan sinclair
|
@@ -9,34 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-10-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 1.0.0.beta.4
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 1.0.0.beta.4
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: em-synchrony
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 1.0.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: 1.0.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
@@ -57,378 +57,434 @@ dependencies:
|
|
57
57
|
name: http_parser.rb
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 0.6.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 0.6.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: log4r
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: einhorn
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :runtime
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
82
96
|
- !ruby/object:Gem::Version
|
83
97
|
version: '0'
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: rack
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
|
-
- -
|
102
|
+
- - ">="
|
89
103
|
- !ruby/object:Gem::Version
|
90
104
|
version: 1.2.2
|
91
105
|
type: :runtime
|
92
106
|
prerelease: false
|
93
107
|
version_requirements: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
95
|
-
- -
|
109
|
+
- - ">="
|
96
110
|
- !ruby/object:Gem::Version
|
97
111
|
version: 1.2.2
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
113
|
name: rack-contrib
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
101
115
|
requirements:
|
102
|
-
- -
|
116
|
+
- - ">="
|
103
117
|
- !ruby/object:Gem::Version
|
104
118
|
version: '0'
|
105
119
|
type: :runtime
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
108
122
|
requirements:
|
109
|
-
- -
|
123
|
+
- - ">="
|
110
124
|
- !ruby/object:Gem::Version
|
111
125
|
version: '0'
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
127
|
name: rack-respond_to
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
115
129
|
requirements:
|
116
|
-
- -
|
130
|
+
- - ">="
|
117
131
|
- !ruby/object:Gem::Version
|
118
132
|
version: '0'
|
119
133
|
type: :runtime
|
120
134
|
prerelease: false
|
121
135
|
version_requirements: !ruby/object:Gem::Requirement
|
122
136
|
requirements:
|
123
|
-
- -
|
137
|
+
- - ">="
|
124
138
|
- !ruby/object:Gem::Version
|
125
139
|
version: '0'
|
126
140
|
- !ruby/object:Gem::Dependency
|
127
141
|
name: async-rack
|
128
142
|
requirement: !ruby/object:Gem::Requirement
|
129
143
|
requirements:
|
130
|
-
- -
|
144
|
+
- - ">="
|
131
145
|
- !ruby/object:Gem::Version
|
132
146
|
version: '0'
|
133
147
|
type: :runtime
|
134
148
|
prerelease: false
|
135
149
|
version_requirements: !ruby/object:Gem::Requirement
|
136
150
|
requirements:
|
137
|
-
- -
|
151
|
+
- - ">="
|
138
152
|
- !ruby/object:Gem::Version
|
139
153
|
version: '0'
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
155
|
name: multi_json
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
143
157
|
requirements:
|
144
|
-
- -
|
158
|
+
- - ">="
|
145
159
|
- !ruby/object:Gem::Version
|
146
160
|
version: '0'
|
147
161
|
type: :runtime
|
148
162
|
prerelease: false
|
149
163
|
version_requirements: !ruby/object:Gem::Requirement
|
150
164
|
requirements:
|
151
|
-
- -
|
165
|
+
- - ">="
|
152
166
|
- !ruby/object:Gem::Version
|
153
167
|
version: '0'
|
154
168
|
- !ruby/object:Gem::Dependency
|
155
169
|
name: rake
|
156
170
|
requirement: !ruby/object:Gem::Requirement
|
157
171
|
requirements:
|
158
|
-
- -
|
172
|
+
- - ">="
|
159
173
|
- !ruby/object:Gem::Version
|
160
174
|
version: 0.8.7
|
161
175
|
type: :development
|
162
176
|
prerelease: false
|
163
177
|
version_requirements: !ruby/object:Gem::Requirement
|
164
178
|
requirements:
|
165
|
-
- -
|
179
|
+
- - ">="
|
166
180
|
- !ruby/object:Gem::Version
|
167
181
|
version: 0.8.7
|
168
182
|
- !ruby/object:Gem::Dependency
|
169
183
|
name: rspec
|
170
184
|
requirement: !ruby/object:Gem::Requirement
|
171
185
|
requirements:
|
172
|
-
- -
|
186
|
+
- - "~>"
|
173
187
|
- !ruby/object:Gem::Version
|
174
|
-
version: '
|
188
|
+
version: '3.0'
|
175
189
|
type: :development
|
176
190
|
prerelease: false
|
177
191
|
version_requirements: !ruby/object:Gem::Requirement
|
178
192
|
requirements:
|
179
|
-
- -
|
193
|
+
- - "~>"
|
180
194
|
- !ruby/object:Gem::Version
|
181
|
-
version: '
|
195
|
+
version: '3.0'
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: test-unit
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
type: :development
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
182
210
|
- !ruby/object:Gem::Dependency
|
183
211
|
name: nokogiri
|
184
212
|
requirement: !ruby/object:Gem::Requirement
|
185
213
|
requirements:
|
186
|
-
- -
|
214
|
+
- - ">="
|
187
215
|
- !ruby/object:Gem::Version
|
188
216
|
version: '0'
|
189
217
|
type: :development
|
190
218
|
prerelease: false
|
191
219
|
version_requirements: !ruby/object:Gem::Requirement
|
192
220
|
requirements:
|
193
|
-
- -
|
221
|
+
- - ">="
|
194
222
|
- !ruby/object:Gem::Version
|
195
223
|
version: '0'
|
196
224
|
- !ruby/object:Gem::Dependency
|
197
225
|
name: em-http-request
|
198
226
|
requirement: !ruby/object:Gem::Requirement
|
199
227
|
requirements:
|
200
|
-
- -
|
228
|
+
- - ">="
|
201
229
|
- !ruby/object:Gem::Version
|
202
230
|
version: 1.0.0
|
203
231
|
type: :development
|
204
232
|
prerelease: false
|
205
233
|
version_requirements: !ruby/object:Gem::Requirement
|
206
234
|
requirements:
|
207
|
-
- -
|
235
|
+
- - ">="
|
208
236
|
- !ruby/object:Gem::Version
|
209
237
|
version: 1.0.0
|
210
238
|
- !ruby/object:Gem::Dependency
|
211
239
|
name: em-mongo
|
212
240
|
requirement: !ruby/object:Gem::Requirement
|
213
241
|
requirements:
|
214
|
-
- - ~>
|
242
|
+
- - "~>"
|
215
243
|
- !ruby/object:Gem::Version
|
216
244
|
version: 0.4.0
|
217
245
|
type: :development
|
218
246
|
prerelease: false
|
219
247
|
version_requirements: !ruby/object:Gem::Requirement
|
220
248
|
requirements:
|
221
|
-
- - ~>
|
249
|
+
- - "~>"
|
222
250
|
- !ruby/object:Gem::Version
|
223
251
|
version: 0.4.0
|
224
252
|
- !ruby/object:Gem::Dependency
|
225
253
|
name: rack-rewrite
|
226
254
|
requirement: !ruby/object:Gem::Requirement
|
227
255
|
requirements:
|
228
|
-
- -
|
256
|
+
- - ">="
|
229
257
|
- !ruby/object:Gem::Version
|
230
258
|
version: '0'
|
231
259
|
type: :development
|
232
260
|
prerelease: false
|
233
261
|
version_requirements: !ruby/object:Gem::Requirement
|
234
262
|
requirements:
|
235
|
-
- -
|
263
|
+
- - ">="
|
236
264
|
- !ruby/object:Gem::Version
|
237
265
|
version: '0'
|
238
266
|
- !ruby/object:Gem::Dependency
|
239
267
|
name: multipart_body
|
240
268
|
requirement: !ruby/object:Gem::Requirement
|
241
269
|
requirements:
|
242
|
-
- -
|
270
|
+
- - ">="
|
243
271
|
- !ruby/object:Gem::Version
|
244
272
|
version: '0'
|
245
273
|
type: :development
|
246
274
|
prerelease: false
|
247
275
|
version_requirements: !ruby/object:Gem::Requirement
|
248
276
|
requirements:
|
249
|
-
- -
|
277
|
+
- - ">="
|
250
278
|
- !ruby/object:Gem::Version
|
251
279
|
version: '0'
|
252
280
|
- !ruby/object:Gem::Dependency
|
253
281
|
name: amqp
|
254
282
|
requirement: !ruby/object:Gem::Requirement
|
255
283
|
requirements:
|
256
|
-
- -
|
284
|
+
- - ">="
|
257
285
|
- !ruby/object:Gem::Version
|
258
286
|
version: 0.7.1
|
259
287
|
type: :development
|
260
288
|
prerelease: false
|
261
289
|
version_requirements: !ruby/object:Gem::Requirement
|
262
290
|
requirements:
|
263
|
-
- -
|
291
|
+
- - ">="
|
264
292
|
- !ruby/object:Gem::Version
|
265
293
|
version: 0.7.1
|
266
294
|
- !ruby/object:Gem::Dependency
|
267
295
|
name: em-websocket-client
|
268
296
|
requirement: !ruby/object:Gem::Requirement
|
269
297
|
requirements:
|
270
|
-
- -
|
298
|
+
- - ">="
|
271
299
|
- !ruby/object:Gem::Version
|
272
300
|
version: '0'
|
273
301
|
type: :development
|
274
302
|
prerelease: false
|
275
303
|
version_requirements: !ruby/object:Gem::Requirement
|
276
304
|
requirements:
|
277
|
-
- -
|
305
|
+
- - ">="
|
278
306
|
- !ruby/object:Gem::Version
|
279
307
|
version: '0'
|
308
|
+
- !ruby/object:Gem::Dependency
|
309
|
+
name: em-eventsource
|
310
|
+
requirement: !ruby/object:Gem::Requirement
|
311
|
+
requirements:
|
312
|
+
- - ">="
|
313
|
+
- !ruby/object:Gem::Version
|
314
|
+
version: '0'
|
315
|
+
type: :development
|
316
|
+
prerelease: false
|
317
|
+
version_requirements: !ruby/object:Gem::Requirement
|
318
|
+
requirements:
|
319
|
+
- - ">="
|
320
|
+
- !ruby/object:Gem::Version
|
321
|
+
version: '0'
|
322
|
+
- !ruby/object:Gem::Dependency
|
323
|
+
name: rack
|
324
|
+
requirement: !ruby/object:Gem::Requirement
|
325
|
+
requirements:
|
326
|
+
- - "<"
|
327
|
+
- !ruby/object:Gem::Version
|
328
|
+
version: '2'
|
329
|
+
type: :development
|
330
|
+
prerelease: false
|
331
|
+
version_requirements: !ruby/object:Gem::Requirement
|
332
|
+
requirements:
|
333
|
+
- - "<"
|
334
|
+
- !ruby/object:Gem::Version
|
335
|
+
version: '2'
|
280
336
|
- !ruby/object:Gem::Dependency
|
281
337
|
name: tilt
|
282
338
|
requirement: !ruby/object:Gem::Requirement
|
283
339
|
requirements:
|
284
|
-
- -
|
340
|
+
- - ">="
|
285
341
|
- !ruby/object:Gem::Version
|
286
342
|
version: 1.2.2
|
287
343
|
type: :development
|
288
344
|
prerelease: false
|
289
345
|
version_requirements: !ruby/object:Gem::Requirement
|
290
346
|
requirements:
|
291
|
-
- -
|
347
|
+
- - ">="
|
292
348
|
- !ruby/object:Gem::Version
|
293
349
|
version: 1.2.2
|
294
350
|
- !ruby/object:Gem::Dependency
|
295
351
|
name: haml
|
296
352
|
requirement: !ruby/object:Gem::Requirement
|
297
353
|
requirements:
|
298
|
-
- -
|
354
|
+
- - ">="
|
299
355
|
- !ruby/object:Gem::Version
|
300
356
|
version: 3.0.25
|
301
357
|
type: :development
|
302
358
|
prerelease: false
|
303
359
|
version_requirements: !ruby/object:Gem::Requirement
|
304
360
|
requirements:
|
305
|
-
- -
|
361
|
+
- - ">="
|
306
362
|
- !ruby/object:Gem::Version
|
307
363
|
version: 3.0.25
|
308
364
|
- !ruby/object:Gem::Dependency
|
309
365
|
name: yard
|
310
366
|
requirement: !ruby/object:Gem::Requirement
|
311
367
|
requirements:
|
312
|
-
- -
|
368
|
+
- - ">="
|
313
369
|
- !ruby/object:Gem::Version
|
314
370
|
version: '0'
|
315
371
|
type: :development
|
316
372
|
prerelease: false
|
317
373
|
version_requirements: !ruby/object:Gem::Requirement
|
318
374
|
requirements:
|
319
|
-
- -
|
375
|
+
- - ">="
|
320
376
|
- !ruby/object:Gem::Version
|
321
377
|
version: '0'
|
322
378
|
- !ruby/object:Gem::Dependency
|
323
379
|
name: guard
|
324
380
|
requirement: !ruby/object:Gem::Requirement
|
325
381
|
requirements:
|
326
|
-
- - ~>
|
382
|
+
- - "~>"
|
327
383
|
- !ruby/object:Gem::Version
|
328
|
-
version:
|
384
|
+
version: '2.0'
|
329
385
|
type: :development
|
330
386
|
prerelease: false
|
331
387
|
version_requirements: !ruby/object:Gem::Requirement
|
332
388
|
requirements:
|
333
|
-
- - ~>
|
389
|
+
- - "~>"
|
334
390
|
- !ruby/object:Gem::Version
|
335
|
-
version:
|
391
|
+
version: '2.0'
|
336
392
|
- !ruby/object:Gem::Dependency
|
337
393
|
name: guard-rspec
|
338
394
|
requirement: !ruby/object:Gem::Requirement
|
339
395
|
requirements:
|
340
|
-
- - ~>
|
396
|
+
- - "~>"
|
341
397
|
- !ruby/object:Gem::Version
|
342
|
-
version:
|
398
|
+
version: '4.0'
|
343
399
|
type: :development
|
344
400
|
prerelease: false
|
345
401
|
version_requirements: !ruby/object:Gem::Requirement
|
346
402
|
requirements:
|
347
|
-
- - ~>
|
403
|
+
- - "~>"
|
348
404
|
- !ruby/object:Gem::Version
|
349
|
-
version:
|
405
|
+
version: '4.0'
|
350
406
|
- !ruby/object:Gem::Dependency
|
351
407
|
name: listen
|
352
408
|
requirement: !ruby/object:Gem::Requirement
|
353
409
|
requirements:
|
354
|
-
- - ~>
|
410
|
+
- - "~>"
|
355
411
|
- !ruby/object:Gem::Version
|
356
|
-
version:
|
412
|
+
version: '2.0'
|
357
413
|
type: :development
|
358
414
|
prerelease: false
|
359
415
|
version_requirements: !ruby/object:Gem::Requirement
|
360
416
|
requirements:
|
361
|
-
- - ~>
|
417
|
+
- - "~>"
|
362
418
|
- !ruby/object:Gem::Version
|
363
|
-
version:
|
419
|
+
version: '2.0'
|
364
420
|
- !ruby/object:Gem::Dependency
|
365
421
|
name: yajl-ruby
|
366
422
|
requirement: !ruby/object:Gem::Requirement
|
367
423
|
requirements:
|
368
|
-
- -
|
424
|
+
- - ">="
|
369
425
|
- !ruby/object:Gem::Version
|
370
426
|
version: '0'
|
371
427
|
type: :development
|
372
428
|
prerelease: false
|
373
429
|
version_requirements: !ruby/object:Gem::Requirement
|
374
430
|
requirements:
|
375
|
-
- -
|
431
|
+
- - ">="
|
376
432
|
- !ruby/object:Gem::Version
|
377
433
|
version: '0'
|
378
434
|
- !ruby/object:Gem::Dependency
|
379
435
|
name: bluecloth
|
380
436
|
requirement: !ruby/object:Gem::Requirement
|
381
437
|
requirements:
|
382
|
-
- -
|
438
|
+
- - ">="
|
383
439
|
- !ruby/object:Gem::Version
|
384
440
|
version: '0'
|
385
441
|
type: :development
|
386
442
|
prerelease: false
|
387
443
|
version_requirements: !ruby/object:Gem::Requirement
|
388
444
|
requirements:
|
389
|
-
- -
|
445
|
+
- - ">="
|
390
446
|
- !ruby/object:Gem::Version
|
391
447
|
version: '0'
|
392
448
|
- !ruby/object:Gem::Dependency
|
393
449
|
name: bson_ext
|
394
450
|
requirement: !ruby/object:Gem::Requirement
|
395
451
|
requirements:
|
396
|
-
- -
|
452
|
+
- - ">="
|
397
453
|
- !ruby/object:Gem::Version
|
398
454
|
version: '0'
|
399
455
|
type: :development
|
400
456
|
prerelease: false
|
401
457
|
version_requirements: !ruby/object:Gem::Requirement
|
402
458
|
requirements:
|
403
|
-
- -
|
459
|
+
- - ">="
|
404
460
|
- !ruby/object:Gem::Version
|
405
461
|
version: '0'
|
406
462
|
- !ruby/object:Gem::Dependency
|
407
463
|
name: growl
|
408
464
|
requirement: !ruby/object:Gem::Requirement
|
409
465
|
requirements:
|
410
|
-
- - ~>
|
466
|
+
- - "~>"
|
411
467
|
- !ruby/object:Gem::Version
|
412
468
|
version: 1.0.3
|
413
469
|
type: :development
|
414
470
|
prerelease: false
|
415
471
|
version_requirements: !ruby/object:Gem::Requirement
|
416
472
|
requirements:
|
417
|
-
- - ~>
|
473
|
+
- - "~>"
|
418
474
|
- !ruby/object:Gem::Version
|
419
475
|
version: 1.0.3
|
420
476
|
- !ruby/object:Gem::Dependency
|
421
477
|
name: rb-fsevent
|
422
478
|
requirement: !ruby/object:Gem::Requirement
|
423
479
|
requirements:
|
424
|
-
- -
|
480
|
+
- - ">="
|
425
481
|
- !ruby/object:Gem::Version
|
426
482
|
version: '0'
|
427
483
|
type: :development
|
428
484
|
prerelease: false
|
429
485
|
version_requirements: !ruby/object:Gem::Requirement
|
430
486
|
requirements:
|
431
|
-
- -
|
487
|
+
- - ">="
|
432
488
|
- !ruby/object:Gem::Version
|
433
489
|
version: '0'
|
434
490
|
description: Async framework for writing API servers
|
@@ -439,15 +495,23 @@ executables: []
|
|
439
495
|
extensions: []
|
440
496
|
extra_rdoc_files: []
|
441
497
|
files:
|
498
|
+
- ".gemtest"
|
499
|
+
- ".gitignore"
|
500
|
+
- ".rspec"
|
501
|
+
- ".yardopts"
|
502
|
+
- Gemfile
|
503
|
+
- Guardfile
|
504
|
+
- HISTORY.md
|
505
|
+
- LICENSE
|
506
|
+
- README.md
|
507
|
+
- Rakefile
|
442
508
|
- examples/activerecord/config/srv.rb
|
443
509
|
- examples/activerecord/srv.rb
|
444
510
|
- examples/api_proxy.rb
|
445
|
-
- examples/around.rb
|
446
511
|
- examples/async_aroundware_demo.rb
|
447
512
|
- examples/async_upload.rb
|
448
513
|
- examples/auth_and_rate_limit.rb
|
449
514
|
- examples/chunked_streaming.rb
|
450
|
-
- examples/clone.rb
|
451
515
|
- examples/conf_test.rb
|
452
516
|
- examples/config/auth_and_rate_limit.rb
|
453
517
|
- examples/config/conf_test.rb
|
@@ -474,12 +538,9 @@ files:
|
|
474
538
|
- examples/rasterize/rasterize.js
|
475
539
|
- examples/rasterize/rasterize.rb
|
476
540
|
- examples/rasterize/rasterize_and_shorten.rb
|
477
|
-
- examples/router.rb
|
478
541
|
- examples/stream.rb
|
479
542
|
- examples/template.rb
|
480
|
-
- examples/test.rb
|
481
543
|
- examples/test_rig.rb
|
482
|
-
- examples/upload.rb
|
483
544
|
- examples/views/debug.haml
|
484
545
|
- examples/views/joke.markdown
|
485
546
|
- examples/views/layout.erb
|
@@ -488,10 +549,8 @@ files:
|
|
488
549
|
- examples/websocket.rb
|
489
550
|
- examples/ws/favicon.ico
|
490
551
|
- examples/ws/index.erb
|
491
|
-
- Gemfile
|
492
552
|
- goliath.gemspec
|
493
|
-
-
|
494
|
-
- HISTORY.md
|
553
|
+
- lib/goliath.rb
|
495
554
|
- lib/goliath/api.rb
|
496
555
|
- lib/goliath/application.rb
|
497
556
|
- lib/goliath/connection.rb
|
@@ -502,6 +561,7 @@ files:
|
|
502
561
|
- lib/goliath/headers.rb
|
503
562
|
- lib/goliath/http_status_codes.rb
|
504
563
|
- lib/goliath/plugins/latency.rb
|
564
|
+
- lib/goliath/rack.rb
|
505
565
|
- lib/goliath/rack/async_middleware.rb
|
506
566
|
- lib/goliath/rack/barrier_aroundware.rb
|
507
567
|
- lib/goliath/rack/barrier_aroundware_factory.rb
|
@@ -509,12 +569,12 @@ files:
|
|
509
569
|
- lib/goliath/rack/default_mime_type.rb
|
510
570
|
- lib/goliath/rack/default_response_format.rb
|
511
571
|
- lib/goliath/rack/favicon.rb
|
572
|
+
- lib/goliath/rack/formatters.rb
|
512
573
|
- lib/goliath/rack/formatters/html.rb
|
513
574
|
- lib/goliath/rack/formatters/json.rb
|
514
575
|
- lib/goliath/rack/formatters/plist.rb
|
515
576
|
- lib/goliath/rack/formatters/xml.rb
|
516
577
|
- lib/goliath/rack/formatters/yaml.rb
|
517
|
-
- lib/goliath/rack/formatters.rb
|
518
578
|
- lib/goliath/rack/heartbeat.rb
|
519
579
|
- lib/goliath/rack/jsonp.rb
|
520
580
|
- lib/goliath/rack/params.rb
|
@@ -523,11 +583,12 @@ files:
|
|
523
583
|
- lib/goliath/rack/simple_aroundware_factory.rb
|
524
584
|
- lib/goliath/rack/templates.rb
|
525
585
|
- lib/goliath/rack/tracer.rb
|
586
|
+
- lib/goliath/rack/types.rb
|
526
587
|
- lib/goliath/rack/types/base.rb
|
527
588
|
- lib/goliath/rack/types/boolean.rb
|
528
589
|
- lib/goliath/rack/types/core.rb
|
529
590
|
- lib/goliath/rack/types/symbol.rb
|
530
|
-
- lib/goliath/rack/
|
591
|
+
- lib/goliath/rack/validation.rb
|
531
592
|
- lib/goliath/rack/validation/boolean_value.rb
|
532
593
|
- lib/goliath/rack/validation/coerce.rb
|
533
594
|
- lib/goliath/rack/validation/default_params.rb
|
@@ -537,30 +598,27 @@ files:
|
|
537
598
|
- lib/goliath/rack/validation/required.rb
|
538
599
|
- lib/goliath/rack/validation/required_param.rb
|
539
600
|
- lib/goliath/rack/validation/required_value.rb
|
540
|
-
- lib/goliath/rack/validation.rb
|
541
601
|
- lib/goliath/rack/validator.rb
|
542
|
-
- lib/goliath/rack.rb
|
543
602
|
- lib/goliath/request.rb
|
544
603
|
- lib/goliath/response.rb
|
545
604
|
- lib/goliath/runner.rb
|
546
605
|
- lib/goliath/server.rb
|
547
606
|
- lib/goliath/test_helper.rb
|
607
|
+
- lib/goliath/test_helper_sse.rb
|
548
608
|
- lib/goliath/test_helper_streaming.rb
|
549
609
|
- lib/goliath/test_helper_ws.rb
|
610
|
+
- lib/goliath/validation.rb
|
550
611
|
- lib/goliath/validation/error.rb
|
551
612
|
- lib/goliath/validation/standard_http_errors.rb
|
552
|
-
- lib/goliath/validation.rb
|
553
613
|
- lib/goliath/version.rb
|
554
614
|
- lib/goliath/websocket.rb
|
555
|
-
- lib/goliath.rb
|
556
|
-
- LICENSE
|
557
|
-
- Rakefile
|
558
|
-
- README.md
|
559
615
|
- spec/integration/async_request_processing.rb
|
560
616
|
- spec/integration/chunked_streaming_spec.rb
|
561
617
|
- spec/integration/early_abort_spec.rb
|
562
618
|
- spec/integration/echo_spec.rb
|
563
619
|
- spec/integration/empty_body_spec.rb
|
620
|
+
- spec/integration/event_stream_spec.rb
|
621
|
+
- spec/integration/exception_handling_spec.rb
|
564
622
|
- spec/integration/http_log_spec.rb
|
565
623
|
- spec/integration/jsonp_spec.rb
|
566
624
|
- spec/integration/keepalive_spec.rb
|
@@ -599,10 +657,6 @@ files:
|
|
599
657
|
- spec/unit/validation/standard_http_errors_spec.rb
|
600
658
|
- test/echo_test.rb
|
601
659
|
- test/test_helper.rb
|
602
|
-
- .gemtest
|
603
|
-
- .gitignore
|
604
|
-
- .rspec
|
605
|
-
- .yardopts
|
606
660
|
homepage: http://goliath.io/
|
607
661
|
licenses: []
|
608
662
|
metadata: {}
|
@@ -612,17 +666,17 @@ require_paths:
|
|
612
666
|
- lib
|
613
667
|
required_ruby_version: !ruby/object:Gem::Requirement
|
614
668
|
requirements:
|
615
|
-
- -
|
669
|
+
- - ">="
|
616
670
|
- !ruby/object:Gem::Version
|
617
|
-
version: 1.
|
671
|
+
version: 2.1.0
|
618
672
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
619
673
|
requirements:
|
620
|
-
- -
|
674
|
+
- - ">="
|
621
675
|
- !ruby/object:Gem::Version
|
622
676
|
version: '0'
|
623
677
|
requirements: []
|
624
678
|
rubyforge_project:
|
625
|
-
rubygems_version: 2.
|
679
|
+
rubygems_version: 2.6.11
|
626
680
|
signing_key:
|
627
681
|
specification_version: 4
|
628
682
|
summary: Async framework for writing API servers
|
@@ -632,6 +686,8 @@ test_files:
|
|
632
686
|
- spec/integration/early_abort_spec.rb
|
633
687
|
- spec/integration/echo_spec.rb
|
634
688
|
- spec/integration/empty_body_spec.rb
|
689
|
+
- spec/integration/event_stream_spec.rb
|
690
|
+
- spec/integration/exception_handling_spec.rb
|
635
691
|
- spec/integration/http_log_spec.rb
|
636
692
|
- spec/integration/jsonp_spec.rb
|
637
693
|
- spec/integration/keepalive_spec.rb
|
@@ -668,4 +724,3 @@ test_files:
|
|
668
724
|
- spec/unit/runner_spec.rb
|
669
725
|
- spec/unit/server_spec.rb
|
670
726
|
- spec/unit/validation/standard_http_errors_spec.rb
|
671
|
-
has_rdoc:
|