rack-client 0.3.0 → 0.3.1.pre.a
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +12 -14
- data/lib/rack/client/adapter/base.rb +23 -14
- data/lib/rack/client/adapter/base.rbc +1802 -0
- data/lib/rack/client/adapter/simple.rb +53 -21
- data/lib/rack/client/adapter/simple.rbc +2063 -0
- data/lib/rack/client/adapter.rbc +225 -0
- data/lib/rack/client/{dual_band.rb → core/dual_band.rb} +0 -0
- data/lib/rack/client/core/dual_band.rbc +380 -0
- data/lib/rack/client/{headers.rb → core/headers.rb} +1 -1
- data/lib/rack/client/core/headers.rbc +1811 -0
- data/lib/rack/client/core/response.rb +50 -0
- data/lib/rack/client/core/response.rbc +1105 -0
- data/lib/rack/client/core.rb +3 -0
- data/lib/rack/client/core.rbc +85 -0
- data/lib/rack/client/handler/em-http.rb +3 -7
- data/lib/rack/client/handler/em-http.rbc +1648 -0
- data/lib/rack/client/handler/excon.rb +6 -14
- data/lib/rack/client/handler/excon.rbc +1270 -0
- data/lib/rack/client/handler/net_http.rb +7 -4
- data/lib/rack/client/handler/net_http.rbc +2400 -0
- data/lib/rack/client/handler/typhoeus.rb +12 -5
- data/lib/rack/client/handler/typhoeus.rbc +1885 -0
- data/lib/rack/client/handler.rbc +340 -0
- data/lib/rack/client/{auth → middleware/auth}/abstract/challenge.rb +0 -0
- data/lib/rack/client/middleware/auth/abstract/challenge.rbc +1453 -0
- data/lib/rack/client/{auth → middleware/auth}/basic.rb +0 -0
- data/lib/rack/client/middleware/auth/basic.rbc +1566 -0
- data/lib/rack/client/{auth → middleware/auth}/digest/challenge.rb +0 -0
- data/lib/rack/client/middleware/auth/digest/challenge.rbc +1124 -0
- data/lib/rack/client/{auth → middleware/auth}/digest/md5.rb +0 -0
- data/lib/rack/client/middleware/auth/digest/md5.rbc +2241 -0
- data/lib/rack/client/{auth → middleware/auth}/digest/params.rb +0 -0
- data/lib/rack/client/middleware/auth/digest/params.rbc +365 -0
- data/lib/rack/client/middleware/auth.rb +5 -0
- data/lib/rack/client/middleware/auth.rbc +117 -0
- data/lib/rack/client/{cache → middleware/cache}/cachecontrol.rb +0 -0
- data/lib/rack/client/middleware/cache/cachecontrol.rbc +1610 -0
- data/lib/rack/client/{cache → middleware/cache}/context.rb +12 -3
- data/lib/rack/client/middleware/cache/context.rbc +2074 -0
- data/lib/rack/client/{cache → middleware/cache}/entitystore.rb +0 -0
- data/lib/rack/client/middleware/cache/entitystore.rbc +1619 -0
- data/lib/rack/client/{cache → middleware/cache}/key.rb +0 -0
- data/lib/rack/client/middleware/cache/key.rbc +1217 -0
- data/lib/rack/client/{cache → middleware/cache}/metastore.rb +0 -0
- data/lib/rack/client/middleware/cache/metastore.rbc +2754 -0
- data/lib/rack/client/{cache → middleware/cache}/options.rb +0 -0
- data/lib/rack/client/middleware/cache/options.rbc +1844 -0
- data/lib/rack/client/{cache → middleware/cache}/request.rb +0 -0
- data/lib/rack/client/middleware/cache/request.rbc +1020 -0
- data/lib/rack/client/{cache → middleware/cache}/response.rb +19 -0
- data/lib/rack/client/middleware/cache/response.rbc +1540 -0
- data/lib/rack/client/{cache → middleware/cache}/storage.rb +0 -0
- data/lib/rack/client/middleware/cache/storage.rbc +1106 -0
- data/lib/rack/client/middleware/cache.rb +19 -0
- data/lib/rack/client/middleware/cache.rbc +528 -0
- data/lib/rack/client/{cookie_jar → middleware/cookie_jar}/context.rb +0 -0
- data/lib/rack/client/middleware/cookie_jar/context.rbc +1576 -0
- data/lib/rack/client/{cookie_jar → middleware/cookie_jar}/cookie.rb +0 -0
- data/lib/rack/client/middleware/cookie_jar/cookie.rbc +2393 -0
- data/lib/rack/client/{cookie_jar → middleware/cookie_jar}/cookiestore.rb +0 -0
- data/lib/rack/client/middleware/cookie_jar/cookiestore.rbc +1209 -0
- data/lib/rack/client/{cookie_jar → middleware/cookie_jar}/options.rb +0 -0
- data/lib/rack/client/middleware/cookie_jar/options.rbc +1305 -0
- data/lib/rack/client/{cookie_jar → middleware/cookie_jar}/request.rb +0 -0
- data/lib/rack/client/middleware/cookie_jar/request.rbc +568 -0
- data/lib/rack/client/{cookie_jar → middleware/cookie_jar}/response.rb +0 -0
- data/lib/rack/client/middleware/cookie_jar/response.rbc +616 -0
- data/lib/rack/client/{cookie_jar → middleware/cookie_jar}/storage.rb +0 -0
- data/lib/rack/client/middleware/cookie_jar/storage.rbc +894 -0
- data/lib/rack/client/middleware/cookie_jar.rb +17 -0
- data/lib/rack/client/middleware/cookie_jar.rbc +471 -0
- data/lib/rack/client/{follow_redirects.rb → middleware/follow_redirects.rb} +0 -0
- data/lib/rack/client/middleware/follow_redirects.rbc +1344 -0
- data/lib/rack/client/middleware.rb +4 -0
- data/lib/rack/client/middleware.rbc +101 -0
- data/lib/rack/client/parser/base.rbc +898 -0
- data/lib/rack/client/parser/body_collection.rbc +1220 -0
- data/lib/rack/client/parser/context.rbc +540 -0
- data/lib/rack/client/parser/request.rbc +631 -0
- data/lib/rack/client/parser/response.rbc +663 -0
- data/lib/rack/client/parser.rbc +484 -0
- data/lib/rack/client/version.rb +1 -1
- data/lib/rack/client/version.rbc +203 -0
- data/lib/rack/client.rb +3 -13
- data/lib/rack/client.rbc +701 -0
- data/spec/core/headers_spec.rb +47 -0
- data/spec/core/headers_spec.rbc +1674 -0
- data/spec/core/response_spec.rb +78 -0
- data/spec/core/response_spec.rbc +2244 -0
- data/spec/handler/em_http_spec.rb +4 -19
- data/spec/handler/em_http_spec.rbc +224 -0
- data/spec/handler/excon_spec.rb +4 -4
- data/spec/handler/excon_spec.rbc +224 -0
- data/spec/handler/net_http_spec.rb +7 -4
- data/spec/handler/net_http_spec.rbc +307 -0
- data/spec/handler/typhoeus_spec.rb +6 -17
- data/spec/handler/typhoeus_spec.rbc +307 -0
- data/spec/helpers/async_helper.rb +31 -0
- data/spec/helpers/async_helper.rbc +843 -0
- data/spec/helpers/em_http_helper.rb +24 -0
- data/spec/helpers/em_http_helper.rbc +663 -0
- data/spec/helpers/excon_helper.rb +13 -0
- data/spec/helpers/excon_helper.rbc +461 -0
- data/spec/helpers/handler_helper.rb +68 -0
- data/spec/helpers/handler_helper.rbc +1769 -0
- data/spec/helpers/net_http_helper.rb +26 -0
- data/spec/helpers/net_http_helper.rbc +806 -0
- data/spec/helpers/sync_helper.rb +9 -0
- data/spec/helpers/sync_helper.rbc +311 -0
- data/spec/helpers/typhoeus_helper.rb +32 -0
- data/spec/helpers/typhoeus_helper.rbc +936 -0
- data/spec/middleware/cache_spec.rb +25 -0
- data/spec/middleware/cache_spec.rbc +712 -0
- data/spec/middleware/cookie_jar_spec.rb +19 -0
- data/spec/middleware/cookie_jar_spec.rbc +614 -0
- data/spec/middleware/etag_spec.rb +10 -0
- data/spec/middleware/etag_spec.rbc +438 -0
- data/spec/middleware/follow_redirects_spec.rb +12 -0
- data/spec/middleware/follow_redirects_spec.rbc +402 -0
- data/spec/middleware/lint_spec.rb +10 -0
- data/spec/middleware/lint_spec.rbc +392 -0
- data/spec/shared/handler_api.rb +33 -0
- data/spec/shared/handler_api.rbc +1340 -0
- data/spec/shared/streamed_response_api.rb +14 -0
- data/spec/shared/streamed_response_api.rbc +508 -0
- data/spec/spec_apps/cache.ru +14 -0
- data/spec/spec_apps/cookie.ru +12 -0
- data/spec/spec_apps/delete.ru +10 -0
- data/spec/spec_apps/get.ru +13 -0
- data/spec/spec_apps/head.ru +10 -0
- data/spec/spec_apps/hello_world.ru +1 -0
- data/spec/spec_apps/redirect.ru +13 -0
- data/spec/spec_apps/stream.ru +9 -0
- data/spec/spec_config.ru +10 -0
- data/spec/spec_helper.rb +14 -12
- metadata +190 -64
- data/lib/rack/client/cache.rb +0 -19
- data/lib/rack/client/cookie_jar.rb +0 -17
- data/lib/rack/client/response.rb +0 -9
- data/spec/apps/example.org.ru +0 -128
- data/spec/auth/basic_spec.rb +0 -69
- data/spec/auth/digest/md5_spec.rb +0 -69
- data/spec/cache_spec.rb +0 -40
- data/spec/cookie_jar_spec.rb +0 -37
- data/spec/endpoint_spec.rb +0 -30
- data/spec/follow_redirect_spec.rb +0 -27
- data/spec/handler/async_api_spec.rb +0 -69
- data/spec/handler/sync_api_spec.rb +0 -55
- data/spec/middleware_helper.rb +0 -37
- data/spec/middleware_spec.rb +0 -53
- data/spec/parser/json_spec.rb +0 -22
- data/spec/parser/yaml_spec.rb +0 -22
- data/spec/server_helper.rb +0 -72
File without changes
|
@@ -0,0 +1,365 @@
|
|
1
|
+
!RBIX
|
2
|
+
0
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
28
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
65
|
17
|
+
49
|
18
|
+
1
|
19
|
+
2
|
20
|
+
13
|
21
|
+
99
|
22
|
+
12
|
23
|
+
7
|
24
|
+
2
|
25
|
+
12
|
26
|
+
7
|
27
|
+
3
|
28
|
+
12
|
29
|
+
65
|
30
|
+
12
|
31
|
+
49
|
32
|
+
4
|
33
|
+
4
|
34
|
+
15
|
35
|
+
49
|
36
|
+
2
|
37
|
+
0
|
38
|
+
15
|
39
|
+
2
|
40
|
+
11
|
41
|
+
I
|
42
|
+
6
|
43
|
+
I
|
44
|
+
0
|
45
|
+
I
|
46
|
+
0
|
47
|
+
I
|
48
|
+
0
|
49
|
+
n
|
50
|
+
p
|
51
|
+
5
|
52
|
+
x
|
53
|
+
4
|
54
|
+
Rack
|
55
|
+
x
|
56
|
+
11
|
57
|
+
open_module
|
58
|
+
x
|
59
|
+
15
|
60
|
+
__module_init__
|
61
|
+
M
|
62
|
+
1
|
63
|
+
n
|
64
|
+
n
|
65
|
+
x
|
66
|
+
4
|
67
|
+
Rack
|
68
|
+
i
|
69
|
+
28
|
70
|
+
5
|
71
|
+
66
|
72
|
+
99
|
73
|
+
7
|
74
|
+
0
|
75
|
+
65
|
76
|
+
49
|
77
|
+
1
|
78
|
+
2
|
79
|
+
13
|
80
|
+
99
|
81
|
+
12
|
82
|
+
7
|
83
|
+
2
|
84
|
+
12
|
85
|
+
7
|
86
|
+
3
|
87
|
+
12
|
88
|
+
65
|
89
|
+
12
|
90
|
+
49
|
91
|
+
4
|
92
|
+
4
|
93
|
+
15
|
94
|
+
49
|
95
|
+
2
|
96
|
+
0
|
97
|
+
11
|
98
|
+
I
|
99
|
+
6
|
100
|
+
I
|
101
|
+
0
|
102
|
+
I
|
103
|
+
0
|
104
|
+
I
|
105
|
+
0
|
106
|
+
n
|
107
|
+
p
|
108
|
+
5
|
109
|
+
x
|
110
|
+
6
|
111
|
+
Client
|
112
|
+
x
|
113
|
+
11
|
114
|
+
open_module
|
115
|
+
x
|
116
|
+
15
|
117
|
+
__module_init__
|
118
|
+
M
|
119
|
+
1
|
120
|
+
n
|
121
|
+
n
|
122
|
+
x
|
123
|
+
6
|
124
|
+
Client
|
125
|
+
i
|
126
|
+
28
|
127
|
+
5
|
128
|
+
66
|
129
|
+
99
|
130
|
+
7
|
131
|
+
0
|
132
|
+
65
|
133
|
+
49
|
134
|
+
1
|
135
|
+
2
|
136
|
+
13
|
137
|
+
99
|
138
|
+
12
|
139
|
+
7
|
140
|
+
2
|
141
|
+
12
|
142
|
+
7
|
143
|
+
3
|
144
|
+
12
|
145
|
+
65
|
146
|
+
12
|
147
|
+
49
|
148
|
+
4
|
149
|
+
4
|
150
|
+
15
|
151
|
+
49
|
152
|
+
2
|
153
|
+
0
|
154
|
+
11
|
155
|
+
I
|
156
|
+
6
|
157
|
+
I
|
158
|
+
0
|
159
|
+
I
|
160
|
+
0
|
161
|
+
I
|
162
|
+
0
|
163
|
+
n
|
164
|
+
p
|
165
|
+
5
|
166
|
+
x
|
167
|
+
4
|
168
|
+
Auth
|
169
|
+
x
|
170
|
+
11
|
171
|
+
open_module
|
172
|
+
x
|
173
|
+
15
|
174
|
+
__module_init__
|
175
|
+
M
|
176
|
+
1
|
177
|
+
n
|
178
|
+
n
|
179
|
+
x
|
180
|
+
4
|
181
|
+
Auth
|
182
|
+
i
|
183
|
+
28
|
184
|
+
5
|
185
|
+
66
|
186
|
+
99
|
187
|
+
7
|
188
|
+
0
|
189
|
+
65
|
190
|
+
49
|
191
|
+
1
|
192
|
+
2
|
193
|
+
13
|
194
|
+
99
|
195
|
+
12
|
196
|
+
7
|
197
|
+
2
|
198
|
+
12
|
199
|
+
7
|
200
|
+
3
|
201
|
+
12
|
202
|
+
65
|
203
|
+
12
|
204
|
+
49
|
205
|
+
4
|
206
|
+
4
|
207
|
+
15
|
208
|
+
49
|
209
|
+
2
|
210
|
+
0
|
211
|
+
11
|
212
|
+
I
|
213
|
+
6
|
214
|
+
I
|
215
|
+
0
|
216
|
+
I
|
217
|
+
0
|
218
|
+
I
|
219
|
+
0
|
220
|
+
n
|
221
|
+
p
|
222
|
+
5
|
223
|
+
x
|
224
|
+
6
|
225
|
+
Digest
|
226
|
+
x
|
227
|
+
11
|
228
|
+
open_module
|
229
|
+
x
|
230
|
+
15
|
231
|
+
__module_init__
|
232
|
+
M
|
233
|
+
1
|
234
|
+
n
|
235
|
+
n
|
236
|
+
x
|
237
|
+
6
|
238
|
+
Digest
|
239
|
+
i
|
240
|
+
21
|
241
|
+
5
|
242
|
+
66
|
243
|
+
99
|
244
|
+
7
|
245
|
+
0
|
246
|
+
45
|
247
|
+
1
|
248
|
+
2
|
249
|
+
43
|
250
|
+
3
|
251
|
+
43
|
252
|
+
4
|
253
|
+
43
|
254
|
+
0
|
255
|
+
65
|
256
|
+
49
|
257
|
+
5
|
258
|
+
3
|
259
|
+
15
|
260
|
+
1
|
261
|
+
11
|
262
|
+
I
|
263
|
+
4
|
264
|
+
I
|
265
|
+
0
|
266
|
+
I
|
267
|
+
0
|
268
|
+
I
|
269
|
+
0
|
270
|
+
n
|
271
|
+
p
|
272
|
+
6
|
273
|
+
x
|
274
|
+
6
|
275
|
+
Params
|
276
|
+
x
|
277
|
+
4
|
278
|
+
Rack
|
279
|
+
n
|
280
|
+
x
|
281
|
+
4
|
282
|
+
Auth
|
283
|
+
x
|
284
|
+
6
|
285
|
+
Digest
|
286
|
+
x
|
287
|
+
10
|
288
|
+
open_class
|
289
|
+
p
|
290
|
+
3
|
291
|
+
I
|
292
|
+
2
|
293
|
+
I
|
294
|
+
5
|
295
|
+
I
|
296
|
+
15
|
297
|
+
x
|
298
|
+
76
|
299
|
+
/Users/ben/code/rack-client/lib/rack/client/middleware/auth/digest/params.rb
|
300
|
+
p
|
301
|
+
0
|
302
|
+
x
|
303
|
+
13
|
304
|
+
attach_method
|
305
|
+
p
|
306
|
+
3
|
307
|
+
I
|
308
|
+
2
|
309
|
+
I
|
310
|
+
4
|
311
|
+
I
|
312
|
+
1c
|
313
|
+
x
|
314
|
+
76
|
315
|
+
/Users/ben/code/rack-client/lib/rack/client/middleware/auth/digest/params.rb
|
316
|
+
p
|
317
|
+
0
|
318
|
+
x
|
319
|
+
13
|
320
|
+
attach_method
|
321
|
+
p
|
322
|
+
3
|
323
|
+
I
|
324
|
+
2
|
325
|
+
I
|
326
|
+
3
|
327
|
+
I
|
328
|
+
1c
|
329
|
+
x
|
330
|
+
76
|
331
|
+
/Users/ben/code/rack-client/lib/rack/client/middleware/auth/digest/params.rb
|
332
|
+
p
|
333
|
+
0
|
334
|
+
x
|
335
|
+
13
|
336
|
+
attach_method
|
337
|
+
p
|
338
|
+
3
|
339
|
+
I
|
340
|
+
2
|
341
|
+
I
|
342
|
+
2
|
343
|
+
I
|
344
|
+
1c
|
345
|
+
x
|
346
|
+
76
|
347
|
+
/Users/ben/code/rack-client/lib/rack/client/middleware/auth/digest/params.rb
|
348
|
+
p
|
349
|
+
0
|
350
|
+
x
|
351
|
+
13
|
352
|
+
attach_method
|
353
|
+
p
|
354
|
+
3
|
355
|
+
I
|
356
|
+
0
|
357
|
+
I
|
358
|
+
1
|
359
|
+
I
|
360
|
+
1c
|
361
|
+
x
|
362
|
+
76
|
363
|
+
/Users/ben/code/rack-client/lib/rack/client/middleware/auth/digest/params.rb
|
364
|
+
p
|
365
|
+
0
|
@@ -0,0 +1,117 @@
|
|
1
|
+
!RBIX
|
2
|
+
0
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
47
|
13
|
+
5
|
14
|
+
7
|
15
|
+
0
|
16
|
+
64
|
17
|
+
47
|
18
|
+
49
|
19
|
+
1
|
20
|
+
1
|
21
|
+
15
|
22
|
+
5
|
23
|
+
7
|
24
|
+
2
|
25
|
+
64
|
26
|
+
47
|
27
|
+
49
|
28
|
+
1
|
29
|
+
1
|
30
|
+
15
|
31
|
+
5
|
32
|
+
7
|
33
|
+
3
|
34
|
+
64
|
35
|
+
47
|
36
|
+
49
|
37
|
+
1
|
38
|
+
1
|
39
|
+
15
|
40
|
+
5
|
41
|
+
7
|
42
|
+
4
|
43
|
+
64
|
44
|
+
47
|
45
|
+
49
|
46
|
+
1
|
47
|
+
1
|
48
|
+
15
|
49
|
+
5
|
50
|
+
7
|
51
|
+
5
|
52
|
+
64
|
53
|
+
47
|
54
|
+
49
|
55
|
+
1
|
56
|
+
1
|
57
|
+
15
|
58
|
+
2
|
59
|
+
11
|
60
|
+
I
|
61
|
+
2
|
62
|
+
I
|
63
|
+
0
|
64
|
+
I
|
65
|
+
0
|
66
|
+
I
|
67
|
+
0
|
68
|
+
n
|
69
|
+
p
|
70
|
+
6
|
71
|
+
s
|
72
|
+
46
|
73
|
+
rack/client/middleware/auth/abstract/challenge
|
74
|
+
x
|
75
|
+
7
|
76
|
+
require
|
77
|
+
s
|
78
|
+
33
|
79
|
+
rack/client/middleware/auth/basic
|
80
|
+
s
|
81
|
+
44
|
82
|
+
rack/client/middleware/auth/digest/challenge
|
83
|
+
s
|
84
|
+
41
|
85
|
+
rack/client/middleware/auth/digest/params
|
86
|
+
s
|
87
|
+
38
|
88
|
+
rack/client/middleware/auth/digest/md5
|
89
|
+
p
|
90
|
+
11
|
91
|
+
I
|
92
|
+
0
|
93
|
+
I
|
94
|
+
1
|
95
|
+
I
|
96
|
+
9
|
97
|
+
I
|
98
|
+
2
|
99
|
+
I
|
100
|
+
12
|
101
|
+
I
|
102
|
+
3
|
103
|
+
I
|
104
|
+
1b
|
105
|
+
I
|
106
|
+
4
|
107
|
+
I
|
108
|
+
24
|
109
|
+
I
|
110
|
+
5
|
111
|
+
I
|
112
|
+
2f
|
113
|
+
x
|
114
|
+
62
|
115
|
+
/Users/ben/code/rack-client/lib/rack/client/middleware/auth.rb
|
116
|
+
p
|
117
|
+
0
|
File without changes
|