wrest 1.0.0.beta1 → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +14 -2
- data/LICENCE +7 -0
- data/README.rdoc +15 -69
- data/lib/wrest/components/container/alias_accessors.rb +1 -1
- data/lib/wrest/components/container/alias_accessors.rbc +905 -0
- data/lib/wrest/components/container/typecaster.rb +5 -5
- data/lib/wrest/components/container/typecaster.rbc +1985 -0
- data/lib/wrest/components/container.rb +11 -12
- data/lib/wrest/components/container.rbc +2466 -0
- data/lib/wrest/components/mutators/base.rbc +702 -0
- data/lib/wrest/components/mutators/camel_to_snake_case.rbc +360 -0
- data/lib/wrest/components/mutators/xml_mini_type_caster.rbc +679 -0
- data/lib/wrest/components/mutators/xml_simple_type_caster.rbc +559 -0
- data/lib/wrest/components/mutators.rbc +650 -0
- data/lib/wrest/components/translators/content_types.rbc +339 -0
- data/lib/wrest/components/translators/json.rbc +462 -0
- data/lib/wrest/components/translators/xml.rbc +457 -0
- data/lib/wrest/components/translators.rbc +517 -0
- data/lib/wrest/components.rbc +217 -0
- data/lib/wrest/core_ext/hash/conversions.rbc +501 -0
- data/lib/wrest/core_ext/hash.rbc +182 -0
- data/lib/wrest/core_ext/string/conversions.rbc +471 -0
- data/lib/wrest/core_ext/string.rbc +182 -0
- data/lib/wrest/curl/response.rb +8 -0
- data/lib/wrest/curl.rbc +704 -0
- data/lib/wrest/exceptions.rbc +312 -0
- data/lib/wrest/http_shared/headers.rb +0 -7
- data/lib/wrest/http_shared/headers.rbc +353 -0
- data/lib/wrest/http_shared/standard_headers.rbc +336 -0
- data/lib/wrest/http_shared/standard_tokens.rbc +316 -0
- data/lib/wrest/http_shared.rbc +279 -0
- data/lib/wrest/native/connection_factory.rbc +445 -0
- data/lib/wrest/native/delete.rbc +371 -0
- data/lib/wrest/native/get.rb +26 -0
- data/lib/wrest/native/get.rbc +855 -0
- data/lib/wrest/native/options.rbc +347 -0
- data/lib/wrest/native/post.rbc +388 -0
- data/lib/wrest/native/put.rbc +388 -0
- data/lib/wrest/native/redirection.rbc +520 -0
- data/lib/wrest/native/request.rb +4 -2
- data/lib/wrest/native/request.rbc +1675 -0
- data/lib/wrest/native/response.rb +53 -2
- data/lib/wrest/native/response.rbc +2150 -0
- data/lib/wrest/native/session.rbc +1372 -0
- data/lib/wrest/native.rbc +513 -0
- data/lib/wrest/resource/base.rbc +2115 -0
- data/lib/wrest/resource.rbc +163 -0
- data/lib/wrest/uri.rbc +2599 -0
- data/lib/wrest/uri_template.rbc +505 -0
- data/lib/wrest/version.rb +1 -1
- data/lib/wrest/version.rbc +372 -0
- data/lib/wrest.rb +1 -1
- data/lib/wrest.rbc +1900 -0
- metadata +99 -102
- data/Rakefile +0 -495
- data/VERSION.yml +0 -5
- data/bin/jwrest +0 -3
- data/examples/delicious.rb +0 -72
- data/examples/facebook.rb +0 -101
- data/examples/imgur_multipart.rb +0 -24
- data/examples/keep_alive.rb +0 -37
- data/examples/redirection.rb +0 -27
- data/examples/twitter.rb +0 -78
- data/examples/twitter_public_timeline.rb +0 -32
- data/examples/wow_realm_status.rb +0 -67
- data/init.rb +0 -0
- data/spec/custom_matchers/custom_matchers.rb +0 -2
- data/spec/rcov.opts +0 -4
- data/spec/spec.opts.disable +0 -6
- data/spec/unit/spec_helper.rb +0 -35
- data/spec/unit/wrest/components/attributes_container/alias_accessors_spec.rb +0 -49
- data/spec/unit/wrest/components/attributes_container/typecaster_spec.rb +0 -83
- data/spec/unit/wrest/components/attributes_container_spec.rb +0 -254
- data/spec/unit/wrest/components/mutators/base_spec.rb +0 -42
- data/spec/unit/wrest/components/mutators/camel_to_snake_spec.rb +0 -22
- data/spec/unit/wrest/components/mutators/xml_mini_type_caster_spec.rb +0 -75
- data/spec/unit/wrest/components/mutators/xml_simple_type_caster_spec.rb +0 -47
- data/spec/unit/wrest/components/mutators_spec.rb +0 -21
- data/spec/unit/wrest/components/translators/xml_spec.rb +0 -16
- data/spec/unit/wrest/components/translators_spec.rb +0 -18
- data/spec/unit/wrest/core_ext/hash/conversions_spec.rb +0 -22
- data/spec/unit/wrest/core_ext/string/conversions_spec.rb +0 -39
- data/spec/unit/wrest/curl/request_spec.rb +0 -19
- data/spec/unit/wrest/curl/response_spec.rb +0 -16
- data/spec/unit/wrest/http/response_spec.rb +0 -24
- data/spec/unit/wrest/native/redirection_spec.rb +0 -42
- data/spec/unit/wrest/native/request_spec.rb +0 -71
- data/spec/unit/wrest/native/response_spec.rb +0 -72
- data/spec/unit/wrest/native/session_spec.rb +0 -74
- data/spec/unit/wrest/resource/base_spec.rb +0 -274
- data/spec/unit/wrest/uri_spec.rb +0 -273
- data/spec/unit/wrest/uri_template_spec.rb +0 -38
- data/wrest.gemspec +0 -168
@@ -0,0 +1,702 @@
|
|
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
|
+
5
|
54
|
+
Wrest
|
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
|
+
5
|
67
|
+
Wrest
|
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
|
+
10
|
111
|
+
Components
|
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
|
+
10
|
124
|
+
Components
|
125
|
+
i
|
126
|
+
31
|
127
|
+
5
|
128
|
+
66
|
129
|
+
99
|
130
|
+
7
|
131
|
+
0
|
132
|
+
1
|
133
|
+
45
|
134
|
+
1
|
135
|
+
2
|
136
|
+
49
|
137
|
+
3
|
138
|
+
3
|
139
|
+
13
|
140
|
+
99
|
141
|
+
12
|
142
|
+
7
|
143
|
+
4
|
144
|
+
12
|
145
|
+
7
|
146
|
+
5
|
147
|
+
12
|
148
|
+
65
|
149
|
+
12
|
150
|
+
49
|
151
|
+
6
|
152
|
+
4
|
153
|
+
15
|
154
|
+
49
|
155
|
+
4
|
156
|
+
0
|
157
|
+
11
|
158
|
+
I
|
159
|
+
6
|
160
|
+
I
|
161
|
+
0
|
162
|
+
I
|
163
|
+
0
|
164
|
+
I
|
165
|
+
0
|
166
|
+
n
|
167
|
+
p
|
168
|
+
7
|
169
|
+
x
|
170
|
+
4
|
171
|
+
Base
|
172
|
+
x
|
173
|
+
8
|
174
|
+
Mutators
|
175
|
+
n
|
176
|
+
x
|
177
|
+
16
|
178
|
+
open_class_under
|
179
|
+
x
|
180
|
+
14
|
181
|
+
__class_init__
|
182
|
+
M
|
183
|
+
1
|
184
|
+
n
|
185
|
+
n
|
186
|
+
x
|
187
|
+
4
|
188
|
+
Base
|
189
|
+
i
|
190
|
+
67
|
191
|
+
5
|
192
|
+
66
|
193
|
+
5
|
194
|
+
7
|
195
|
+
0
|
196
|
+
47
|
197
|
+
49
|
198
|
+
1
|
199
|
+
1
|
200
|
+
15
|
201
|
+
99
|
202
|
+
7
|
203
|
+
2
|
204
|
+
7
|
205
|
+
3
|
206
|
+
65
|
207
|
+
5
|
208
|
+
49
|
209
|
+
4
|
210
|
+
4
|
211
|
+
15
|
212
|
+
99
|
213
|
+
7
|
214
|
+
5
|
215
|
+
7
|
216
|
+
6
|
217
|
+
65
|
218
|
+
67
|
219
|
+
49
|
220
|
+
7
|
221
|
+
0
|
222
|
+
49
|
223
|
+
8
|
224
|
+
4
|
225
|
+
15
|
226
|
+
99
|
227
|
+
7
|
228
|
+
9
|
229
|
+
7
|
230
|
+
10
|
231
|
+
65
|
232
|
+
67
|
233
|
+
49
|
234
|
+
7
|
235
|
+
0
|
236
|
+
49
|
237
|
+
8
|
238
|
+
4
|
239
|
+
15
|
240
|
+
5
|
241
|
+
48
|
242
|
+
11
|
243
|
+
15
|
244
|
+
99
|
245
|
+
7
|
246
|
+
12
|
247
|
+
7
|
248
|
+
13
|
249
|
+
65
|
250
|
+
67
|
251
|
+
49
|
252
|
+
7
|
253
|
+
0
|
254
|
+
49
|
255
|
+
8
|
256
|
+
4
|
257
|
+
11
|
258
|
+
I
|
259
|
+
5
|
260
|
+
I
|
261
|
+
0
|
262
|
+
I
|
263
|
+
0
|
264
|
+
I
|
265
|
+
0
|
266
|
+
n
|
267
|
+
p
|
268
|
+
14
|
269
|
+
x
|
270
|
+
12
|
271
|
+
next_mutator
|
272
|
+
x
|
273
|
+
11
|
274
|
+
attr_reader
|
275
|
+
x
|
276
|
+
9
|
277
|
+
inherited
|
278
|
+
M
|
279
|
+
1
|
280
|
+
n
|
281
|
+
n
|
282
|
+
x
|
283
|
+
9
|
284
|
+
inherited
|
285
|
+
i
|
286
|
+
46
|
287
|
+
20
|
288
|
+
0
|
289
|
+
49
|
290
|
+
0
|
291
|
+
0
|
292
|
+
49
|
293
|
+
1
|
294
|
+
0
|
295
|
+
9
|
296
|
+
13
|
297
|
+
1
|
298
|
+
8
|
299
|
+
45
|
300
|
+
45
|
301
|
+
2
|
302
|
+
3
|
303
|
+
43
|
304
|
+
4
|
305
|
+
43
|
306
|
+
5
|
307
|
+
43
|
308
|
+
6
|
309
|
+
20
|
310
|
+
0
|
311
|
+
49
|
312
|
+
0
|
313
|
+
0
|
314
|
+
49
|
315
|
+
7
|
316
|
+
0
|
317
|
+
49
|
318
|
+
8
|
319
|
+
0
|
320
|
+
49
|
321
|
+
9
|
322
|
+
0
|
323
|
+
20
|
324
|
+
0
|
325
|
+
13
|
326
|
+
18
|
327
|
+
3
|
328
|
+
49
|
329
|
+
10
|
330
|
+
2
|
331
|
+
15
|
332
|
+
11
|
333
|
+
I
|
334
|
+
5
|
335
|
+
I
|
336
|
+
1
|
337
|
+
I
|
338
|
+
1
|
339
|
+
I
|
340
|
+
1
|
341
|
+
n
|
342
|
+
p
|
343
|
+
11
|
344
|
+
x
|
345
|
+
4
|
346
|
+
name
|
347
|
+
x
|
348
|
+
6
|
349
|
+
blank?
|
350
|
+
x
|
351
|
+
5
|
352
|
+
Wrest
|
353
|
+
n
|
354
|
+
x
|
355
|
+
10
|
356
|
+
Components
|
357
|
+
x
|
358
|
+
8
|
359
|
+
Mutators
|
360
|
+
x
|
361
|
+
8
|
362
|
+
REGISTRY
|
363
|
+
x
|
364
|
+
10
|
365
|
+
demodulize
|
366
|
+
x
|
367
|
+
10
|
368
|
+
underscore
|
369
|
+
x
|
370
|
+
6
|
371
|
+
to_sym
|
372
|
+
x
|
373
|
+
3
|
374
|
+
[]=
|
375
|
+
p
|
376
|
+
5
|
377
|
+
I
|
378
|
+
0
|
379
|
+
I
|
380
|
+
18
|
381
|
+
I
|
382
|
+
0
|
383
|
+
I
|
384
|
+
19
|
385
|
+
I
|
386
|
+
2e
|
387
|
+
x
|
388
|
+
60
|
389
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
390
|
+
p
|
391
|
+
1
|
392
|
+
x
|
393
|
+
8
|
394
|
+
subklass
|
395
|
+
x
|
396
|
+
13
|
397
|
+
attach_method
|
398
|
+
x
|
399
|
+
10
|
400
|
+
initialize
|
401
|
+
M
|
402
|
+
1
|
403
|
+
n
|
404
|
+
n
|
405
|
+
x
|
406
|
+
10
|
407
|
+
initialize
|
408
|
+
i
|
409
|
+
13
|
410
|
+
23
|
411
|
+
0
|
412
|
+
10
|
413
|
+
8
|
414
|
+
1
|
415
|
+
19
|
416
|
+
0
|
417
|
+
15
|
418
|
+
20
|
419
|
+
0
|
420
|
+
38
|
421
|
+
0
|
422
|
+
11
|
423
|
+
I
|
424
|
+
2
|
425
|
+
I
|
426
|
+
1
|
427
|
+
I
|
428
|
+
0
|
429
|
+
I
|
430
|
+
1
|
431
|
+
n
|
432
|
+
p
|
433
|
+
1
|
434
|
+
x
|
435
|
+
13
|
436
|
+
@next_mutator
|
437
|
+
p
|
438
|
+
5
|
439
|
+
I
|
440
|
+
0
|
441
|
+
I
|
442
|
+
1c
|
443
|
+
I
|
444
|
+
8
|
445
|
+
I
|
446
|
+
1d
|
447
|
+
I
|
448
|
+
d
|
449
|
+
x
|
450
|
+
60
|
451
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
452
|
+
p
|
453
|
+
1
|
454
|
+
x
|
455
|
+
12
|
456
|
+
next_mutator
|
457
|
+
x
|
458
|
+
17
|
459
|
+
method_visibility
|
460
|
+
x
|
461
|
+
15
|
462
|
+
add_defn_method
|
463
|
+
x
|
464
|
+
6
|
465
|
+
mutate
|
466
|
+
M
|
467
|
+
1
|
468
|
+
n
|
469
|
+
n
|
470
|
+
x
|
471
|
+
6
|
472
|
+
mutate
|
473
|
+
i
|
474
|
+
28
|
475
|
+
5
|
476
|
+
20
|
477
|
+
0
|
478
|
+
47
|
479
|
+
49
|
480
|
+
0
|
481
|
+
1
|
482
|
+
19
|
483
|
+
1
|
484
|
+
15
|
485
|
+
5
|
486
|
+
48
|
487
|
+
1
|
488
|
+
9
|
489
|
+
25
|
490
|
+
5
|
491
|
+
48
|
492
|
+
1
|
493
|
+
20
|
494
|
+
1
|
495
|
+
49
|
496
|
+
2
|
497
|
+
1
|
498
|
+
8
|
499
|
+
27
|
500
|
+
20
|
501
|
+
1
|
502
|
+
11
|
503
|
+
I
|
504
|
+
4
|
505
|
+
I
|
506
|
+
2
|
507
|
+
I
|
508
|
+
1
|
509
|
+
I
|
510
|
+
1
|
511
|
+
n
|
512
|
+
p
|
513
|
+
3
|
514
|
+
x
|
515
|
+
9
|
516
|
+
do_mutate
|
517
|
+
x
|
518
|
+
12
|
519
|
+
next_mutator
|
520
|
+
x
|
521
|
+
6
|
522
|
+
mutate
|
523
|
+
p
|
524
|
+
7
|
525
|
+
I
|
526
|
+
0
|
527
|
+
I
|
528
|
+
2d
|
529
|
+
I
|
530
|
+
0
|
531
|
+
I
|
532
|
+
2e
|
533
|
+
I
|
534
|
+
a
|
535
|
+
I
|
536
|
+
2f
|
537
|
+
I
|
538
|
+
1c
|
539
|
+
x
|
540
|
+
60
|
541
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
542
|
+
p
|
543
|
+
2
|
544
|
+
x
|
545
|
+
5
|
546
|
+
tuple
|
547
|
+
x
|
548
|
+
9
|
549
|
+
out_tuple
|
550
|
+
x
|
551
|
+
9
|
552
|
+
protected
|
553
|
+
x
|
554
|
+
9
|
555
|
+
do_mutate
|
556
|
+
M
|
557
|
+
1
|
558
|
+
n
|
559
|
+
n
|
560
|
+
x
|
561
|
+
9
|
562
|
+
do_mutate
|
563
|
+
i
|
564
|
+
13
|
565
|
+
5
|
566
|
+
45
|
567
|
+
0
|
568
|
+
1
|
569
|
+
43
|
570
|
+
2
|
571
|
+
43
|
572
|
+
3
|
573
|
+
47
|
574
|
+
49
|
575
|
+
4
|
576
|
+
1
|
577
|
+
11
|
578
|
+
I
|
579
|
+
3
|
580
|
+
I
|
581
|
+
1
|
582
|
+
I
|
583
|
+
1
|
584
|
+
I
|
585
|
+
1
|
586
|
+
n
|
587
|
+
p
|
588
|
+
5
|
589
|
+
x
|
590
|
+
5
|
591
|
+
Wrest
|
592
|
+
n
|
593
|
+
x
|
594
|
+
10
|
595
|
+
Exceptions
|
596
|
+
x
|
597
|
+
19
|
598
|
+
MethodNotOverridden
|
599
|
+
x
|
600
|
+
5
|
601
|
+
raise
|
602
|
+
p
|
603
|
+
5
|
604
|
+
I
|
605
|
+
0
|
606
|
+
I
|
607
|
+
33
|
608
|
+
I
|
609
|
+
0
|
610
|
+
I
|
611
|
+
34
|
612
|
+
I
|
613
|
+
d
|
614
|
+
x
|
615
|
+
60
|
616
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
617
|
+
p
|
618
|
+
1
|
619
|
+
x
|
620
|
+
5
|
621
|
+
tuple
|
622
|
+
p
|
623
|
+
13
|
624
|
+
I
|
625
|
+
2
|
626
|
+
I
|
627
|
+
11
|
628
|
+
I
|
629
|
+
a
|
630
|
+
I
|
631
|
+
18
|
632
|
+
I
|
633
|
+
15
|
634
|
+
I
|
635
|
+
1c
|
636
|
+
I
|
637
|
+
23
|
638
|
+
I
|
639
|
+
2d
|
640
|
+
I
|
641
|
+
31
|
642
|
+
I
|
643
|
+
32
|
644
|
+
I
|
645
|
+
35
|
646
|
+
I
|
647
|
+
33
|
648
|
+
I
|
649
|
+
43
|
650
|
+
x
|
651
|
+
60
|
652
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
653
|
+
p
|
654
|
+
0
|
655
|
+
x
|
656
|
+
13
|
657
|
+
attach_method
|
658
|
+
p
|
659
|
+
3
|
660
|
+
I
|
661
|
+
2
|
662
|
+
I
|
663
|
+
10
|
664
|
+
I
|
665
|
+
1f
|
666
|
+
x
|
667
|
+
60
|
668
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
669
|
+
p
|
670
|
+
0
|
671
|
+
x
|
672
|
+
13
|
673
|
+
attach_method
|
674
|
+
p
|
675
|
+
3
|
676
|
+
I
|
677
|
+
2
|
678
|
+
I
|
679
|
+
b
|
680
|
+
I
|
681
|
+
1c
|
682
|
+
x
|
683
|
+
60
|
684
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
685
|
+
p
|
686
|
+
0
|
687
|
+
x
|
688
|
+
13
|
689
|
+
attach_method
|
690
|
+
p
|
691
|
+
3
|
692
|
+
I
|
693
|
+
0
|
694
|
+
I
|
695
|
+
a
|
696
|
+
I
|
697
|
+
1c
|
698
|
+
x
|
699
|
+
60
|
700
|
+
/Users/sidu/Work/wrest/lib/wrest/components/mutators/base.rb
|
701
|
+
p
|
702
|
+
0
|