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.
Files changed (93) hide show
  1. data/CHANGELOG +14 -2
  2. data/LICENCE +7 -0
  3. data/README.rdoc +15 -69
  4. data/lib/wrest/components/container/alias_accessors.rb +1 -1
  5. data/lib/wrest/components/container/alias_accessors.rbc +905 -0
  6. data/lib/wrest/components/container/typecaster.rb +5 -5
  7. data/lib/wrest/components/container/typecaster.rbc +1985 -0
  8. data/lib/wrest/components/container.rb +11 -12
  9. data/lib/wrest/components/container.rbc +2466 -0
  10. data/lib/wrest/components/mutators/base.rbc +702 -0
  11. data/lib/wrest/components/mutators/camel_to_snake_case.rbc +360 -0
  12. data/lib/wrest/components/mutators/xml_mini_type_caster.rbc +679 -0
  13. data/lib/wrest/components/mutators/xml_simple_type_caster.rbc +559 -0
  14. data/lib/wrest/components/mutators.rbc +650 -0
  15. data/lib/wrest/components/translators/content_types.rbc +339 -0
  16. data/lib/wrest/components/translators/json.rbc +462 -0
  17. data/lib/wrest/components/translators/xml.rbc +457 -0
  18. data/lib/wrest/components/translators.rbc +517 -0
  19. data/lib/wrest/components.rbc +217 -0
  20. data/lib/wrest/core_ext/hash/conversions.rbc +501 -0
  21. data/lib/wrest/core_ext/hash.rbc +182 -0
  22. data/lib/wrest/core_ext/string/conversions.rbc +471 -0
  23. data/lib/wrest/core_ext/string.rbc +182 -0
  24. data/lib/wrest/curl/response.rb +8 -0
  25. data/lib/wrest/curl.rbc +704 -0
  26. data/lib/wrest/exceptions.rbc +312 -0
  27. data/lib/wrest/http_shared/headers.rb +0 -7
  28. data/lib/wrest/http_shared/headers.rbc +353 -0
  29. data/lib/wrest/http_shared/standard_headers.rbc +336 -0
  30. data/lib/wrest/http_shared/standard_tokens.rbc +316 -0
  31. data/lib/wrest/http_shared.rbc +279 -0
  32. data/lib/wrest/native/connection_factory.rbc +445 -0
  33. data/lib/wrest/native/delete.rbc +371 -0
  34. data/lib/wrest/native/get.rb +26 -0
  35. data/lib/wrest/native/get.rbc +855 -0
  36. data/lib/wrest/native/options.rbc +347 -0
  37. data/lib/wrest/native/post.rbc +388 -0
  38. data/lib/wrest/native/put.rbc +388 -0
  39. data/lib/wrest/native/redirection.rbc +520 -0
  40. data/lib/wrest/native/request.rb +4 -2
  41. data/lib/wrest/native/request.rbc +1675 -0
  42. data/lib/wrest/native/response.rb +53 -2
  43. data/lib/wrest/native/response.rbc +2150 -0
  44. data/lib/wrest/native/session.rbc +1372 -0
  45. data/lib/wrest/native.rbc +513 -0
  46. data/lib/wrest/resource/base.rbc +2115 -0
  47. data/lib/wrest/resource.rbc +163 -0
  48. data/lib/wrest/uri.rbc +2599 -0
  49. data/lib/wrest/uri_template.rbc +505 -0
  50. data/lib/wrest/version.rb +1 -1
  51. data/lib/wrest/version.rbc +372 -0
  52. data/lib/wrest.rb +1 -1
  53. data/lib/wrest.rbc +1900 -0
  54. metadata +99 -102
  55. data/Rakefile +0 -495
  56. data/VERSION.yml +0 -5
  57. data/bin/jwrest +0 -3
  58. data/examples/delicious.rb +0 -72
  59. data/examples/facebook.rb +0 -101
  60. data/examples/imgur_multipart.rb +0 -24
  61. data/examples/keep_alive.rb +0 -37
  62. data/examples/redirection.rb +0 -27
  63. data/examples/twitter.rb +0 -78
  64. data/examples/twitter_public_timeline.rb +0 -32
  65. data/examples/wow_realm_status.rb +0 -67
  66. data/init.rb +0 -0
  67. data/spec/custom_matchers/custom_matchers.rb +0 -2
  68. data/spec/rcov.opts +0 -4
  69. data/spec/spec.opts.disable +0 -6
  70. data/spec/unit/spec_helper.rb +0 -35
  71. data/spec/unit/wrest/components/attributes_container/alias_accessors_spec.rb +0 -49
  72. data/spec/unit/wrest/components/attributes_container/typecaster_spec.rb +0 -83
  73. data/spec/unit/wrest/components/attributes_container_spec.rb +0 -254
  74. data/spec/unit/wrest/components/mutators/base_spec.rb +0 -42
  75. data/spec/unit/wrest/components/mutators/camel_to_snake_spec.rb +0 -22
  76. data/spec/unit/wrest/components/mutators/xml_mini_type_caster_spec.rb +0 -75
  77. data/spec/unit/wrest/components/mutators/xml_simple_type_caster_spec.rb +0 -47
  78. data/spec/unit/wrest/components/mutators_spec.rb +0 -21
  79. data/spec/unit/wrest/components/translators/xml_spec.rb +0 -16
  80. data/spec/unit/wrest/components/translators_spec.rb +0 -18
  81. data/spec/unit/wrest/core_ext/hash/conversions_spec.rb +0 -22
  82. data/spec/unit/wrest/core_ext/string/conversions_spec.rb +0 -39
  83. data/spec/unit/wrest/curl/request_spec.rb +0 -19
  84. data/spec/unit/wrest/curl/response_spec.rb +0 -16
  85. data/spec/unit/wrest/http/response_spec.rb +0 -24
  86. data/spec/unit/wrest/native/redirection_spec.rb +0 -42
  87. data/spec/unit/wrest/native/request_spec.rb +0 -71
  88. data/spec/unit/wrest/native/response_spec.rb +0 -72
  89. data/spec/unit/wrest/native/session_spec.rb +0 -74
  90. data/spec/unit/wrest/resource/base_spec.rb +0 -274
  91. data/spec/unit/wrest/uri_spec.rb +0 -273
  92. data/spec/unit/wrest/uri_template_spec.rb +0 -38
  93. data/wrest.gemspec +0 -168
