wrest 1.0.0.beta2-universal-java-1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. data/CHANGELOG +59 -0
  2. data/LICENCE +7 -0
  3. data/README.rdoc +127 -0
  4. data/bin/wrest +3 -0
  5. data/bin/wrest_shell.rb +21 -0
  6. data/lib/wrest.rb +101 -0
  7. data/lib/wrest.rbc +1900 -0
  8. data/lib/wrest/components.rb +20 -0
  9. data/lib/wrest/components.rbc +217 -0
  10. data/lib/wrest/components/container.rb +185 -0
  11. data/lib/wrest/components/container.rbc +2466 -0
  12. data/lib/wrest/components/container/alias_accessors.rb +66 -0
  13. data/lib/wrest/components/container/alias_accessors.rbc +905 -0
  14. data/lib/wrest/components/container/typecaster.rb +127 -0
  15. data/lib/wrest/components/container/typecaster.rbc +1985 -0
  16. data/lib/wrest/components/mutators.rb +39 -0
  17. data/lib/wrest/components/mutators.rbc +650 -0
  18. data/lib/wrest/components/mutators/base.rb +56 -0
  19. data/lib/wrest/components/mutators/base.rbc +702 -0
  20. data/lib/wrest/components/mutators/camel_to_snake_case.rb +22 -0
  21. data/lib/wrest/components/mutators/camel_to_snake_case.rbc +360 -0
  22. data/lib/wrest/components/mutators/xml_mini_type_caster.rb +43 -0
  23. data/lib/wrest/components/mutators/xml_mini_type_caster.rbc +679 -0
  24. data/lib/wrest/components/mutators/xml_simple_type_caster.rb +37 -0
  25. data/lib/wrest/components/mutators/xml_simple_type_caster.rbc +559 -0
  26. data/lib/wrest/components/translators.rb +28 -0
  27. data/lib/wrest/components/translators.rbc +517 -0
  28. data/lib/wrest/components/translators/content_types.rb +20 -0
  29. data/lib/wrest/components/translators/content_types.rbc +339 -0
  30. data/lib/wrest/components/translators/json.rb +25 -0
  31. data/lib/wrest/components/translators/json.rbc +462 -0
  32. data/lib/wrest/components/translators/xml.rb +24 -0
  33. data/lib/wrest/components/translators/xml.rbc +457 -0
  34. data/lib/wrest/core_ext/hash.rb +5 -0
  35. data/lib/wrest/core_ext/hash.rbc +182 -0
  36. data/lib/wrest/core_ext/hash/conversions.rb +44 -0
  37. data/lib/wrest/core_ext/hash/conversions.rbc +501 -0
  38. data/lib/wrest/core_ext/string.rb +5 -0
  39. data/lib/wrest/core_ext/string.rbc +182 -0
  40. data/lib/wrest/core_ext/string/conversions.rb +23 -0
  41. data/lib/wrest/core_ext/string/conversions.rbc +471 -0
  42. data/lib/wrest/curl.rb +49 -0
  43. data/lib/wrest/curl.rbc +704 -0
  44. data/lib/wrest/curl/delete.rb +23 -0
  45. data/lib/wrest/curl/get.rb +23 -0
  46. data/lib/wrest/curl/options.rb +16 -0
  47. data/lib/wrest/curl/post.rb +23 -0
  48. data/lib/wrest/curl/put.rb +23 -0
  49. data/lib/wrest/curl/request.rb +97 -0
  50. data/lib/wrest/curl/response.rb +71 -0
  51. data/lib/wrest/curl/session.rb +57 -0
  52. data/lib/wrest/exceptions.rb +33 -0
  53. data/lib/wrest/exceptions.rbc +312 -0
  54. data/lib/wrest/http_shared.rb +23 -0
  55. data/lib/wrest/http_shared.rbc +279 -0
  56. data/lib/wrest/http_shared/headers.rb +343 -0
  57. data/lib/wrest/http_shared/headers.rbc +353 -0
  58. data/lib/wrest/http_shared/standard_headers.rb +21 -0
  59. data/lib/wrest/http_shared/standard_headers.rbc +336 -0
  60. data/lib/wrest/http_shared/standard_tokens.rb +18 -0
  61. data/lib/wrest/http_shared/standard_tokens.rbc +316 -0
  62. data/lib/wrest/multipart.rb +52 -0
  63. data/lib/wrest/native.rb +33 -0
  64. data/lib/wrest/native.rbc +513 -0
  65. data/lib/wrest/native/connection_factory.rb +23 -0
  66. data/lib/wrest/native/connection_factory.rbc +445 -0
  67. data/lib/wrest/native/delete.rb +23 -0
  68. data/lib/wrest/native/delete.rbc +371 -0
  69. data/lib/wrest/native/get.rb +51 -0
  70. data/lib/wrest/native/get.rbc +855 -0
  71. data/lib/wrest/native/options.rb +23 -0
  72. data/lib/wrest/native/options.rbc +347 -0
  73. data/lib/wrest/native/post.rb +23 -0
  74. data/lib/wrest/native/post.rbc +388 -0
  75. data/lib/wrest/native/post_multipart.rb +32 -0
  76. data/lib/wrest/native/put.rb +23 -0
  77. data/lib/wrest/native/put.rbc +388 -0
  78. data/lib/wrest/native/put_multipart.rb +32 -0
  79. data/lib/wrest/native/redirection.rb +38 -0
  80. data/lib/wrest/native/redirection.rbc +520 -0
  81. data/lib/wrest/native/request.rb +94 -0
  82. data/lib/wrest/native/request.rbc +1675 -0
  83. data/lib/wrest/native/response.rb +120 -0
  84. data/lib/wrest/native/response.rbc +2150 -0
  85. data/lib/wrest/native/session.rb +57 -0
  86. data/lib/wrest/native/session.rbc +1372 -0
  87. data/lib/wrest/resource.rb +18 -0
  88. data/lib/wrest/resource.rbc +163 -0
  89. data/lib/wrest/resource/base.rb +99 -0
  90. data/lib/wrest/resource/base.rbc +2115 -0
  91. data/lib/wrest/resource/collection.rb +12 -0
  92. data/lib/wrest/resource/state.rb +6 -0
  93. data/lib/wrest/test.rb +1 -0
  94. data/lib/wrest/test/request_patches.rb +5 -0
  95. data/lib/wrest/uri.rb +160 -0
  96. data/lib/wrest/uri.rbc +2599 -0
  97. data/lib/wrest/uri_template.rb +49 -0
  98. data/lib/wrest/uri_template.rbc +505 -0
  99. data/lib/wrest/version.rb +23 -0
  100. data/lib/wrest/version.rbc +372 -0
  101. metadata +231 -0
