rack-client 0.3.1.pre.c → 0.3.1.pre.d
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/client/adapter/base.rb +0 -1
- data/lib/rack/client/adapter/simple.rb +13 -4
- data/lib/rack/client/version.rb +1 -1
- metadata +80 -108
- data/spec/core/headers_spec.rb +0 -47
- data/spec/core/headers_spec.rbc +0 -1674
- data/spec/core/response_spec.rb +0 -78
- data/spec/core/response_spec.rbc +0 -2244
- data/spec/handler/em_http_spec.rb +0 -7
- data/spec/handler/em_http_spec.rbc +0 -224
- data/spec/handler/excon_spec.rb +0 -7
- data/spec/handler/excon_spec.rbc +0 -224
- data/spec/handler/net_http_spec.rb +0 -11
- data/spec/handler/net_http_spec.rbc +0 -307
- data/spec/handler/typhoeus_spec.rb +0 -11
- data/spec/handler/typhoeus_spec.rbc +0 -307
- data/spec/helpers/async_helper.rb +0 -31
- data/spec/helpers/async_helper.rbc +0 -843
- data/spec/helpers/em_http_helper.rb +0 -24
- data/spec/helpers/em_http_helper.rbc +0 -663
- data/spec/helpers/excon_helper.rb +0 -13
- data/spec/helpers/excon_helper.rbc +0 -461
- data/spec/helpers/handler_helper.rb +0 -68
- data/spec/helpers/handler_helper.rbc +0 -1769
- data/spec/helpers/net_http_helper.rb +0 -26
- data/spec/helpers/net_http_helper.rbc +0 -806
- data/spec/helpers/sync_helper.rb +0 -9
- data/spec/helpers/sync_helper.rbc +0 -311
- data/spec/helpers/typhoeus_helper.rb +0 -32
- data/spec/helpers/typhoeus_helper.rbc +0 -936
- data/spec/middleware/cache_spec.rb +0 -25
- data/spec/middleware/cache_spec.rbc +0 -712
- data/spec/middleware/cookie_jar_spec.rb +0 -19
- data/spec/middleware/cookie_jar_spec.rbc +0 -614
- data/spec/middleware/etag_spec.rb +0 -10
- data/spec/middleware/etag_spec.rbc +0 -438
- data/spec/middleware/follow_redirects_spec.rb +0 -12
- data/spec/middleware/follow_redirects_spec.rbc +0 -402
- data/spec/middleware/lint_spec.rb +0 -10
- data/spec/middleware/lint_spec.rbc +0 -392
- data/spec/shared/handler_api.rb +0 -33
- data/spec/shared/handler_api.rbc +0 -1340
- data/spec/shared/streamed_response_api.rb +0 -14
- data/spec/shared/streamed_response_api.rbc +0 -508
- data/spec/spec_apps/cache.ru +0 -14
- data/spec/spec_apps/cookie.ru +0 -12
- data/spec/spec_apps/delete.ru +0 -10
- data/spec/spec_apps/get.ru +0 -13
- data/spec/spec_apps/head.ru +0 -10
- data/spec/spec_apps/hello_world.ru +0 -1
- data/spec/spec_apps/redirect.ru +0 -13
- data/spec/spec_apps/stream.ru +0 -9
- data/spec/spec_config.ru +0 -10
- data/spec/spec_helper.rb +0 -22
@@ -1,614 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
0
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
26
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
5
|
23
|
-
45
|
24
|
-
2
|
25
|
-
3
|
26
|
-
43
|
27
|
-
4
|
28
|
-
43
|
29
|
-
5
|
30
|
-
56
|
31
|
-
6
|
32
|
-
47
|
33
|
-
50
|
34
|
-
7
|
35
|
-
1
|
36
|
-
15
|
37
|
-
2
|
38
|
-
11
|
39
|
-
I
|
40
|
-
3
|
41
|
-
I
|
42
|
-
0
|
43
|
-
I
|
44
|
-
0
|
45
|
-
I
|
46
|
-
0
|
47
|
-
n
|
48
|
-
p
|
49
|
-
8
|
50
|
-
s
|
51
|
-
11
|
52
|
-
spec_helper
|
53
|
-
x
|
54
|
-
7
|
55
|
-
require
|
56
|
-
x
|
57
|
-
4
|
58
|
-
Rack
|
59
|
-
n
|
60
|
-
x
|
61
|
-
6
|
62
|
-
Client
|
63
|
-
x
|
64
|
-
9
|
65
|
-
CookieJar
|
66
|
-
M
|
67
|
-
1
|
68
|
-
p
|
69
|
-
2
|
70
|
-
x
|
71
|
-
9
|
72
|
-
for_block
|
73
|
-
t
|
74
|
-
n
|
75
|
-
x
|
76
|
-
9
|
77
|
-
__block__
|
78
|
-
i
|
79
|
-
15
|
80
|
-
5
|
81
|
-
45
|
82
|
-
0
|
83
|
-
1
|
84
|
-
43
|
85
|
-
2
|
86
|
-
43
|
87
|
-
3
|
88
|
-
56
|
89
|
-
4
|
90
|
-
47
|
91
|
-
50
|
92
|
-
5
|
93
|
-
1
|
94
|
-
11
|
95
|
-
I
|
96
|
-
4
|
97
|
-
I
|
98
|
-
0
|
99
|
-
I
|
100
|
-
0
|
101
|
-
I
|
102
|
-
0
|
103
|
-
I
|
104
|
-
-2
|
105
|
-
p
|
106
|
-
6
|
107
|
-
x
|
108
|
-
4
|
109
|
-
Rack
|
110
|
-
n
|
111
|
-
x
|
112
|
-
6
|
113
|
-
Client
|
114
|
-
x
|
115
|
-
9
|
116
|
-
CookieJar
|
117
|
-
M
|
118
|
-
1
|
119
|
-
p
|
120
|
-
2
|
121
|
-
x
|
122
|
-
9
|
123
|
-
for_block
|
124
|
-
t
|
125
|
-
n
|
126
|
-
x
|
127
|
-
9
|
128
|
-
__block__
|
129
|
-
i
|
130
|
-
11
|
131
|
-
5
|
132
|
-
7
|
133
|
-
0
|
134
|
-
64
|
135
|
-
56
|
136
|
-
1
|
137
|
-
47
|
138
|
-
50
|
139
|
-
2
|
140
|
-
1
|
141
|
-
11
|
142
|
-
I
|
143
|
-
4
|
144
|
-
I
|
145
|
-
0
|
146
|
-
I
|
147
|
-
0
|
148
|
-
I
|
149
|
-
0
|
150
|
-
I
|
151
|
-
-2
|
152
|
-
p
|
153
|
-
3
|
154
|
-
s
|
155
|
-
39
|
156
|
-
includes the cookie in future responses
|
157
|
-
M
|
158
|
-
1
|
159
|
-
p
|
160
|
-
2
|
161
|
-
x
|
162
|
-
9
|
163
|
-
for_block
|
164
|
-
t
|
165
|
-
n
|
166
|
-
x
|
167
|
-
9
|
168
|
-
__block__
|
169
|
-
i
|
170
|
-
32
|
171
|
-
5
|
172
|
-
56
|
173
|
-
0
|
174
|
-
47
|
175
|
-
50
|
176
|
-
1
|
177
|
-
0
|
178
|
-
15
|
179
|
-
5
|
180
|
-
56
|
181
|
-
2
|
182
|
-
47
|
183
|
-
50
|
184
|
-
3
|
185
|
-
0
|
186
|
-
15
|
187
|
-
5
|
188
|
-
56
|
189
|
-
4
|
190
|
-
47
|
191
|
-
50
|
192
|
-
1
|
193
|
-
0
|
194
|
-
15
|
195
|
-
5
|
196
|
-
56
|
197
|
-
5
|
198
|
-
47
|
199
|
-
50
|
200
|
-
3
|
201
|
-
0
|
202
|
-
11
|
203
|
-
I
|
204
|
-
3
|
205
|
-
I
|
206
|
-
0
|
207
|
-
I
|
208
|
-
0
|
209
|
-
I
|
210
|
-
0
|
211
|
-
I
|
212
|
-
-2
|
213
|
-
p
|
214
|
-
6
|
215
|
-
M
|
216
|
-
1
|
217
|
-
p
|
218
|
-
2
|
219
|
-
x
|
220
|
-
9
|
221
|
-
for_block
|
222
|
-
t
|
223
|
-
n
|
224
|
-
x
|
225
|
-
9
|
226
|
-
__block__
|
227
|
-
i
|
228
|
-
9
|
229
|
-
5
|
230
|
-
7
|
231
|
-
0
|
232
|
-
64
|
233
|
-
47
|
234
|
-
49
|
235
|
-
1
|
236
|
-
1
|
237
|
-
11
|
238
|
-
I
|
239
|
-
3
|
240
|
-
I
|
241
|
-
0
|
242
|
-
I
|
243
|
-
0
|
244
|
-
I
|
245
|
-
0
|
246
|
-
I
|
247
|
-
-2
|
248
|
-
p
|
249
|
-
2
|
250
|
-
s
|
251
|
-
8
|
252
|
-
/cookie/
|
253
|
-
x
|
254
|
-
3
|
255
|
-
get
|
256
|
-
p
|
257
|
-
3
|
258
|
-
I
|
259
|
-
0
|
260
|
-
I
|
261
|
-
6
|
262
|
-
I
|
263
|
-
9
|
264
|
-
x
|
265
|
-
62
|
266
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
267
|
-
p
|
268
|
-
0
|
269
|
-
x
|
270
|
-
7
|
271
|
-
request
|
272
|
-
M
|
273
|
-
1
|
274
|
-
p
|
275
|
-
2
|
276
|
-
x
|
277
|
-
9
|
278
|
-
for_block
|
279
|
-
t
|
280
|
-
n
|
281
|
-
x
|
282
|
-
9
|
283
|
-
__block__
|
284
|
-
i
|
285
|
-
32
|
286
|
-
5
|
287
|
-
48
|
288
|
-
0
|
289
|
-
7
|
290
|
-
1
|
291
|
-
64
|
292
|
-
49
|
293
|
-
2
|
294
|
-
1
|
295
|
-
49
|
296
|
-
3
|
297
|
-
0
|
298
|
-
1
|
299
|
-
83
|
300
|
-
4
|
301
|
-
15
|
302
|
-
5
|
303
|
-
48
|
304
|
-
0
|
305
|
-
7
|
306
|
-
5
|
307
|
-
64
|
308
|
-
49
|
309
|
-
2
|
310
|
-
1
|
311
|
-
49
|
312
|
-
3
|
313
|
-
0
|
314
|
-
1
|
315
|
-
83
|
316
|
-
4
|
317
|
-
11
|
318
|
-
I
|
319
|
-
3
|
320
|
-
I
|
321
|
-
0
|
322
|
-
I
|
323
|
-
0
|
324
|
-
I
|
325
|
-
0
|
326
|
-
I
|
327
|
-
-2
|
328
|
-
p
|
329
|
-
6
|
330
|
-
x
|
331
|
-
7
|
332
|
-
headers
|
333
|
-
s
|
334
|
-
10
|
335
|
-
Set-Cookie
|
336
|
-
x
|
337
|
-
2
|
338
|
-
[]
|
339
|
-
x
|
340
|
-
10
|
341
|
-
should_not
|
342
|
-
x
|
343
|
-
2
|
344
|
-
==
|
345
|
-
s
|
346
|
-
29
|
347
|
-
rack-client-cookiejar.cookies
|
348
|
-
p
|
349
|
-
7
|
350
|
-
I
|
351
|
-
0
|
352
|
-
I
|
353
|
-
7
|
354
|
-
I
|
355
|
-
0
|
356
|
-
I
|
357
|
-
8
|
358
|
-
I
|
359
|
-
10
|
360
|
-
I
|
361
|
-
9
|
362
|
-
I
|
363
|
-
20
|
364
|
-
x
|
365
|
-
62
|
366
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
367
|
-
p
|
368
|
-
0
|
369
|
-
x
|
370
|
-
8
|
371
|
-
response
|
372
|
-
M
|
373
|
-
1
|
374
|
-
p
|
375
|
-
2
|
376
|
-
x
|
377
|
-
9
|
378
|
-
for_block
|
379
|
-
t
|
380
|
-
n
|
381
|
-
x
|
382
|
-
9
|
383
|
-
__block__
|
384
|
-
i
|
385
|
-
9
|
386
|
-
5
|
387
|
-
7
|
388
|
-
0
|
389
|
-
64
|
390
|
-
47
|
391
|
-
49
|
392
|
-
1
|
393
|
-
1
|
394
|
-
11
|
395
|
-
I
|
396
|
-
3
|
397
|
-
I
|
398
|
-
0
|
399
|
-
I
|
400
|
-
0
|
401
|
-
I
|
402
|
-
0
|
403
|
-
I
|
404
|
-
-2
|
405
|
-
p
|
406
|
-
2
|
407
|
-
s
|
408
|
-
8
|
409
|
-
/cookie/
|
410
|
-
x
|
411
|
-
3
|
412
|
-
get
|
413
|
-
p
|
414
|
-
3
|
415
|
-
I
|
416
|
-
0
|
417
|
-
I
|
418
|
-
c
|
419
|
-
I
|
420
|
-
9
|
421
|
-
x
|
422
|
-
62
|
423
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
424
|
-
p
|
425
|
-
0
|
426
|
-
M
|
427
|
-
1
|
428
|
-
p
|
429
|
-
2
|
430
|
-
x
|
431
|
-
9
|
432
|
-
for_block
|
433
|
-
t
|
434
|
-
n
|
435
|
-
x
|
436
|
-
9
|
437
|
-
__block__
|
438
|
-
i
|
439
|
-
32
|
440
|
-
5
|
441
|
-
48
|
442
|
-
0
|
443
|
-
7
|
444
|
-
1
|
445
|
-
64
|
446
|
-
49
|
447
|
-
2
|
448
|
-
1
|
449
|
-
49
|
450
|
-
3
|
451
|
-
0
|
452
|
-
1
|
453
|
-
83
|
454
|
-
4
|
455
|
-
15
|
456
|
-
5
|
457
|
-
48
|
458
|
-
0
|
459
|
-
7
|
460
|
-
5
|
461
|
-
64
|
462
|
-
49
|
463
|
-
2
|
464
|
-
1
|
465
|
-
49
|
466
|
-
6
|
467
|
-
0
|
468
|
-
1
|
469
|
-
83
|
470
|
-
4
|
471
|
-
11
|
472
|
-
I
|
473
|
-
3
|
474
|
-
I
|
475
|
-
0
|
476
|
-
I
|
477
|
-
0
|
478
|
-
I
|
479
|
-
0
|
480
|
-
I
|
481
|
-
-2
|
482
|
-
p
|
483
|
-
7
|
484
|
-
x
|
485
|
-
7
|
486
|
-
headers
|
487
|
-
s
|
488
|
-
10
|
489
|
-
Set-Cookie
|
490
|
-
x
|
491
|
-
2
|
492
|
-
[]
|
493
|
-
x
|
494
|
-
6
|
495
|
-
should
|
496
|
-
x
|
497
|
-
2
|
498
|
-
==
|
499
|
-
s
|
500
|
-
29
|
501
|
-
rack-client-cookiejar.cookies
|
502
|
-
x
|
503
|
-
10
|
504
|
-
should_not
|
505
|
-
p
|
506
|
-
7
|
507
|
-
I
|
508
|
-
0
|
509
|
-
I
|
510
|
-
d
|
511
|
-
I
|
512
|
-
0
|
513
|
-
I
|
514
|
-
e
|
515
|
-
I
|
516
|
-
10
|
517
|
-
I
|
518
|
-
f
|
519
|
-
I
|
520
|
-
20
|
521
|
-
x
|
522
|
-
62
|
523
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
524
|
-
p
|
525
|
-
0
|
526
|
-
p
|
527
|
-
11
|
528
|
-
I
|
529
|
-
0
|
530
|
-
I
|
531
|
-
5
|
532
|
-
I
|
533
|
-
0
|
534
|
-
I
|
535
|
-
6
|
536
|
-
I
|
537
|
-
8
|
538
|
-
I
|
539
|
-
7
|
540
|
-
I
|
541
|
-
10
|
542
|
-
I
|
543
|
-
c
|
544
|
-
I
|
545
|
-
18
|
546
|
-
I
|
547
|
-
d
|
548
|
-
I
|
549
|
-
20
|
550
|
-
x
|
551
|
-
62
|
552
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
553
|
-
p
|
554
|
-
0
|
555
|
-
x
|
556
|
-
2
|
557
|
-
it
|
558
|
-
p
|
559
|
-
5
|
560
|
-
I
|
561
|
-
0
|
562
|
-
I
|
563
|
-
4
|
564
|
-
I
|
565
|
-
0
|
566
|
-
I
|
567
|
-
5
|
568
|
-
I
|
569
|
-
b
|
570
|
-
x
|
571
|
-
62
|
572
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
573
|
-
p
|
574
|
-
0
|
575
|
-
x
|
576
|
-
21
|
577
|
-
sync_handler_contexts
|
578
|
-
p
|
579
|
-
5
|
580
|
-
I
|
581
|
-
0
|
582
|
-
I
|
583
|
-
3
|
584
|
-
I
|
585
|
-
0
|
586
|
-
I
|
587
|
-
4
|
588
|
-
I
|
589
|
-
f
|
590
|
-
x
|
591
|
-
62
|
592
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
593
|
-
p
|
594
|
-
0
|
595
|
-
x
|
596
|
-
8
|
597
|
-
describe
|
598
|
-
p
|
599
|
-
5
|
600
|
-
I
|
601
|
-
0
|
602
|
-
I
|
603
|
-
1
|
604
|
-
I
|
605
|
-
9
|
606
|
-
I
|
607
|
-
3
|
608
|
-
I
|
609
|
-
1a
|
610
|
-
x
|
611
|
-
62
|
612
|
-
/Users/ben/code/rack-client/spec/middleware/cookie_jar_spec.rb
|
613
|
-
p
|
614
|
-
0
|
@@ -1,10 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Rack::ETag do
|
4
|
-
sync_handler_contexts(Rack::ETag) do
|
5
|
-
it 'will work with Rack::ETag right out of the box' do
|
6
|
-
request { get('/hello_world') }
|
7
|
-
response { headers['ETag'].should == %Q{"#{Digest::MD5.hexdigest(body)}"} }
|
8
|
-
end
|
9
|
-
end
|
10
|
-
end
|