rack 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rack might be problematic. Click here for more details.
- data/RDOX +0 -495
- data/README +4 -0
- data/lib/rack.rb +1 -1
- data/lib/rack/auth/digest/md5.rb +2 -1
- data/test/spec_rack_auth_digest.rb +6 -0
- metadata +124 -124
data/RDOX
CHANGED
@@ -1,495 +0,0 @@
|
|
1
|
-
|
2
|
-
== Rack::Auth::Basic
|
3
|
-
* should challenge correctly when no credentials are specified
|
4
|
-
* should rechallenge if incorrect credentials are specified
|
5
|
-
* should return application output if correct credentials are specified
|
6
|
-
* should return 400 Bad Request if different auth scheme used
|
7
|
-
* realm as optional constructor arg
|
8
|
-
|
9
|
-
== Rack::Auth::Digest::MD5
|
10
|
-
* should challenge when no credentials are specified
|
11
|
-
* should return application output if correct credentials given
|
12
|
-
* should return application output if correct credentials given (hashed passwords)
|
13
|
-
* should rechallenge if incorrect username given
|
14
|
-
* should rechallenge if incorrect password given
|
15
|
-
* should rechallenge with stale parameter if nonce is stale
|
16
|
-
* should return 400 Bad Request if incorrect qop given
|
17
|
-
* should return 400 Bad Request if incorrect uri given
|
18
|
-
* should return 400 Bad Request if different auth scheme used
|
19
|
-
* should not require credentials for unprotected path
|
20
|
-
* should challenge when no credentials are specified for protected path
|
21
|
-
* should return application output if correct credentials given for protected path
|
22
|
-
* should return application output if correct credentials given for POST
|
23
|
-
* should return application output if correct credentials given for PUT (using method override of POST)
|
24
|
-
* realm as optional constructor arg
|
25
|
-
|
26
|
-
== Rack::Builder
|
27
|
-
* chains apps by default
|
28
|
-
* has implicit #to_app
|
29
|
-
* supports blocks on use
|
30
|
-
* has explicit #to_app
|
31
|
-
* apps are initialized once
|
32
|
-
|
33
|
-
== Rack::Adapter::Camping
|
34
|
-
* works with GET
|
35
|
-
* works with POST
|
36
|
-
|
37
|
-
== Rack::Cascade
|
38
|
-
* should dispatch onward on 404 by default
|
39
|
-
* should dispatch onward on whatever is passed
|
40
|
-
* should return 404 if empty
|
41
|
-
* should append new app
|
42
|
-
|
43
|
-
== Rack::Handler::CGI
|
44
|
-
* startup (empty)
|
45
|
-
* should respond
|
46
|
-
* should be a lighttpd
|
47
|
-
* should have rack headers
|
48
|
-
* should have CGI headers on GET
|
49
|
-
* should have CGI headers on POST
|
50
|
-
* should support HTTP auth
|
51
|
-
* should set status
|
52
|
-
* shutdown
|
53
|
-
|
54
|
-
== Rack::Chunked
|
55
|
-
* chunks responses with no Content-Length
|
56
|
-
* chunks empty bodies properly
|
57
|
-
* does not modify response when Content-Length header present
|
58
|
-
* does not modify response when client is HTTP/1.0
|
59
|
-
* does not modify response when Transfer-Encoding header already present
|
60
|
-
* does not modify response when status code is 100
|
61
|
-
* does not modify response when status code is 204
|
62
|
-
* does not modify response when status code is 304
|
63
|
-
|
64
|
-
== Rack::CommonLogger
|
65
|
-
* should log to rack.errors by default
|
66
|
-
* should log to anything with +write+
|
67
|
-
* should log - content length if header is missing
|
68
|
-
* should log - content length if header is zero
|
69
|
-
|
70
|
-
== Rack::ConditionalGet
|
71
|
-
* should set a 304 status and truncate body when If-Modified-Since hits
|
72
|
-
* should set a 304 status and truncate body when If-None-Match hits
|
73
|
-
* should not affect non-GET/HEAD requests
|
74
|
-
|
75
|
-
== Rack::Config
|
76
|
-
* should accept a block that modifies the environment
|
77
|
-
|
78
|
-
== Rack::ContentLength
|
79
|
-
* sets Content-Length on String bodies if none is set
|
80
|
-
* sets Content-Length on Array bodies if none is set
|
81
|
-
* does not set Content-Length on variable length bodies
|
82
|
-
* does not change Content-Length if it is already set
|
83
|
-
* does not set Content-Length on 304 responses
|
84
|
-
* does not set Content-Length when Transfer-Encoding is chunked
|
85
|
-
|
86
|
-
== Rack::ContentType
|
87
|
-
* sets Content-Type to default text/html if none is set
|
88
|
-
* sets Content-Type to chosen default if none is set
|
89
|
-
* does not change Content-Type if it is already set
|
90
|
-
* case insensitive detection of Content-Type
|
91
|
-
|
92
|
-
== Rack::Deflater
|
93
|
-
* should be able to deflate bodies that respond to each
|
94
|
-
* should be able to deflate String bodies
|
95
|
-
* should be able to gzip bodies that respond to each
|
96
|
-
* should be able to fallback to no deflation
|
97
|
-
* should be able to skip when there is no response entity body
|
98
|
-
* should handle the lack of an acceptable encoding
|
99
|
-
* should handle gzip response with Last-Modified header
|
100
|
-
* should do nothing when no-transform Cache-Control directive present
|
101
|
-
|
102
|
-
== Rack::Directory
|
103
|
-
* serves directory indices
|
104
|
-
* passes to app if file found
|
105
|
-
* serves uri with URL encoded filenames
|
106
|
-
* does not allow directory traversal
|
107
|
-
* 404s if it can't find the file
|
108
|
-
|
109
|
-
== Rack::ETag
|
110
|
-
* sets ETag if none is set
|
111
|
-
* does not change ETag if it is already set
|
112
|
-
|
113
|
-
== Rack::Handler::FastCGI
|
114
|
-
* startup (empty)
|
115
|
-
* should respond
|
116
|
-
* should be a lighttpd
|
117
|
-
* should have rack headers
|
118
|
-
* should have CGI headers on GET
|
119
|
-
* should have CGI headers on POST
|
120
|
-
* should support HTTP auth
|
121
|
-
* should set status
|
122
|
-
* shutdown
|
123
|
-
|
124
|
-
== Rack::File
|
125
|
-
* serves files
|
126
|
-
* sets Last-Modified header
|
127
|
-
* serves files with URL encoded filenames
|
128
|
-
* does not allow directory traversal
|
129
|
-
* does not allow directory traversal with encoded periods
|
130
|
-
* 404s if it can't find the file
|
131
|
-
* detects SystemCallErrors
|
132
|
-
* returns bodies that respond to #to_path
|
133
|
-
|
134
|
-
== Rack::Handler
|
135
|
-
* has registered default handlers
|
136
|
-
* handler that doesn't exist should raise a NameError
|
137
|
-
* should get unregistered, but already required, handler by name
|
138
|
-
* should register custom handler
|
139
|
-
* should not need registration for properly coded handlers even if not already required
|
140
|
-
|
141
|
-
== Rack::Head
|
142
|
-
* response (empty)
|
143
|
-
* passes GET, POST, PUT, DELETE, OPTIONS, TRACE requests
|
144
|
-
* removes body from HEAD requests
|
145
|
-
|
146
|
-
== Rack::Lint
|
147
|
-
* passes valid request
|
148
|
-
* notices fatal errors
|
149
|
-
* notices environment errors
|
150
|
-
* notices input errors
|
151
|
-
* notices error errors
|
152
|
-
* notices status errors
|
153
|
-
* notices header errors
|
154
|
-
* notices content-type errors
|
155
|
-
* notices content-length errors
|
156
|
-
* notices body errors
|
157
|
-
* notices input handling errors
|
158
|
-
* notices error handling errors
|
159
|
-
* notices HEAD errors
|
160
|
-
* passes valid read calls
|
161
|
-
|
162
|
-
== Rack::Lint::InputWrapper
|
163
|
-
* delegates :size to underlying IO object
|
164
|
-
* delegates :rewind to underlying IO object
|
165
|
-
|
166
|
-
== Rack::Lobster::LambdaLobster
|
167
|
-
* should be a single lambda
|
168
|
-
* should look like a lobster
|
169
|
-
* should be flippable
|
170
|
-
|
171
|
-
== Rack::Lobster
|
172
|
-
* should look like a lobster
|
173
|
-
* should be flippable
|
174
|
-
* should provide crashing for testing purposes
|
175
|
-
|
176
|
-
== Rack::Lock
|
177
|
-
* should call synchronize on lock
|
178
|
-
* should set multithread flag to false
|
179
|
-
* should reset original multithread flag when exiting lock
|
180
|
-
|
181
|
-
== Rack::Logger
|
182
|
-
* logs to rack.errors
|
183
|
-
|
184
|
-
== Rack::MethodOverride
|
185
|
-
* should not affect GET requests
|
186
|
-
* _method parameter should modify REQUEST_METHOD for POST requests
|
187
|
-
* X-HTTP-Method-Override header should modify REQUEST_METHOD for POST requests
|
188
|
-
* should not modify REQUEST_METHOD if the method is unknown
|
189
|
-
* should not modify REQUEST_METHOD when _method is nil
|
190
|
-
* should store the original REQUEST_METHOD prior to overriding
|
191
|
-
|
192
|
-
== Rack::MockRequest
|
193
|
-
* should return a MockResponse
|
194
|
-
* should be able to only return the environment
|
195
|
-
* should provide sensible defaults
|
196
|
-
* should allow GET/POST/PUT/DELETE
|
197
|
-
* should set content length
|
198
|
-
* should allow posting
|
199
|
-
* should use all parts of an URL
|
200
|
-
* should set SSL port and HTTP flag on when using https
|
201
|
-
* should prepend slash to uri path
|
202
|
-
* should properly convert method name to an uppercase string
|
203
|
-
* should accept params and build query string for GET requests
|
204
|
-
* should accept raw input in params for GET requests
|
205
|
-
* should accept params and build url encoded params for POST requests
|
206
|
-
* should accept raw input in params for POST requests
|
207
|
-
* should accept params and build multipart encoded params for POST requests
|
208
|
-
* should behave valid according to the Rack spec
|
209
|
-
|
210
|
-
== Rack::MockResponse
|
211
|
-
* should provide access to the HTTP status
|
212
|
-
* should provide access to the HTTP headers
|
213
|
-
* should provide access to the HTTP body
|
214
|
-
* should provide access to the Rack errors
|
215
|
-
* should optionally make Rack errors fatal
|
216
|
-
|
217
|
-
== Rack::Handler::Mongrel
|
218
|
-
* should respond
|
219
|
-
* should be a Mongrel
|
220
|
-
* should have rack headers
|
221
|
-
* should have CGI headers on GET
|
222
|
-
* should have CGI headers on POST
|
223
|
-
* should support HTTP auth
|
224
|
-
* should set status
|
225
|
-
* should provide a .run
|
226
|
-
* should provide a .run that maps a hash
|
227
|
-
* should provide a .run that maps a urlmap
|
228
|
-
* should provide a .run that maps a urlmap restricting by host
|
229
|
-
* should stream #each part of the response
|
230
|
-
|
231
|
-
== Rack::NullLogger
|
232
|
-
* acks as a nop logger (empty)
|
233
|
-
|
234
|
-
== Rack::Recursive
|
235
|
-
* should allow for subrequests
|
236
|
-
* should raise error on requests not below the app
|
237
|
-
* should support forwarding
|
238
|
-
|
239
|
-
== Rack::Request
|
240
|
-
* wraps the rack variables
|
241
|
-
* can figure out the correct host
|
242
|
-
* can parse the query string
|
243
|
-
* raises if rack.input is missing
|
244
|
-
* can parse POST data when method is POST and no Content-Type given
|
245
|
-
* can parse POST data with explicit content type regardless of method
|
246
|
-
* does not parse POST data when media type is not form-data
|
247
|
-
* can parse POST data on PUT when media type is form-data
|
248
|
-
* rewinds input after parsing POST data
|
249
|
-
* cleans up Safari's ajax POST body
|
250
|
-
* can get value by key from params with #[]
|
251
|
-
* can set value to key on params with #[]=
|
252
|
-
* values_at answers values by keys in order given
|
253
|
-
* referrer should be extracted correct
|
254
|
-
* user agent should be extracted correct
|
255
|
-
* can cache, but invalidates the cache
|
256
|
-
* can figure out if called via XHR
|
257
|
-
* can parse cookies
|
258
|
-
* parses cookies according to RFC 2109
|
259
|
-
* provides setters
|
260
|
-
* provides the original env
|
261
|
-
* can restore the URL
|
262
|
-
* can restore the full path
|
263
|
-
* can handle multiple media type parameters
|
264
|
-
* can parse multipart form data
|
265
|
-
* can parse big multipart form data
|
266
|
-
* can detect invalid multipart form data
|
267
|
-
* shouldn't try to interpret binary as utf8
|
268
|
-
* should work around buggy 1.8.* Tempfile equality
|
269
|
-
* does conform to the Rack spec
|
270
|
-
* should parse Accept-Encoding correctly
|
271
|
-
* should provide ip information
|
272
|
-
* should allow subclass request to be instantiated after parent request
|
273
|
-
* should allow parent request to be instantiated after subclass request
|
274
|
-
|
275
|
-
== Rack::Response
|
276
|
-
* has sensible default values
|
277
|
-
* can be written to
|
278
|
-
* can set and read headers
|
279
|
-
* can set cookies
|
280
|
-
* formats the Cookie expiration date accordingly to RFC 2109
|
281
|
-
* can set secure cookies
|
282
|
-
* can set http only cookies
|
283
|
-
* can delete cookies
|
284
|
-
* can do redirects
|
285
|
-
* has a useful constructor
|
286
|
-
* has a constructor that can take a block
|
287
|
-
* doesn't return invalid responses
|
288
|
-
* knows if it's empty
|
289
|
-
* should provide access to the HTTP status
|
290
|
-
* should provide access to the HTTP headers
|
291
|
-
* does not add or change Content-Length when #finish()ing
|
292
|
-
* updates Content-Length when body appended to using #write
|
293
|
-
|
294
|
-
== Rack::RewindableInput
|
295
|
-
=== given an IO object that is already rewindable
|
296
|
-
* should be able to handle to read()
|
297
|
-
* should be able to handle to read(nil)
|
298
|
-
* should be able to handle to read(length)
|
299
|
-
* should be able to handle to read(length, buffer)
|
300
|
-
* should be able to handle to read(nil, buffer)
|
301
|
-
* should rewind to the beginning when #rewind is called
|
302
|
-
* should be able to handle gets
|
303
|
-
* should be able to handle each
|
304
|
-
* should not buffer into a Tempfile if no data has been read yet
|
305
|
-
* should buffer into a Tempfile when data has been consumed for the first time
|
306
|
-
* should close the underlying tempfile upon calling #close
|
307
|
-
* should be possibel to call #close when no data has been buffered yet (empty)
|
308
|
-
* should be possible to call #close multiple times (empty)
|
309
|
-
=== given an IO object that is not rewindable
|
310
|
-
* should be able to handle to read()
|
311
|
-
* should be able to handle to read(nil)
|
312
|
-
* should be able to handle to read(length)
|
313
|
-
* should be able to handle to read(length, buffer)
|
314
|
-
* should be able to handle to read(nil, buffer)
|
315
|
-
* should rewind to the beginning when #rewind is called
|
316
|
-
* should be able to handle gets
|
317
|
-
* should be able to handle each
|
318
|
-
* should not buffer into a Tempfile if no data has been read yet
|
319
|
-
* should buffer into a Tempfile when data has been consumed for the first time
|
320
|
-
* should close the underlying tempfile upon calling #close
|
321
|
-
* should be possibel to call #close when no data has been buffered yet (empty)
|
322
|
-
* should be possible to call #close multiple times (empty)
|
323
|
-
=== given an IO object whose rewind method raises Errno::ESPIPE
|
324
|
-
* should be able to handle to read()
|
325
|
-
* should be able to handle to read(nil)
|
326
|
-
* should be able to handle to read(length)
|
327
|
-
* should be able to handle to read(length, buffer)
|
328
|
-
* should be able to handle to read(nil, buffer)
|
329
|
-
* should rewind to the beginning when #rewind is called
|
330
|
-
* should be able to handle gets
|
331
|
-
* should be able to handle each
|
332
|
-
* should not buffer into a Tempfile if no data has been read yet
|
333
|
-
* should buffer into a Tempfile when data has been consumed for the first time
|
334
|
-
* should close the underlying tempfile upon calling #close
|
335
|
-
* should be possibel to call #close when no data has been buffered yet (empty)
|
336
|
-
* should be possible to call #close multiple times (empty)
|
337
|
-
|
338
|
-
== Rack::Runtime
|
339
|
-
* sets X-Runtime is none is set
|
340
|
-
* does not set the X-Runtime if it is already set
|
341
|
-
* should allow a suffix to be set
|
342
|
-
* should allow multiple timers to be set
|
343
|
-
|
344
|
-
== Rack::Sendfile
|
345
|
-
* does nothing when no X-Sendfile-Type header present
|
346
|
-
* sets X-Sendfile response header and discards body
|
347
|
-
* sets X-Lighttpd-Send-File response header and discards body
|
348
|
-
* sets X-Accel-Redirect response header and discards body
|
349
|
-
* writes to rack.error when no X-Accel-Mapping is specified
|
350
|
-
* does nothing when body does not respond to #to_path
|
351
|
-
|
352
|
-
== Rack::Session::Cookie
|
353
|
-
* creates a new cookie
|
354
|
-
* loads from a cookie
|
355
|
-
* survives broken cookies
|
356
|
-
* barks on too big cookies
|
357
|
-
* loads from a cookie wih integrity hash
|
358
|
-
* ignores tampered with session cookies
|
359
|
-
|
360
|
-
== Rack::Session::Memcache
|
361
|
-
* faults on no connection
|
362
|
-
* connect to existing server (empty)
|
363
|
-
* creates a new cookie
|
364
|
-
* determines session from a cookie
|
365
|
-
* survives nonexistant cookies
|
366
|
-
* maintains freshness
|
367
|
-
* deletes cookies with :drop option
|
368
|
-
* provides new session id with :renew option
|
369
|
-
* omits cookie with :defer option
|
370
|
-
* deep hashes are correctly updated
|
371
|
-
* multithread: should cleanly merge sessions (empty)
|
372
|
-
|
373
|
-
== Rack::Session::Pool
|
374
|
-
* creates a new cookie
|
375
|
-
* determines session from a cookie
|
376
|
-
* survives nonexistant cookies
|
377
|
-
* deletes cookies with :drop option
|
378
|
-
* provides new session id with :renew option
|
379
|
-
* omits cookie with :defer option
|
380
|
-
* multithread: should merge sessions (empty)
|
381
|
-
|
382
|
-
== Rack::ShowExceptions
|
383
|
-
* catches exceptions
|
384
|
-
|
385
|
-
== Rack::ShowStatus
|
386
|
-
* should provide a default status message
|
387
|
-
* should let the app provide additional information
|
388
|
-
* should not replace existing messages
|
389
|
-
* should pass on original headers
|
390
|
-
* should replace existing messages if there is detail
|
391
|
-
|
392
|
-
== Rack::Static
|
393
|
-
* serves files
|
394
|
-
* 404s if url root is known but it can't find the file
|
395
|
-
* calls down the chain if url root is not known
|
396
|
-
|
397
|
-
== Rack::Handler::Thin
|
398
|
-
* should respond
|
399
|
-
* should be a Thin
|
400
|
-
* should have rack headers
|
401
|
-
* should have CGI headers on GET
|
402
|
-
* should have CGI headers on POST
|
403
|
-
* should support HTTP auth
|
404
|
-
* should set status
|
405
|
-
|
406
|
-
== Rack::URLMap
|
407
|
-
* dispatches paths correctly
|
408
|
-
* dispatches hosts correctly
|
409
|
-
* should be nestable
|
410
|
-
* should route root apps correctly
|
411
|
-
* should not squeeze slashes
|
412
|
-
|
413
|
-
== Rack::Utils
|
414
|
-
* should escape correctly
|
415
|
-
* should escape correctly for multibyte characters
|
416
|
-
* should unescape correctly
|
417
|
-
* should parse query strings correctly
|
418
|
-
* should parse nested query strings correctly
|
419
|
-
* should build query strings correctly
|
420
|
-
* should build nested query strings correctly
|
421
|
-
* should figure out which encodings are acceptable
|
422
|
-
* should return the bytesize of String
|
423
|
-
* should return status code for integer
|
424
|
-
* should return status code for string
|
425
|
-
* should return status code for symbol
|
426
|
-
|
427
|
-
== Rack::Utils::HeaderHash
|
428
|
-
* should retain header case
|
429
|
-
* should check existence of keys case insensitively
|
430
|
-
* should merge case-insensitively
|
431
|
-
* should overwrite case insensitively and assume the new key's case
|
432
|
-
* should be converted to real Hash
|
433
|
-
* should convert Array values to Strings when converting to Hash
|
434
|
-
* should replace hashes correctly
|
435
|
-
* should be able to delete the given key case-sensitively
|
436
|
-
* should be able to delete the given key case-insensitively
|
437
|
-
* should return the deleted value when #delete is called on an existing key
|
438
|
-
* should return nil when #delete is called on a non-existant key
|
439
|
-
* should avoid unnecessary object creation if possible
|
440
|
-
* should convert Array values to Strings when responding to #each
|
441
|
-
|
442
|
-
== Rack::Utils::Context
|
443
|
-
* should set context correctly
|
444
|
-
* should alter app on recontexting
|
445
|
-
* should run different apps
|
446
|
-
|
447
|
-
== Rack::Utils::Multipart
|
448
|
-
* should return nil if content type is not multipart
|
449
|
-
* should parse multipart upload with text file
|
450
|
-
* should parse multipart upload with nested parameters
|
451
|
-
* should parse multipart upload with binary file
|
452
|
-
* should parse multipart upload with empty file
|
453
|
-
* should parse multipart upload with filename with semicolons
|
454
|
-
* should not include file params if no file was selected
|
455
|
-
* should parse IE multipart upload and clean up filename
|
456
|
-
* rewinds input after parsing upload
|
457
|
-
* builds multipart body
|
458
|
-
* builds nested multipart body
|
459
|
-
* can parse fields that end at the end of the buffer
|
460
|
-
* builds complete params with the chunk size of 16384 slicing exactly on boundary
|
461
|
-
* should return nil if no UploadedFiles were used
|
462
|
-
* should raise ArgumentError if params is not a Hash
|
463
|
-
|
464
|
-
== Rack::Handler::WEBrick
|
465
|
-
* should respond
|
466
|
-
* should be a WEBrick
|
467
|
-
* should have rack headers
|
468
|
-
* should have CGI headers on GET
|
469
|
-
* should have CGI headers on POST
|
470
|
-
* should support HTTP auth
|
471
|
-
* should set status
|
472
|
-
* should correctly set cookies
|
473
|
-
* should provide a .run
|
474
|
-
|
475
|
-
== rackup
|
476
|
-
* rackup
|
477
|
-
* rackup --help
|
478
|
-
* rackup --port
|
479
|
-
* rackup --debug
|
480
|
-
* rackup --eval
|
481
|
-
* rackup --warn
|
482
|
-
* rackup --include
|
483
|
-
* rackup --require
|
484
|
-
* rackup --server
|
485
|
-
* rackup --host
|
486
|
-
* rackup --daemonize --pid
|
487
|
-
* rackup --pid
|
488
|
-
* rackup --version
|
489
|
-
* rackup --env development includes lint
|
490
|
-
* rackup --env deployment does not include lint
|
491
|
-
* rackup --env none does not include lint
|
492
|
-
* rackup --env deployment does log
|
493
|
-
* rackup --env none does not log
|
494
|
-
|
495
|
-
390 specifications, 13 empty (1340 requirements), 0 failures
|
data/README
CHANGED
@@ -313,6 +313,10 @@ run on port 11211) and memcache-client installed.
|
|
313
313
|
* Enforce binary encoding in RewindableInput
|
314
314
|
* Set correct external_encoding for handlers that don't use RewindableInput
|
315
315
|
|
316
|
+
* March 13th, 2011: Twelfth public release 1.2.2/1.1.2.
|
317
|
+
* Security fix in Rack::Auth::Digest::MD5: when authenticator
|
318
|
+
returned nil, permission was granted on empty password.
|
319
|
+
|
316
320
|
== Contact
|
317
321
|
|
318
322
|
Please post bugs, suggestions and patches to
|
data/lib/rack.rb
CHANGED
data/lib/rack/auth/digest/md5.rb
CHANGED
@@ -151,6 +151,12 @@ context 'Rack::Auth::Digest::MD5' do
|
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
|
+
specify 'rechallenge if incorrect user and blank password given' do
|
155
|
+
request_with_digest_auth 'GET', '/', 'Bob', '' do |response|
|
156
|
+
assert_digest_auth_challenge response
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
154
160
|
specify 'should rechallenge with stale parameter if nonce is stale' do
|
155
161
|
begin
|
156
162
|
Rack::Auth::Digest::Nonce.time_limit = 1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 2
|
10
|
+
version: 1.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Christian Neukirchen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-13 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -125,65 +125,65 @@ extra_rdoc_files:
|
|
125
125
|
files:
|
126
126
|
- bin/rackup
|
127
127
|
- contrib/rack_logo.svg
|
128
|
+
- example/protectedlobster.ru
|
128
129
|
- example/lobster.ru
|
129
130
|
- example/protectedlobster.rb
|
130
|
-
-
|
131
|
-
- lib/rack/
|
132
|
-
- lib/rack/
|
133
|
-
- lib/rack/
|
134
|
-
- lib/rack/
|
135
|
-
- lib/rack/auth/digest/md5.rb
|
136
|
-
- lib/rack/auth/digest/nonce.rb
|
137
|
-
- lib/rack/auth/digest/params.rb
|
138
|
-
- lib/rack/auth/digest/request.rb
|
139
|
-
- lib/rack/builder.rb
|
140
|
-
- lib/rack/cascade.rb
|
141
|
-
- lib/rack/chunked.rb
|
142
|
-
- lib/rack/commonlogger.rb
|
131
|
+
- lib/rack/session/cookie.rb
|
132
|
+
- lib/rack/session/pool.rb
|
133
|
+
- lib/rack/session/memcache.rb
|
134
|
+
- lib/rack/session/abstract/id.rb
|
135
|
+
- lib/rack/response.rb
|
143
136
|
- lib/rack/conditionalget.rb
|
144
|
-
- lib/rack/
|
145
|
-
- lib/rack/
|
146
|
-
- lib/rack/
|
147
|
-
- lib/rack/
|
148
|
-
- lib/rack/
|
149
|
-
- lib/rack/
|
150
|
-
- lib/rack/
|
151
|
-
- lib/rack/handler/
|
152
|
-
- lib/rack/handler/
|
153
|
-
- lib/rack/handler/fastcgi.rb
|
154
|
-
- lib/rack/handler/lsws.rb
|
155
|
-
- lib/rack/handler/mongrel.rb
|
137
|
+
- lib/rack/showstatus.rb
|
138
|
+
- lib/rack/rewindable_input.rb
|
139
|
+
- lib/rack/sendfile.rb
|
140
|
+
- lib/rack/urlmap.rb
|
141
|
+
- lib/rack/chunked.rb
|
142
|
+
- lib/rack/head.rb
|
143
|
+
- lib/rack/runtime.rb
|
144
|
+
- lib/rack/handler/webrick.rb
|
145
|
+
- lib/rack/handler/thin.rb
|
156
146
|
- lib/rack/handler/scgi.rb
|
147
|
+
- lib/rack/handler/mongrel.rb
|
148
|
+
- lib/rack/handler/evented_mongrel.rb
|
157
149
|
- lib/rack/handler/swiftiplied_mongrel.rb
|
158
|
-
- lib/rack/handler/
|
159
|
-
- lib/rack/handler/
|
150
|
+
- lib/rack/handler/lsws.rb
|
151
|
+
- lib/rack/handler/fastcgi.rb
|
152
|
+
- lib/rack/handler/cgi.rb
|
153
|
+
- lib/rack/lock.rb
|
154
|
+
- lib/rack/builder.rb
|
160
155
|
- lib/rack/handler.rb
|
161
|
-
- lib/rack/
|
162
|
-
- lib/rack/
|
156
|
+
- lib/rack/mock.rb
|
157
|
+
- lib/rack/static.rb
|
158
|
+
- lib/rack/deflater.rb
|
159
|
+
- lib/rack/content_type.rb
|
160
|
+
- lib/rack/server.rb
|
161
|
+
- lib/rack/directory.rb
|
162
|
+
- lib/rack/showexceptions.rb
|
163
|
+
- lib/rack/adapter/camping.rb
|
164
|
+
- lib/rack/file.rb
|
165
|
+
- lib/rack/request.rb
|
163
166
|
- lib/rack/lobster.rb
|
164
|
-
- lib/rack/
|
165
|
-
- lib/rack/
|
167
|
+
- lib/rack/commonlogger.rb
|
168
|
+
- lib/rack/config.rb
|
169
|
+
- lib/rack/utils.rb
|
170
|
+
- lib/rack/etag.rb
|
166
171
|
- lib/rack/methodoverride.rb
|
167
|
-
- lib/rack/
|
168
|
-
- lib/rack/
|
172
|
+
- lib/rack/cascade.rb
|
173
|
+
- lib/rack/logger.rb
|
174
|
+
- lib/rack/auth/digest/request.rb
|
175
|
+
- lib/rack/auth/digest/nonce.rb
|
176
|
+
- lib/rack/auth/digest/params.rb
|
177
|
+
- lib/rack/auth/digest/md5.rb
|
178
|
+
- lib/rack/auth/basic.rb
|
179
|
+
- lib/rack/auth/abstract/handler.rb
|
180
|
+
- lib/rack/auth/abstract/request.rb
|
181
|
+
- lib/rack/content_length.rb
|
169
182
|
- lib/rack/nulllogger.rb
|
183
|
+
- lib/rack/lint.rb
|
170
184
|
- lib/rack/recursive.rb
|
185
|
+
- lib/rack/mime.rb
|
171
186
|
- lib/rack/reloader.rb
|
172
|
-
- lib/rack/request.rb
|
173
|
-
- lib/rack/response.rb
|
174
|
-
- lib/rack/rewindable_input.rb
|
175
|
-
- lib/rack/runtime.rb
|
176
|
-
- lib/rack/sendfile.rb
|
177
|
-
- lib/rack/server.rb
|
178
|
-
- lib/rack/session/abstract/id.rb
|
179
|
-
- lib/rack/session/cookie.rb
|
180
|
-
- lib/rack/session/memcache.rb
|
181
|
-
- lib/rack/session/pool.rb
|
182
|
-
- lib/rack/showexceptions.rb
|
183
|
-
- lib/rack/showstatus.rb
|
184
|
-
- lib/rack/static.rb
|
185
|
-
- lib/rack/urlmap.rb
|
186
|
-
- lib/rack/utils.rb
|
187
187
|
- lib/rack.rb
|
188
188
|
- COPYING
|
189
189
|
- KNOWN-ISSUES
|
@@ -191,50 +191,50 @@ files:
|
|
191
191
|
- RDOX
|
192
192
|
- README
|
193
193
|
- SPEC
|
194
|
-
- test/
|
195
|
-
- test/spec_rack_auth_digest.rb
|
196
|
-
- test/spec_rack_builder.rb
|
197
|
-
- test/spec_rack_camping.rb
|
198
|
-
- test/spec_rack_cascade.rb
|
199
|
-
- test/spec_rack_cgi.rb
|
200
|
-
- test/spec_rack_chunked.rb
|
201
|
-
- test/spec_rack_commonlogger.rb
|
202
|
-
- test/spec_rack_conditionalget.rb
|
203
|
-
- test/spec_rack_config.rb
|
194
|
+
- test/spec_rack_lobster.rb
|
204
195
|
- test/spec_rack_content_length.rb
|
205
|
-
- test/
|
206
|
-
- test/spec_rack_deflater.rb
|
207
|
-
- test/spec_rack_directory.rb
|
196
|
+
- test/spec_rack_runtime.rb
|
208
197
|
- test/spec_rack_etag.rb
|
209
|
-
- test/spec_rack_fastcgi.rb
|
210
|
-
- test/spec_rack_file.rb
|
211
|
-
- test/spec_rack_handler.rb
|
212
|
-
- test/spec_rack_head.rb
|
213
198
|
- test/spec_rack_lint.rb
|
214
|
-
- test/
|
215
|
-
- test/spec_rack_lock.rb
|
216
|
-
- test/spec_rack_logger.rb
|
217
|
-
- test/spec_rack_methodoverride.rb
|
218
|
-
- test/spec_rack_mock.rb
|
219
|
-
- test/spec_rack_mongrel.rb
|
220
|
-
- test/spec_rack_nulllogger.rb
|
221
|
-
- test/spec_rack_recursive.rb
|
222
|
-
- test/spec_rack_request.rb
|
223
|
-
- test/spec_rack_response.rb
|
199
|
+
- test/spec_rack_builder.rb
|
224
200
|
- test/spec_rack_rewindable_input.rb
|
225
|
-
- test/spec_rack_runtime.rb
|
226
|
-
- test/spec_rack_sendfile.rb
|
227
|
-
- test/spec_rack_session_cookie.rb
|
228
|
-
- test/spec_rack_session_memcache.rb
|
229
|
-
- test/spec_rack_session_pool.rb
|
230
201
|
- test/spec_rack_showexceptions.rb
|
202
|
+
- test/spec_rack_session_cookie.rb
|
203
|
+
- test/spec_rack_conditionalget.rb
|
204
|
+
- test/spec_rack_mock.rb
|
231
205
|
- test/spec_rack_showstatus.rb
|
232
|
-
- test/
|
206
|
+
- test/spec_rack_logger.rb
|
207
|
+
- test/spec_rack_request.rb
|
208
|
+
- test/spec_rack_auth_basic.rb
|
209
|
+
- test/spec_rack_directory.rb
|
210
|
+
- test/spec_rack_utils.rb
|
211
|
+
- test/spec_rack_recursive.rb
|
212
|
+
- test/spec_rackup.rb
|
233
213
|
- test/spec_rack_thin.rb
|
214
|
+
- test/spec_rack_session_memcache.rb
|
215
|
+
- test/spec_rack_commonlogger.rb
|
216
|
+
- test/spec_rack_static.rb
|
217
|
+
- test/spec_rack_config.rb
|
218
|
+
- test/spec_rack_cascade.rb
|
219
|
+
- test/spec_rack_auth_digest.rb
|
220
|
+
- test/spec_rack_chunked.rb
|
221
|
+
- test/spec_rack_mongrel.rb
|
222
|
+
- test/spec_rack_cgi.rb
|
223
|
+
- test/spec_rack_head.rb
|
234
224
|
- test/spec_rack_urlmap.rb
|
235
|
-
- test/
|
225
|
+
- test/spec_rack_methodoverride.rb
|
226
|
+
- test/spec_rack_lock.rb
|
227
|
+
- test/spec_rack_file.rb
|
228
|
+
- test/spec_rack_response.rb
|
229
|
+
- test/spec_rack_nulllogger.rb
|
230
|
+
- test/spec_rack_handler.rb
|
231
|
+
- test/spec_rack_sendfile.rb
|
236
232
|
- test/spec_rack_webrick.rb
|
237
|
-
- test/
|
233
|
+
- test/spec_rack_camping.rb
|
234
|
+
- test/spec_rack_content_type.rb
|
235
|
+
- test/spec_rack_deflater.rb
|
236
|
+
- test/spec_rack_fastcgi.rb
|
237
|
+
- test/spec_rack_session_pool.rb
|
238
238
|
has_rdoc: true
|
239
239
|
homepage: http://rack.rubyforge.org
|
240
240
|
licenses: []
|
@@ -265,52 +265,52 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
requirements: []
|
266
266
|
|
267
267
|
rubyforge_project: rack
|
268
|
-
rubygems_version: 1.
|
268
|
+
rubygems_version: 1.3.7
|
269
269
|
signing_key:
|
270
270
|
specification_version: 3
|
271
271
|
summary: a modular Ruby webserver interface
|
272
272
|
test_files:
|
273
|
-
- test/
|
274
|
-
- test/spec_rack_auth_digest.rb
|
275
|
-
- test/spec_rack_builder.rb
|
276
|
-
- test/spec_rack_camping.rb
|
277
|
-
- test/spec_rack_cascade.rb
|
278
|
-
- test/spec_rack_cgi.rb
|
279
|
-
- test/spec_rack_chunked.rb
|
280
|
-
- test/spec_rack_commonlogger.rb
|
281
|
-
- test/spec_rack_conditionalget.rb
|
282
|
-
- test/spec_rack_config.rb
|
273
|
+
- test/spec_rack_lobster.rb
|
283
274
|
- test/spec_rack_content_length.rb
|
284
|
-
- test/
|
285
|
-
- test/spec_rack_deflater.rb
|
286
|
-
- test/spec_rack_directory.rb
|
275
|
+
- test/spec_rack_runtime.rb
|
287
276
|
- test/spec_rack_etag.rb
|
288
|
-
- test/spec_rack_fastcgi.rb
|
289
|
-
- test/spec_rack_file.rb
|
290
|
-
- test/spec_rack_handler.rb
|
291
|
-
- test/spec_rack_head.rb
|
292
277
|
- test/spec_rack_lint.rb
|
293
|
-
- test/
|
294
|
-
- test/spec_rack_lock.rb
|
295
|
-
- test/spec_rack_logger.rb
|
296
|
-
- test/spec_rack_methodoverride.rb
|
297
|
-
- test/spec_rack_mock.rb
|
298
|
-
- test/spec_rack_mongrel.rb
|
299
|
-
- test/spec_rack_nulllogger.rb
|
300
|
-
- test/spec_rack_recursive.rb
|
301
|
-
- test/spec_rack_request.rb
|
302
|
-
- test/spec_rack_response.rb
|
278
|
+
- test/spec_rack_builder.rb
|
303
279
|
- test/spec_rack_rewindable_input.rb
|
304
|
-
- test/spec_rack_runtime.rb
|
305
|
-
- test/spec_rack_sendfile.rb
|
306
|
-
- test/spec_rack_session_cookie.rb
|
307
|
-
- test/spec_rack_session_memcache.rb
|
308
|
-
- test/spec_rack_session_pool.rb
|
309
280
|
- test/spec_rack_showexceptions.rb
|
281
|
+
- test/spec_rack_session_cookie.rb
|
282
|
+
- test/spec_rack_conditionalget.rb
|
283
|
+
- test/spec_rack_mock.rb
|
310
284
|
- test/spec_rack_showstatus.rb
|
311
|
-
- test/
|
285
|
+
- test/spec_rack_logger.rb
|
286
|
+
- test/spec_rack_request.rb
|
287
|
+
- test/spec_rack_auth_basic.rb
|
288
|
+
- test/spec_rack_directory.rb
|
289
|
+
- test/spec_rack_utils.rb
|
290
|
+
- test/spec_rack_recursive.rb
|
291
|
+
- test/spec_rackup.rb
|
312
292
|
- test/spec_rack_thin.rb
|
293
|
+
- test/spec_rack_session_memcache.rb
|
294
|
+
- test/spec_rack_commonlogger.rb
|
295
|
+
- test/spec_rack_static.rb
|
296
|
+
- test/spec_rack_config.rb
|
297
|
+
- test/spec_rack_cascade.rb
|
298
|
+
- test/spec_rack_auth_digest.rb
|
299
|
+
- test/spec_rack_chunked.rb
|
300
|
+
- test/spec_rack_mongrel.rb
|
301
|
+
- test/spec_rack_cgi.rb
|
302
|
+
- test/spec_rack_head.rb
|
313
303
|
- test/spec_rack_urlmap.rb
|
314
|
-
- test/
|
304
|
+
- test/spec_rack_methodoverride.rb
|
305
|
+
- test/spec_rack_lock.rb
|
306
|
+
- test/spec_rack_file.rb
|
307
|
+
- test/spec_rack_response.rb
|
308
|
+
- test/spec_rack_nulllogger.rb
|
309
|
+
- test/spec_rack_handler.rb
|
310
|
+
- test/spec_rack_sendfile.rb
|
315
311
|
- test/spec_rack_webrick.rb
|
316
|
-
- test/
|
312
|
+
- test/spec_rack_camping.rb
|
313
|
+
- test/spec_rack_content_type.rb
|
314
|
+
- test/spec_rack_deflater.rb
|
315
|
+
- test/spec_rack_fastcgi.rb
|
316
|
+
- test/spec_rack_session_pool.rb
|