@@ -0,0 +1,23 @@
1
+ # Copyright 2009 Sidu Ponnappa
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ # Unless required by applicable law or agreed to in writing, software distributed under the License
7
+ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8
+ # See the License for the specific language governing permissions and limitations under the License.
9
+
10
+ module Wrest
11
+ module VERSION
12
+ unless defined? MAJOR
13
+ MAJOR = 1
14
+ MINOR = 0
15
+ TINY = 0
16
+ BUILD = 'beta2'
17
+
18
+ STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
19
+
20
+ SUMMARY = "wrest version #{STRING}"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,372 @@
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
+ VERSION
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
+ VERSION
125
+ i
126
+ 116
127
+ 5
128
+ 66
129
+ 26
130
+ 93
131
+ 0
132
+ 15
133
+ 29
134
+ 17
135
+ 0
136
+ 7
137
+ 0
138
+ 98
139
+ 1
140
+ 1
141
+ 30
142
+ 8
143
+ 23
144
+ 25
145
+ 92
146
+ 0
147
+ 27
148
+ 8
149
+ 28
150
+ 15
151
+ 7
152
+ 2
153
+ 8
154
+ 29
155
+ 1
156
+ 9
157
+ 34
158
+ 1
159
+ 8
160
+ 115
161
+ 65
162
+ 7
163
+ 0
164
+ 79
165
+ 49
166
+ 3
167
+ 2
168
+ 15
169
+ 65
170
+ 7
171
+ 4
172
+ 78
173
+ 49
174
+ 3
175
+ 2
176
+ 15
177
+ 65
178
+ 7
179
+ 5
180
+ 78
181
+ 49
182
+ 3
183
+ 2
184
+ 15
185
+ 65
186
+ 7
187
+ 6
188
+ 7
189
+ 7
190
+ 64
191
+ 49
192
+ 3
193
+ 2
194
+ 15
195
+ 65
196
+ 7
197
+ 8
198
+ 45
199
+ 0
200
+ 9
201
+ 45
202
+ 4
203
+ 10
204
+ 45
205
+ 5
206
+ 11
207
+ 45
208
+ 6
209
+ 12
210
+ 35
211
+ 4
212
+ 49
213
+ 13
214
+ 0
215
+ 7
216
+ 14
217
+ 64
218
+ 49
219
+ 15
220
+ 1
221
+ 49
222
+ 3
223
+ 2
224
+ 15
225
+ 65
226
+ 7
227
+ 16
228
+ 7
229
+ 17
230
+ 45
231
+ 8
232
+ 18
233
+ 47
234
+ 49
235
+ 19
236
+ 0
237
+ 63
238
+ 2
239
+ 49
240
+ 3
241
+ 2
242
+ 11
243
+ I
244
+ 7
245
+ I
246
+ 0
247
+ I
248
+ 0
249
+ I
250
+ 0
251
+ n
252
+ p
253
+ 20
254
+ x
255
+ 5
256
+ MAJOR
257
+ x
258
+ 16
259
+ vm_const_defined
260
+ s
261
+ 8
262
+ constant
263
+ x
264
+ 9
265
+ const_set
266
+ x
267
+ 5
268
+ MINOR
269
+ x
270
+ 4
271
+ TINY
272
+ x
273
+ 5
274
+ BUILD
275
+ s
276
+ 5
277
+ beta2
278
+ x
279
+ 6
280
+ STRING
281
+ n
282
+ n
283
+ n
284
+ n
285
+ x
286
+ 7
287
+ compact
288
+ s
289
+ 1
290
+ .
291
+ x
292
+ 4
293
+ join
294
+ x
295
+ 7
296
+ SUMMARY
297
+ s
298
+ 14
299
+ wrest version
300
+ n
301
+ x
302
+ 4
303
+ to_s
304
+ p
305
+ 15
306
+ I
307
+ 2
308
+ I
309
+ c
310
+ I
311
+ 22
312
+ I
313
+ d
314
+ I
315
+ 2a
316
+ I
317
+ e
318
+ I
319
+ 32
320
+ I
321
+ f
322
+ I
323
+ 3a
324
+ I
325
+ 10
326
+ I
327
+ 44
328
+ I
329
+ 12
330
+ I
331
+ 62
332
+ I
333
+ 14
334
+ I
335
+ 74
336
+ x
337
+ 43
338
+ /Users/sidu/Work/wrest/lib/wrest/version.rb
339
+ p
340
+ 0
341
+ x
342
+ 13
343
+ attach_method
344
+ p
345
+ 3
346
+ I
347
+ 2
348
+ I
349
+ b
350
+ I
351
+ 1c
352
+ x
353
+ 43
354
+ /Users/sidu/Work/wrest/lib/wrest/version.rb
355
+ p
356
+ 0
357
+ x
358
+ 13
359
+ attach_method
360
+ p
361
+ 3
362
+ I
363
+ 0
364
+ I
365
+ a
366
+ I
367
+ 1c
368
+ x
369
+ 43
370
+ /Users/sidu/Work/wrest/lib/wrest/version.rb
371
+ p
372
+ 0
metadata ADDED
@@ -0,0 +1,231 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wrest
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ - beta2
10
+ version: 1.0.0.beta2
11
+ platform: universal-java-1.6
12
+ authors:
13
+ - Sidu Ponnappa
14
+ - Niranjan Paranjape
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2010-08-31 00:00:00 +05:30
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: rspec
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - "="
29
+ - !ruby/object:Gem::Version
30
+ segments:
31
+ - 2
32
+ - 0
33
+ - 0
34
+ - beta19
35
+ version: 2.0.0.beta19
36
+ type: :development
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: activesupport
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ segments:
47
+ - 3
48
+ - 0
49
+ - 0
50
+ version: 3.0.0
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: json-jruby
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ segments:
62
+ - 1
63
+ - 4
64
+ - 3
65
+ - 1
66
+ version: 1.4.3.1
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: nokogiri
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ segments:
78
+ - 1
79
+ - 4
80
+ - 3
81
+ - 1
82
+ version: 1.4.3.1
83
+ type: :runtime
84
+ version_requirements: *id004
85
+ description: Wrest is a HTTP and REST client library which allows you to quickly build well encapsulated, object oriented wrappers around any web service.
86
+ email:
87
+ - sidu@c42.in
88
+ executables:
89
+ - wrest
90
+ extensions: []
91
+
92
+ extra_rdoc_files:
93
+ - README.rdoc
94
+ files:
95
+ - bin/wrest
96
+ - bin/wrest_shell.rb
97
+ - lib/wrest.rb
98
+ - lib/wrest.rbc
99
+ - lib/wrest/components.rb
100
+ - lib/wrest/components.rbc
101
+ - lib/wrest/curl.rb
102
+ - lib/wrest/curl.rbc
103
+ - lib/wrest/exceptions.rb
104
+ - lib/wrest/exceptions.rbc
105
+ - lib/wrest/http_shared.rb
106
+ - lib/wrest/http_shared.rbc
107
+ - lib/wrest/multipart.rb
108
+ - lib/wrest/native.rb
109
+ - lib/wrest/native.rbc
110
+ - lib/wrest/resource.rb
111
+ - lib/wrest/resource.rbc
112
+ - lib/wrest/test.rb
113
+ - lib/wrest/uri.rb
114
+ - lib/wrest/uri.rbc
115
+ - lib/wrest/uri_template.rb
116
+ - lib/wrest/uri_template.rbc
117
+ - lib/wrest/version.rb
118
+ - lib/wrest/version.rbc
119
+ - lib/wrest/components/container.rb
120
+ - lib/wrest/components/container.rbc
121
+ - lib/wrest/components/mutators.rb
122
+ - lib/wrest/components/mutators.rbc
123
+ - lib/wrest/components/translators.rb
124
+ - lib/wrest/components/translators.rbc
125
+ - lib/wrest/components/container/alias_accessors.rb
126
+ - lib/wrest/components/container/alias_accessors.rbc
127
+ - lib/wrest/components/container/typecaster.rb
128
+ - lib/wrest/components/container/typecaster.rbc
129
+ - lib/wrest/components/mutators/base.rb
130
+ - lib/wrest/components/mutators/base.rbc
131
+ - lib/wrest/components/mutators/camel_to_snake_case.rb
132
+ - lib/wrest/components/mutators/camel_to_snake_case.rbc
133
+ - lib/wrest/components/mutators/xml_mini_type_caster.rb
134
+ - lib/wrest/components/mutators/xml_mini_type_caster.rbc
135
+ - lib/wrest/components/mutators/xml_simple_type_caster.rb
136
+ - lib/wrest/components/mutators/xml_simple_type_caster.rbc
137
+ - lib/wrest/components/translators/content_types.rb
138
+ - lib/wrest/components/translators/content_types.rbc
139
+ - lib/wrest/components/translators/json.rb
140
+ - lib/wrest/components/translators/json.rbc
141
+ - lib/wrest/components/translators/xml.rb
142
+ - lib/wrest/components/translators/xml.rbc
143
+ - lib/wrest/core_ext/hash.rb
144
+ - lib/wrest/core_ext/hash.rbc
145
+ - lib/wrest/core_ext/string.rb
146
+ - lib/wrest/core_ext/string.rbc
147
+ - lib/wrest/core_ext/hash/conversions.rb
148
+ - lib/wrest/core_ext/hash/conversions.rbc
149
+ - lib/wrest/core_ext/string/conversions.rb
150
+ - lib/wrest/core_ext/string/conversions.rbc
151
+ - lib/wrest/curl/delete.rb
152
+ - lib/wrest/curl/get.rb
153
+ - lib/wrest/curl/options.rb
154
+ - lib/wrest/curl/post.rb
155
+ - lib/wrest/curl/put.rb
156
+ - lib/wrest/curl/request.rb
157
+ - lib/wrest/curl/response.rb
158
+ - lib/wrest/curl/session.rb
159
+ - lib/wrest/http_shared/headers.rb
160
+ - lib/wrest/http_shared/headers.rbc
161
+ - lib/wrest/http_shared/standard_headers.rb
162
+ - lib/wrest/http_shared/standard_headers.rbc
163
+ - lib/wrest/http_shared/standard_tokens.rb
164
+ - lib/wrest/http_shared/standard_tokens.rbc
165
+ - lib/wrest/native/connection_factory.rb
166
+ - lib/wrest/native/connection_factory.rbc
167
+ - lib/wrest/native/delete.rb
168
+ - lib/wrest/native/delete.rbc
169
+ - lib/wrest/native/get.rb
170
+ - lib/wrest/native/get.rbc
171
+ - lib/wrest/native/options.rb
172
+ - lib/wrest/native/options.rbc
173
+ - lib/wrest/native/post.rb
174
+ - lib/wrest/native/post.rbc
175
+ - lib/wrest/native/post_multipart.rb
176
+ - lib/wrest/native/put.rb
177
+ - lib/wrest/native/put.rbc
178
+ - lib/wrest/native/put_multipart.rb
179
+ - lib/wrest/native/redirection.rb
180
+ - lib/wrest/native/redirection.rbc
181
+ - lib/wrest/native/request.rb
182
+ - lib/wrest/native/request.rbc
183
+ - lib/wrest/native/response.rb
184
+ - lib/wrest/native/response.rbc
185
+ - lib/wrest/native/session.rb
186
+ - lib/wrest/native/session.rbc
187
+ - lib/wrest/resource/base.rb
188
+ - lib/wrest/resource/base.rbc
189
+ - lib/wrest/resource/collection.rb
190
+ - lib/wrest/resource/state.rb
191
+ - lib/wrest/test/request_patches.rb
192
+ - README.rdoc
193
+ - CHANGELOG
194
+ - LICENCE
195
+ has_rdoc: true
196
+ homepage: http://c42.in/open_source
197
+ licenses: []
198
+
199
+ post_install_message:
200
+ rdoc_options:
201
+ - --charset=UTF-8
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ segments:
210
+ - 0
211
+ version: "0"
212
+ required_rubygems_version: !ruby/object:Gem::Requirement
213
+ none: false
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ segments:
218
+ - 1
219
+ - 3
220
+ - 7
221
+ version: 1.3.7
222
+ requirements:
223
+ - To use multipart post, install the 'multipart-post' gem.
224
+ - To use curl as the http engine, install the 'patron' gem. This feature is not available (and should be unneccessary) on jruby.
225
+ rubyforge_project: wrest
226
+ rubygems_version: 1.3.7
227
+ signing_key:
228
+ specification_version: 3
229
+ summary: Wrest is an elegant, object oriented HTTP client library.
230
+ test_files: []
231
+