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,513 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 232
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
+ 5
40
+ 45
41
+ 0
42
+ 5
43
+ 43
44
+ 6
45
+ 47
46
+ 49
47
+ 7
48
+ 0
49
+ 7
50
+ 8
51
+ 63
52
+ 2
53
+ 47
54
+ 49
55
+ 9
56
+ 1
57
+ 15
58
+ 5
59
+ 45
60
+ 0
61
+ 10
62
+ 43
63
+ 6
64
+ 47
65
+ 49
66
+ 7
67
+ 0
68
+ 7
69
+ 11
70
+ 63
71
+ 2
72
+ 47
73
+ 49
74
+ 9
75
+ 1
76
+ 15
77
+ 5
78
+ 45
79
+ 0
80
+ 12
81
+ 43
82
+ 6
83
+ 47
84
+ 49
85
+ 7
86
+ 0
87
+ 7
88
+ 13
89
+ 63
90
+ 2
91
+ 47
92
+ 49
93
+ 9
94
+ 1
95
+ 15
96
+ 5
97
+ 45
98
+ 0
99
+ 14
100
+ 43
101
+ 6
102
+ 47
103
+ 49
104
+ 7
105
+ 0
106
+ 7
107
+ 15
108
+ 63
109
+ 2
110
+ 47
111
+ 49
112
+ 9
113
+ 1
114
+ 15
115
+ 5
116
+ 45
117
+ 0
118
+ 16
119
+ 43
120
+ 6
121
+ 47
122
+ 49
123
+ 7
124
+ 0
125
+ 7
126
+ 17
127
+ 63
128
+ 2
129
+ 47
130
+ 49
131
+ 9
132
+ 1
133
+ 15
134
+ 5
135
+ 45
136
+ 0
137
+ 18
138
+ 43
139
+ 6
140
+ 47
141
+ 49
142
+ 7
143
+ 0
144
+ 7
145
+ 19
146
+ 63
147
+ 2
148
+ 47
149
+ 49
150
+ 9
151
+ 1
152
+ 15
153
+ 5
154
+ 45
155
+ 0
156
+ 20
157
+ 43
158
+ 6
159
+ 47
160
+ 49
161
+ 7
162
+ 0
163
+ 7
164
+ 21
165
+ 63
166
+ 2
167
+ 47
168
+ 49
169
+ 9
170
+ 1
171
+ 15
172
+ 5
173
+ 45
174
+ 0
175
+ 22
176
+ 43
177
+ 6
178
+ 47
179
+ 49
180
+ 7
181
+ 0
182
+ 7
183
+ 23
184
+ 63
185
+ 2
186
+ 47
187
+ 49
188
+ 9
189
+ 1
190
+ 15
191
+ 5
192
+ 45
193
+ 0
194
+ 24
195
+ 43
196
+ 6
197
+ 47
198
+ 49
199
+ 7
200
+ 0
201
+ 7
202
+ 25
203
+ 63
204
+ 2
205
+ 47
206
+ 49
207
+ 9
208
+ 1
209
+ 15
210
+ 5
211
+ 45
212
+ 0
213
+ 26
214
+ 43
215
+ 6
216
+ 47
217
+ 49
218
+ 7
219
+ 0
220
+ 7
221
+ 27
222
+ 63
223
+ 2
224
+ 47
225
+ 49
226
+ 9
227
+ 1
228
+ 15
229
+ 45
230
+ 0
231
+ 28
232
+ 7
233
+ 29
234
+ 45
235
+ 0
236
+ 30
237
+ 43
238
+ 31
239
+ 49
240
+ 32
241
+ 2
242
+ 15
243
+ 2
244
+ 11
245
+ I
246
+ 6
247
+ I
248
+ 0
249
+ I
250
+ 0
251
+ I
252
+ 0
253
+ n
254
+ p
255
+ 33
256
+ x
257
+ 5
258
+ Wrest
259
+ x
260
+ 11
261
+ open_module
262
+ x
263
+ 15
264
+ __module_init__
265
+ M
266
+ 1
267
+ n
268
+ n
269
+ x
270
+ 5
271
+ Wrest
272
+ i
273
+ 28
274
+ 5
275
+ 66
276
+ 99
277
+ 7
278
+ 0
279
+ 65
280
+ 49
281
+ 1
282
+ 2
283
+ 13
284
+ 99
285
+ 12
286
+ 7
287
+ 2
288
+ 12
289
+ 7
290
+ 3
291
+ 12
292
+ 65
293
+ 12
294
+ 49
295
+ 4
296
+ 4
297
+ 15
298
+ 49
299
+ 2
300
+ 0
301
+ 11
302
+ I
303
+ 6
304
+ I
305
+ 0
306
+ I
307
+ 0
308
+ I
309
+ 0
310
+ n
311
+ p
312
+ 5
313
+ x
314
+ 6
315
+ Native
316
+ x
317
+ 11
318
+ open_module
319
+ x
320
+ 15
321
+ __module_init__
322
+ M
323
+ 1
324
+ n
325
+ n
326
+ x
327
+ 6
328
+ Native
329
+ i
330
+ 13
331
+ 5
332
+ 66
333
+ 5
334
+ 45
335
+ 0
336
+ 1
337
+ 43
338
+ 2
339
+ 47
340
+ 49
341
+ 3
342
+ 1
343
+ 11
344
+ I
345
+ 2
346
+ I
347
+ 0
348
+ I
349
+ 0
350
+ I
351
+ 0
352
+ n
353
+ p
354
+ 4
355
+ x
356
+ 5
357
+ Wrest
358
+ n
359
+ x
360
+ 10
361
+ HttpShared
362
+ x
363
+ 7
364
+ include
365
+ p
366
+ 3
367
+ I
368
+ 2
369
+ I
370
+ 11
371
+ I
372
+ d
373
+ x
374
+ 42
375
+ /Users/sidu/Work/wrest/lib/wrest/native.rb
376
+ p
377
+ 0
378
+ x
379
+ 13
380
+ attach_method
381
+ p
382
+ 3
383
+ I
384
+ 2
385
+ I
386
+ 10
387
+ I
388
+ 1c
389
+ x
390
+ 42
391
+ /Users/sidu/Work/wrest/lib/wrest/native.rb
392
+ p
393
+ 0
394
+ x
395
+ 13
396
+ attach_method
397
+ n
398
+ x
399
+ 4
400
+ Root
401
+ x
402
+ 4
403
+ to_s
404
+ s
405
+ 32
406
+ /wrest/native/connection_factory
407
+ x
408
+ 7
409
+ require
410
+ n
411
+ s
412
+ 22
413
+ /wrest/native/response
414
+ n
415
+ s
416
+ 25
417
+ /wrest/native/redirection
418
+ n
419
+ s
420
+ 21
421
+ /wrest/native/request
422
+ n
423
+ s
424
+ 17
425
+ /wrest/native/get
426
+ n
427
+ s
428
+ 17
429
+ /wrest/native/put
430
+ n
431
+ s
432
+ 18
433
+ /wrest/native/post
434
+ n
435
+ s
436
+ 20
437
+ /wrest/native/delete
438
+ n
439
+ s
440
+ 21
441
+ /wrest/native/options
442
+ n
443
+ s
444
+ 21
445
+ /wrest/native/session
446
+ n
447
+ x
448
+ 4
449
+ Http
450
+ n
451
+ x
452
+ 6
453
+ Native
454
+ x
455
+ 9
456
+ const_set
457
+ p
458
+ 25
459
+ I
460
+ 0
461
+ I
462
+ a
463
+ I
464
+ 1a
465
+ I
466
+ 15
467
+ I
468
+ 2d
469
+ I
470
+ 16
471
+ I
472
+ 40
473
+ I
474
+ 17
475
+ I
476
+ 53
477
+ I
478
+ 18
479
+ I
480
+ 66
481
+ I
482
+ 19
483
+ I
484
+ 79
485
+ I
486
+ 1a
487
+ I
488
+ 8c
489
+ I
490
+ 1b
491
+ I
492
+ 9f
493
+ I
494
+ 1c
495
+ I
496
+ b2
497
+ I
498
+ 1d
499
+ I
500
+ c5
501
+ I
502
+ 1e
503
+ I
504
+ d8
505
+ I
506
+ 21
507
+ I
508
+ e8
509
+ x
510
+ 42
511
+ /Users/sidu/Work/wrest/lib/wrest/native.rb
512
+ p
513
+ 0