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,388 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 30
13
+ 99
14
+ 7
15
+ 0
16
+ 45
17
+ 1
18
+ 2
19
+ 49
20
+ 3
21
+ 2
22
+ 13
23
+ 99
24
+ 12
25
+ 7
26
+ 4
27
+ 12
28
+ 7
29
+ 5
30
+ 12
31
+ 65
32
+ 12
33
+ 49
34
+ 6
35
+ 4
36
+ 15
37
+ 49
38
+ 4
39
+ 0
40
+ 15
41
+ 2
42
+ 11
43
+ I
44
+ 6
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ I
50
+ 0
51
+ n
52
+ p
53
+ 7
54
+ x
55
+ 6
56
+ Native
57
+ x
58
+ 5
59
+ Wrest
60
+ n
61
+ x
62
+ 17
63
+ open_module_under
64
+ x
65
+ 15
66
+ __module_init__
67
+ M
68
+ 1
69
+ n
70
+ n
71
+ x
72
+ 6
73
+ Native
74
+ i
75
+ 31
76
+ 5
77
+ 66
78
+ 99
79
+ 7
80
+ 0
81
+ 45
82
+ 1
83
+ 2
84
+ 65
85
+ 49
86
+ 3
87
+ 3
88
+ 13
89
+ 99
90
+ 12
91
+ 7
92
+ 4
93
+ 12
94
+ 7
95
+ 5
96
+ 12
97
+ 65
98
+ 12
99
+ 49
100
+ 6
101
+ 4
102
+ 15
103
+ 49
104
+ 4
105
+ 0
106
+ 11
107
+ I
108
+ 6
109
+ I
110
+ 0
111
+ I
112
+ 0
113
+ I
114
+ 0
115
+ n
116
+ p
117
+ 7
118
+ x
119
+ 3
120
+ Put
121
+ x
122
+ 7
123
+ Request
124
+ n
125
+ x
126
+ 10
127
+ open_class
128
+ x
129
+ 14
130
+ __class_init__
131
+ M
132
+ 1
133
+ n
134
+ n
135
+ x
136
+ 3
137
+ Put
138
+ i
139
+ 16
140
+ 5
141
+ 66
142
+ 99
143
+ 7
144
+ 0
145
+ 7
146
+ 1
147
+ 65
148
+ 67
149
+ 49
150
+ 2
151
+ 0
152
+ 49
153
+ 3
154
+ 4
155
+ 11
156
+ I
157
+ 5
158
+ I
159
+ 0
160
+ I
161
+ 0
162
+ I
163
+ 0
164
+ n
165
+ p
166
+ 4
167
+ x
168
+ 10
169
+ initialize
170
+ M
171
+ 1
172
+ n
173
+ n
174
+ x
175
+ 10
176
+ initialize
177
+ i
178
+ 74
179
+ 23
180
+ 1
181
+ 10
182
+ 10
183
+ 7
184
+ 0
185
+ 64
186
+ 19
187
+ 1
188
+ 15
189
+ 23
190
+ 2
191
+ 10
192
+ 24
193
+ 44
194
+ 43
195
+ 1
196
+ 78
197
+ 49
198
+ 2
199
+ 1
200
+ 19
201
+ 2
202
+ 15
203
+ 23
204
+ 3
205
+ 10
206
+ 38
207
+ 44
208
+ 43
209
+ 1
210
+ 78
211
+ 49
212
+ 2
213
+ 1
214
+ 19
215
+ 3
216
+ 15
217
+ 23
218
+ 4
219
+ 10
220
+ 52
221
+ 44
222
+ 43
223
+ 1
224
+ 78
225
+ 49
226
+ 2
227
+ 1
228
+ 19
229
+ 4
230
+ 15
231
+ 20
232
+ 0
233
+ 45
234
+ 3
235
+ 4
236
+ 43
237
+ 5
238
+ 43
239
+ 6
240
+ 20
241
+ 3
242
+ 20
243
+ 1
244
+ 20
245
+ 2
246
+ 20
247
+ 4
248
+ 54
249
+ 52
250
+ 7
251
+ 6
252
+ 11
253
+ I
254
+ c
255
+ I
256
+ 5
257
+ I
258
+ 1
259
+ I
260
+ 5
261
+ n
262
+ p
263
+ 8
264
+ s
265
+ 0
266
+
267
+ x
268
+ 4
269
+ Hash
270
+ x
271
+ 16
272
+ new_from_literal
273
+ x
274
+ 3
275
+ Net
276
+ n
277
+ x
278
+ 4
279
+ HTTP
280
+ x
281
+ 3
282
+ Put
283
+ x
284
+ 10
285
+ initialize
286
+ p
287
+ 15
288
+ I
289
+ 0
290
+ I
291
+ c
292
+ I
293
+ 34
294
+ I
295
+ e
296
+ I
297
+ 36
298
+ I
299
+ f
300
+ I
301
+ 3d
302
+ I
303
+ 10
304
+ I
305
+ 3f
306
+ I
307
+ 11
308
+ I
309
+ 41
310
+ I
311
+ 12
312
+ I
313
+ 43
314
+ I
315
+ 13
316
+ I
317
+ 4a
318
+ x
319
+ 46
320
+ /Users/sidu/Work/wrest/lib/wrest/native/put.rb
321
+ p
322
+ 5
323
+ x
324
+ 9
325
+ wrest_uri
326
+ x
327
+ 4
328
+ body
329
+ x
330
+ 7
331
+ headers
332
+ x
333
+ 10
334
+ parameters
335
+ x
336
+ 7
337
+ options
338
+ x
339
+ 17
340
+ method_visibility
341
+ x
342
+ 15
343
+ add_defn_method
344
+ p
345
+ 3
346
+ I
347
+ 2
348
+ I
349
+ c
350
+ I
351
+ 10
352
+ x
353
+ 46
354
+ /Users/sidu/Work/wrest/lib/wrest/native/put.rb
355
+ p
356
+ 0
357
+ x
358
+ 13
359
+ attach_method
360
+ p
361
+ 3
362
+ I
363
+ 2
364
+ I
365
+ b
366
+ I
367
+ 1f
368
+ x
369
+ 46
370
+ /Users/sidu/Work/wrest/lib/wrest/native/put.rb
371
+ p
372
+ 0
373
+ x
374
+ 13
375
+ attach_method
376
+ p
377
+ 3
378
+ I
379
+ 0
380
+ I
381
+ a
382
+ I
383
+ 1e
384
+ x
385
+ 46
386
+ /Users/sidu/Work/wrest/lib/wrest/native/put.rb
387
+ p
388
+ 0