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,336 @@
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
+ HttpShared
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
+ HttpShared
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
+ 15
168
+ StandardHeaders
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
+ 15
181
+ StandardHeaders
182
+ i
183
+ 42
184
+ 5
185
+ 66
186
+ 65
187
+ 7
188
+ 0
189
+ 7
190
+ 1
191
+ 64
192
+ 49
193
+ 2
194
+ 2
195
+ 15
196
+ 65
197
+ 7
198
+ 3
199
+ 7
200
+ 4
201
+ 64
202
+ 49
203
+ 2
204
+ 2
205
+ 15
206
+ 65
207
+ 7
208
+ 5
209
+ 7
210
+ 6
211
+ 64
212
+ 49
213
+ 2
214
+ 2
215
+ 15
216
+ 65
217
+ 7
218
+ 7
219
+ 7
220
+ 8
221
+ 64
222
+ 49
223
+ 2
224
+ 2
225
+ 11
226
+ I
227
+ 3
228
+ I
229
+ 0
230
+ I
231
+ 0
232
+ I
233
+ 0
234
+ n
235
+ p
236
+ 9
237
+ x
238
+ 10
239
+ Connection
240
+ s
241
+ 10
242
+ connection
243
+ x
244
+ 9
245
+ const_set
246
+ x
247
+ 11
248
+ ContentType
249
+ s
250
+ 12
251
+ content-type
252
+ x
253
+ 13
254
+ ContentLength
255
+ s
256
+ 14
257
+ content-length
258
+ x
259
+ 11
260
+ IfNoneMatch
261
+ s
262
+ 13
263
+ if-none-match
264
+ p
265
+ 9
266
+ I
267
+ 2
268
+ I
269
+ d
270
+ I
271
+ c
272
+ I
273
+ e
274
+ I
275
+ 16
276
+ I
277
+ f
278
+ I
279
+ 20
280
+ I
281
+ 10
282
+ I
283
+ 2a
284
+ x
285
+ 64
286
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_headers.rb
287
+ p
288
+ 0
289
+ x
290
+ 13
291
+ attach_method
292
+ p
293
+ 3
294
+ I
295
+ 2
296
+ I
297
+ c
298
+ I
299
+ 1c
300
+ x
301
+ 64
302
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_headers.rb
303
+ p
304
+ 0
305
+ x
306
+ 13
307
+ attach_method
308
+ p
309
+ 3
310
+ I
311
+ 2
312
+ I
313
+ b
314
+ I
315
+ 1c
316
+ x
317
+ 64
318
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_headers.rb
319
+ p
320
+ 0
321
+ x
322
+ 13
323
+ attach_method
324
+ p
325
+ 3
326
+ I
327
+ 0
328
+ I
329
+ a
330
+ I
331
+ 1c
332
+ x
333
+ 64
334
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_headers.rb
335
+ p
336
+ 0
@@ -0,0 +1,316 @@
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
+ HttpShared
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
+ HttpShared
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
+ 14
168
+ StandardTokens
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
+ 14
181
+ StandardTokens
182
+ i
183
+ 32
184
+ 5
185
+ 66
186
+ 65
187
+ 7
188
+ 0
189
+ 7
190
+ 1
191
+ 64
192
+ 49
193
+ 2
194
+ 2
195
+ 15
196
+ 65
197
+ 7
198
+ 3
199
+ 7
200
+ 4
201
+ 64
202
+ 49
203
+ 2
204
+ 2
205
+ 15
206
+ 65
207
+ 7
208
+ 5
209
+ 7
210
+ 6
211
+ 64
212
+ 49
213
+ 2
214
+ 2
215
+ 11
216
+ I
217
+ 3
218
+ I
219
+ 0
220
+ I
221
+ 0
222
+ I
223
+ 0
224
+ n
225
+ p
226
+ 7
227
+ x
228
+ 5
229
+ Close
230
+ s
231
+ 5
232
+ close
233
+ x
234
+ 9
235
+ const_set
236
+ x
237
+ 9
238
+ KeepAlive
239
+ s
240
+ 10
241
+ keep-alive
242
+ x
243
+ 11
244
+ FormEncoded
245
+ s
246
+ 33
247
+ application/x-www-form-urlencoded
248
+ p
249
+ 7
250
+ I
251
+ 2
252
+ I
253
+ d
254
+ I
255
+ c
256
+ I
257
+ e
258
+ I
259
+ 16
260
+ I
261
+ f
262
+ I
263
+ 20
264
+ x
265
+ 63
266
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
267
+ p
268
+ 0
269
+ x
270
+ 13
271
+ attach_method
272
+ p
273
+ 3
274
+ I
275
+ 2
276
+ I
277
+ c
278
+ I
279
+ 1c
280
+ x
281
+ 63
282
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
283
+ p
284
+ 0
285
+ x
286
+ 13
287
+ attach_method
288
+ p
289
+ 3
290
+ I
291
+ 2
292
+ I
293
+ b
294
+ I
295
+ 1c
296
+ x
297
+ 63
298
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
299
+ p
300
+ 0
301
+ x
302
+ 13
303
+ attach_method
304
+ p
305
+ 3
306
+ I
307
+ 0
308
+ I
309
+ a
310
+ I
311
+ 1c
312
+ x
313
+ 63
314
+ /Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
315
+ p
316
+ 0