@@ -0,0 +1,501 @@
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
+ 7
111
+ CoreExt
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
+ 7
124
+ CoreExt
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
+ Hash
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
+ Hash
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
+ 11
225
+ Conversions
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
+ 11
238
+ Conversions
239
+ i
240
+ 16
241
+ 5
242
+ 66
243
+ 99
244
+ 7
245
+ 0
246
+ 7
247
+ 1
248
+ 65
249
+ 67
250
+ 49
251
+ 2
252
+ 0
253
+ 49
254
+ 3
255
+ 4
256
+ 11
257
+ I
258
+ 5
259
+ I
260
+ 0
261
+ I
262
+ 0
263
+ I
264
+ 0
265
+ n
266
+ p
267
+ 4
268
+ x
269
+ 12
270
+ mutate_using
271
+ M
272
+ 1
273
+ n
274
+ n
275
+ x
276
+ 12
277
+ mutate_using
278
+ i
279
+ 20
280
+ 44
281
+ 43
282
+ 0
283
+ 78
284
+ 49
285
+ 1
286
+ 1
287
+ 19
288
+ 1
289
+ 15
290
+ 5
291
+ 56
292
+ 2
293
+ 50
294
+ 3
295
+ 0
296
+ 15
297
+ 20
298
+ 1
299
+ 11
300
+ I
301
+ 4
302
+ I
303
+ 2
304
+ I
305
+ 1
306
+ I
307
+ 1
308
+ n
309
+ p
310
+ 4
311
+ x
312
+ 4
313
+ Hash
314
+ x
315
+ 16
316
+ new_from_literal
317
+ M
318
+ 1
319
+ p
320
+ 2
321
+ x
322
+ 9
323
+ for_block
324
+ t
325
+ n
326
+ x
327
+ 12
328
+ mutate_using
329
+ i
330
+ 21
331
+ 57
332
+ 19
333
+ 0
334
+ 15
335
+ 21
336
+ 1
337
+ 1
338
+ 21
339
+ 1
340
+ 0
341
+ 20
342
+ 0
343
+ 49
344
+ 0
345
+ 1
346
+ 36
347
+ 1
348
+ 51
349
+ 1
350
+ 0
351
+ 11
352
+ I
353
+ 5
354
+ I
355
+ 1
356
+ I
357
+ 1
358
+ I
359
+ 1
360
+ n
361
+ p
362
+ 2
363
+ x
364
+ 6
365
+ mutate
366
+ x
367
+ 5
368
+ store
369
+ p
370
+ 3
371
+ I
372
+ 0
373
+ I
374
+ 26
375
+ I
376
+ 15
377
+ x
378
+ 61
379
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash/conversions.rb
380
+ p
381
+ 1
382
+ x
383
+ 5
384
+ tuple
385
+ x
386
+ 4
387
+ each
388
+ p
389
+ 9
390
+ I
391
+ 0
392
+ I
393
+ 24
394
+ I
395
+ 0
396
+ I
397
+ 25
398
+ I
399
+ a
400
+ I
401
+ 26
402
+ I
403
+ 11
404
+ I
405
+ 27
406
+ I
407
+ 14
408
+ x
409
+ 61
410
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash/conversions.rb
411
+ p
412
+ 2
413
+ x
414
+ 7
415
+ mutator
416
+ x
417
+ 12
418
+ mutated_hash
419
+ x
420
+ 17
421
+ method_visibility
422
+ x
423
+ 15
424
+ add_defn_method
425
+ p
426
+ 3
427
+ I
428
+ 2
429
+ I
430
+ 24
431
+ I
432
+ 10
433
+ x
434
+ 61
435
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash/conversions.rb
436
+ p
437
+ 0
438
+ x
439
+ 13
440
+ attach_method
441
+ p
442
+ 3
443
+ I
444
+ 2
445
+ I
446
+ e
447
+ I
448
+ 1c
449
+ x
450
+ 61
451
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash/conversions.rb
452
+ p
453
+ 0
454
+ x
455
+ 13
456
+ attach_method
457
+ p
458
+ 3
459
+ I
460
+ 2
461
+ I
462
+ c
463
+ I
464
+ 1c
465
+ x
466
+ 61
467
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash/conversions.rb
468
+ p
469
+ 0
470
+ x
471
+ 13
472
+ attach_method
473
+ p
474
+ 3
475
+ I
476
+ 2
477
+ I
478
+ b
479
+ I
480
+ 1c
481
+ x
482
+ 61
483
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash/conversions.rb
484
+ p
485
+ 0
486
+ x
487
+ 13
488
+ attach_method
489
+ p
490
+ 3
491
+ I
492
+ 0
493
+ I
494
+ a
495
+ I
496
+ 1c
497
+ x
498
+ 61
499
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash/conversions.rb
500
+ p
501
+ 0
@@ -0,0 +1,182 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 48
13
+ 5
14
+ 45
15
+ 0
16
+ 1
17
+ 43
18
+ 2
19
+ 47
20
+ 49
21
+ 3
22
+ 0
23
+ 7
24
+ 4
25
+ 63
26
+ 2
27
+ 47
28
+ 49
29
+ 5
30
+ 1
31
+ 15
32
+ 99
33
+ 7
34
+ 6
35
+ 1
36
+ 65
37
+ 49
38
+ 7
39
+ 3
40
+ 13
41
+ 99
42
+ 12
43
+ 7
44
+ 8
45
+ 12
46
+ 7
47
+ 9
48
+ 12
49
+ 65
50
+ 12
51
+ 49
52
+ 10
53
+ 4
54
+ 15
55
+ 49
56
+ 8
57
+ 0
58
+ 15
59
+ 2
60
+ 11
61
+ I
62
+ 6
63
+ I
64
+ 0
65
+ I
66
+ 0
67
+ I
68
+ 0
69
+ n
70
+ p
71
+ 11
72
+ x
73
+ 5
74
+ Wrest
75
+ n
76
+ x
77
+ 4
78
+ Root
79
+ x
80
+ 4
81
+ to_s
82
+ s
83
+ 32
84
+ /wrest/core_ext/hash/conversions
85
+ x
86
+ 7
87
+ require
88
+ x
89
+ 4
90
+ Hash
91
+ x
92
+ 10
93
+ open_class
94
+ x
95
+ 14
96
+ __class_init__
97
+ M
98
+ 1
99
+ n
100
+ n
101
+ x
102
+ 4
103
+ Hash
104
+ i
105
+ 17
106
+ 5
107
+ 66
108
+ 5
109
+ 45
110
+ 0
111
+ 1
112
+ 43
113
+ 2
114
+ 43
115
+ 3
116
+ 43
117
+ 4
118
+ 47
119
+ 49
120
+ 5
121
+ 1
122
+ 11
123
+ I
124
+ 2
125
+ I
126
+ 0
127
+ I
128
+ 0
129
+ I
130
+ 0
131
+ n
132
+ p
133
+ 6
134
+ x
135
+ 5
136
+ Wrest
137
+ n
138
+ x
139
+ 7
140
+ CoreExt
141
+ x
142
+ 4
143
+ Hash
144
+ x
145
+ 11
146
+ Conversions
147
+ x
148
+ 7
149
+ include
150
+ p
151
+ 3
152
+ I
153
+ 2
154
+ I
155
+ 4
156
+ I
157
+ 11
158
+ x
159
+ 49
160
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash.rb
161
+ p
162
+ 0
163
+ x
164
+ 13
165
+ attach_method
166
+ p
167
+ 5
168
+ I
169
+ 0
170
+ I
171
+ 1
172
+ I
173
+ 13
174
+ I
175
+ 3
176
+ I
177
+ 30
178
+ x
179
+ 49
180
+ /Users/sidu/Work/wrest/lib/wrest/core_ext/hash.rb
181
+ p
182
+ 0