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,339 @@
|
|
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
|
+
30
|
70
|
+
5
|
71
|
+
66
|
72
|
+
99
|
73
|
+
7
|
74
|
+
0
|
75
|
+
45
|
76
|
+
1
|
77
|
+
2
|
78
|
+
49
|
79
|
+
3
|
80
|
+
2
|
81
|
+
13
|
82
|
+
99
|
83
|
+
12
|
84
|
+
7
|
85
|
+
4
|
86
|
+
12
|
87
|
+
7
|
88
|
+
5
|
89
|
+
12
|
90
|
+
65
|
91
|
+
12
|
92
|
+
49
|
93
|
+
6
|
94
|
+
4
|
95
|
+
15
|
96
|
+
49
|
97
|
+
4
|
98
|
+
0
|
99
|
+
11
|
100
|
+
I
|
101
|
+
6
|
102
|
+
I
|
103
|
+
0
|
104
|
+
I
|
105
|
+
0
|
106
|
+
I
|
107
|
+
0
|
108
|
+
n
|
109
|
+
p
|
110
|
+
7
|
111
|
+
x
|
112
|
+
11
|
113
|
+
Translators
|
114
|
+
x
|
115
|
+
10
|
116
|
+
Components
|
117
|
+
n
|
118
|
+
x
|
119
|
+
17
|
120
|
+
open_module_under
|
121
|
+
x
|
122
|
+
15
|
123
|
+
__module_init__
|
124
|
+
M
|
125
|
+
1
|
126
|
+
n
|
127
|
+
n
|
128
|
+
x
|
129
|
+
11
|
130
|
+
Translators
|
131
|
+
i
|
132
|
+
85
|
133
|
+
5
|
134
|
+
66
|
135
|
+
65
|
136
|
+
7
|
137
|
+
0
|
138
|
+
44
|
139
|
+
43
|
140
|
+
1
|
141
|
+
4
|
142
|
+
4
|
143
|
+
49
|
144
|
+
2
|
145
|
+
1
|
146
|
+
13
|
147
|
+
7
|
148
|
+
3
|
149
|
+
64
|
150
|
+
45
|
151
|
+
4
|
152
|
+
5
|
153
|
+
43
|
154
|
+
6
|
155
|
+
43
|
156
|
+
7
|
157
|
+
43
|
158
|
+
8
|
159
|
+
49
|
160
|
+
9
|
161
|
+
2
|
162
|
+
15
|
163
|
+
13
|
164
|
+
7
|
165
|
+
10
|
166
|
+
64
|
167
|
+
45
|
168
|
+
4
|
169
|
+
11
|
170
|
+
43
|
171
|
+
6
|
172
|
+
43
|
173
|
+
7
|
174
|
+
43
|
175
|
+
8
|
176
|
+
49
|
177
|
+
9
|
178
|
+
2
|
179
|
+
15
|
180
|
+
13
|
181
|
+
7
|
182
|
+
12
|
183
|
+
64
|
184
|
+
45
|
185
|
+
4
|
186
|
+
13
|
187
|
+
43
|
188
|
+
6
|
189
|
+
43
|
190
|
+
7
|
191
|
+
43
|
192
|
+
14
|
193
|
+
49
|
194
|
+
9
|
195
|
+
2
|
196
|
+
15
|
197
|
+
13
|
198
|
+
7
|
199
|
+
15
|
200
|
+
64
|
201
|
+
45
|
202
|
+
4
|
203
|
+
16
|
204
|
+
43
|
205
|
+
6
|
206
|
+
43
|
207
|
+
7
|
208
|
+
43
|
209
|
+
14
|
210
|
+
49
|
211
|
+
9
|
212
|
+
2
|
213
|
+
15
|
214
|
+
49
|
215
|
+
17
|
216
|
+
2
|
217
|
+
11
|
218
|
+
I
|
219
|
+
6
|
220
|
+
I
|
221
|
+
0
|
222
|
+
I
|
223
|
+
0
|
224
|
+
I
|
225
|
+
0
|
226
|
+
n
|
227
|
+
p
|
228
|
+
18
|
229
|
+
x
|
230
|
+
13
|
231
|
+
CONTENT_TYPES
|
232
|
+
x
|
233
|
+
4
|
234
|
+
Hash
|
235
|
+
x
|
236
|
+
16
|
237
|
+
new_from_literal
|
238
|
+
s
|
239
|
+
15
|
240
|
+
application/xml
|
241
|
+
x
|
242
|
+
5
|
243
|
+
Wrest
|
244
|
+
n
|
245
|
+
x
|
246
|
+
10
|
247
|
+
Components
|
248
|
+
x
|
249
|
+
11
|
250
|
+
Translators
|
251
|
+
x
|
252
|
+
3
|
253
|
+
Xml
|
254
|
+
x
|
255
|
+
3
|
256
|
+
[]=
|
257
|
+
s
|
258
|
+
8
|
259
|
+
text/xml
|
260
|
+
n
|
261
|
+
s
|
262
|
+
16
|
263
|
+
application/json
|
264
|
+
n
|
265
|
+
x
|
266
|
+
4
|
267
|
+
Json
|
268
|
+
s
|
269
|
+
15
|
270
|
+
text/javascript
|
271
|
+
n
|
272
|
+
x
|
273
|
+
9
|
274
|
+
const_set
|
275
|
+
p
|
276
|
+
13
|
277
|
+
I
|
278
|
+
2
|
279
|
+
I
|
280
|
+
d
|
281
|
+
I
|
282
|
+
5
|
283
|
+
I
|
284
|
+
12
|
285
|
+
I
|
286
|
+
e
|
287
|
+
I
|
288
|
+
e
|
289
|
+
I
|
290
|
+
1f
|
291
|
+
I
|
292
|
+
f
|
293
|
+
I
|
294
|
+
30
|
295
|
+
I
|
296
|
+
10
|
297
|
+
I
|
298
|
+
41
|
299
|
+
I
|
300
|
+
11
|
301
|
+
I
|
302
|
+
55
|
303
|
+
x
|
304
|
+
72
|
305
|
+
/Users/sidu/Work/wrest/lib/wrest/components/translators/content_types.rb
|
306
|
+
p
|
307
|
+
0
|
308
|
+
x
|
309
|
+
13
|
310
|
+
attach_method
|
311
|
+
p
|
312
|
+
3
|
313
|
+
I
|
314
|
+
2
|
315
|
+
I
|
316
|
+
b
|
317
|
+
I
|
318
|
+
1e
|
319
|
+
x
|
320
|
+
72
|
321
|
+
/Users/sidu/Work/wrest/lib/wrest/components/translators/content_types.rb
|
322
|
+
p
|
323
|
+
0
|
324
|
+
x
|
325
|
+
13
|
326
|
+
attach_method
|
327
|
+
p
|
328
|
+
3
|
329
|
+
I
|
330
|
+
0
|
331
|
+
I
|
332
|
+
a
|
333
|
+
I
|
334
|
+
1c
|
335
|
+
x
|
336
|
+
72
|
337
|
+
/Users/sidu/Work/wrest/lib/wrest/components/translators/content_types.rb
|
338
|
+
p
|
339
|
+
0
|