wrest 1.0.0.beta1 → 1.0.0.beta2

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 (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
metadata CHANGED
@@ -1,102 +1,120 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrest
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1848230051
4
+ hash: -1848230054
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
- - beta1
11
- version: 1.0.0.beta1
10
+ - beta2
11
+ version: 1.0.0.beta2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Sidu Ponnappa
15
+ - Niranjan Paranjape
15
16
  autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2010-07-28 00:00:00 +05:30
20
+ date: 2010-08-31 00:00:00 +05:30
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
- name: activesupport
24
+ name: rspec
24
25
  prerelease: false
25
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - "="
30
+ - !ruby/object:Gem::Version
31
+ hash: -1967355497
32
+ segments:
33
+ - 2
34
+ - 0
35
+ - 0
36
+ - beta19
37
+ version: 2.0.0.beta19
38
+ type: :development
39
+ version_requirements: *id001
40
+ - !ruby/object:Gem::Dependency
41
+ name: activesupport
42
+ prerelease: false
43
+ requirement: &id002 !ruby/object:Gem::Requirement
26
44
  none: false
27
45
  requirements:
28
46
  - - ">="
29
47
  - !ruby/object:Gem::Version
30
- hash: 7712042
48
+ hash: 7
31
49
  segments:
32
50
  - 3
33
51
  - 0
34
52
  - 0
35
- - rc
36
- version: 3.0.0.rc
53
+ version: 3.0.0
37
54
  type: :runtime
38
- version_requirements: *id001
55
+ version_requirements: *id002
39
56
  - !ruby/object:Gem::Dependency
40
57
  name: json
41
58
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
59
+ requirement: &id003 !ruby/object:Gem::Requirement
43
60
  none: false
44
61
  requirements:
45
62
  - - ">="
46
63
  - !ruby/object:Gem::Version
47
- hash: 3
64
+ hash: 11
48
65
  segments:
49
66
  - 1
50
67
  - 4
51
- - 2
52
- version: 1.4.2
68
+ - 6
69
+ version: 1.4.6
53
70
  type: :runtime
54
- version_requirements: *id002
71
+ version_requirements: *id003
55
72
  description: Wrest is a HTTP and REST client library which allows you to quickly build well encapsulated, object oriented wrappers around any web service.
56
- email: ckponnappa@gmail.com
73
+ email:
74
+ - sidu@c42.in
57
75
  executables:
58
76
  - wrest
59
- - jwrest
60
77
  extensions: []
61
78
 
62
79
  extra_rdoc_files:
63
80
  - README.rdoc
64
81
  files:
65
- - CHANGELOG
66
- - README.rdoc
67
- - Rakefile
68
- - VERSION.yml
69
- - bin/jwrest
70
82
  - bin/wrest
71
83
  - bin/wrest_shell.rb
72
- - examples/delicious.rb
73
- - examples/facebook.rb
74
- - examples/imgur_multipart.rb
75
- - examples/keep_alive.rb
76
- - examples/redirection.rb
77
- - examples/twitter.rb
78
- - examples/twitter_public_timeline.rb
79
- - examples/wow_realm_status.rb
80
- - init.rb
81
- - lib/wrest.rb
82
- - lib/wrest/components.rb
83
- - lib/wrest/components/container.rb
84
84
  - lib/wrest/components/container/alias_accessors.rb
85
+ - lib/wrest/components/container/alias_accessors.rbc
85
86
  - lib/wrest/components/container/typecaster.rb
86
- - lib/wrest/components/mutators.rb
87
+ - lib/wrest/components/container/typecaster.rbc
88
+ - lib/wrest/components/container.rb
89
+ - lib/wrest/components/container.rbc
87
90
  - lib/wrest/components/mutators/base.rb
91
+ - lib/wrest/components/mutators/base.rbc
88
92
  - lib/wrest/components/mutators/camel_to_snake_case.rb
93
+ - lib/wrest/components/mutators/camel_to_snake_case.rbc
89
94
  - lib/wrest/components/mutators/xml_mini_type_caster.rb
95
+ - lib/wrest/components/mutators/xml_mini_type_caster.rbc
90
96
  - lib/wrest/components/mutators/xml_simple_type_caster.rb
91
- - lib/wrest/components/translators.rb
97
+ - lib/wrest/components/mutators/xml_simple_type_caster.rbc
98
+ - lib/wrest/components/mutators.rb
99
+ - lib/wrest/components/mutators.rbc
92
100
  - lib/wrest/components/translators/content_types.rb
101
+ - lib/wrest/components/translators/content_types.rbc
93
102
  - lib/wrest/components/translators/json.rb
103
+ - lib/wrest/components/translators/json.rbc
94
104
  - lib/wrest/components/translators/xml.rb
95
- - lib/wrest/core_ext/hash.rb
105
+ - lib/wrest/components/translators/xml.rbc
106
+ - lib/wrest/components/translators.rb
107
+ - lib/wrest/components/translators.rbc
108
+ - lib/wrest/components.rb
109
+ - lib/wrest/components.rbc
96
110
  - lib/wrest/core_ext/hash/conversions.rb
97
- - lib/wrest/core_ext/string.rb
111
+ - lib/wrest/core_ext/hash/conversions.rbc
112
+ - lib/wrest/core_ext/hash.rb
113
+ - lib/wrest/core_ext/hash.rbc
98
114
  - lib/wrest/core_ext/string/conversions.rb
99
- - lib/wrest/curl.rb
115
+ - lib/wrest/core_ext/string/conversions.rbc
116
+ - lib/wrest/core_ext/string.rb
117
+ - lib/wrest/core_ext/string.rbc
100
118
  - lib/wrest/curl/delete.rb
101
119
  - lib/wrest/curl/get.rb
102
120
  - lib/wrest/curl/options.rb
@@ -105,63 +123,64 @@ files:
105
123
  - lib/wrest/curl/request.rb
106
124
  - lib/wrest/curl/response.rb
107
125
  - lib/wrest/curl/session.rb
126
+ - lib/wrest/curl.rb
127
+ - lib/wrest/curl.rbc
108
128
  - lib/wrest/exceptions.rb
109
- - lib/wrest/http_shared.rb
129
+ - lib/wrest/exceptions.rbc
110
130
  - lib/wrest/http_shared/headers.rb
131
+ - lib/wrest/http_shared/headers.rbc
111
132
  - lib/wrest/http_shared/standard_headers.rb
133
+ - lib/wrest/http_shared/standard_headers.rbc
112
134
  - lib/wrest/http_shared/standard_tokens.rb
135
+ - lib/wrest/http_shared/standard_tokens.rbc
136
+ - lib/wrest/http_shared.rb
137
+ - lib/wrest/http_shared.rbc
113
138
  - lib/wrest/multipart.rb
114
- - lib/wrest/native.rb
115
139
  - lib/wrest/native/connection_factory.rb
140
+ - lib/wrest/native/connection_factory.rbc
116
141
  - lib/wrest/native/delete.rb
142
+ - lib/wrest/native/delete.rbc
117
143
  - lib/wrest/native/get.rb
144
+ - lib/wrest/native/get.rbc
118
145
  - lib/wrest/native/options.rb
146
+ - lib/wrest/native/options.rbc
119
147
  - lib/wrest/native/post.rb
148
+ - lib/wrest/native/post.rbc
120
149
  - lib/wrest/native/post_multipart.rb
121
150
  - lib/wrest/native/put.rb
151
+ - lib/wrest/native/put.rbc
122
152
  - lib/wrest/native/put_multipart.rb
123
153
  - lib/wrest/native/redirection.rb
154
+ - lib/wrest/native/redirection.rbc
124
155
  - lib/wrest/native/request.rb
156
+ - lib/wrest/native/request.rbc
125
157
  - lib/wrest/native/response.rb
158
+ - lib/wrest/native/response.rbc
126
159
  - lib/wrest/native/session.rb
127
- - lib/wrest/resource.rb
160
+ - lib/wrest/native/session.rbc
161
+ - lib/wrest/native.rb
162
+ - lib/wrest/native.rbc
128
163
  - lib/wrest/resource/base.rb
164
+ - lib/wrest/resource/base.rbc
129
165
  - lib/wrest/resource/collection.rb
130
166
  - lib/wrest/resource/state.rb
131
- - lib/wrest/test.rb
167
+ - lib/wrest/resource.rb
168
+ - lib/wrest/resource.rbc
132
169
  - lib/wrest/test/request_patches.rb
170
+ - lib/wrest/test.rb
133
171
  - lib/wrest/uri.rb
172
+ - lib/wrest/uri.rbc
134
173
  - lib/wrest/uri_template.rb
174
+ - lib/wrest/uri_template.rbc
135
175
  - lib/wrest/version.rb
136
- - spec/custom_matchers/custom_matchers.rb
137
- - spec/rcov.opts
138
- - spec/spec.opts.disable
139
- - spec/unit/spec_helper.rb
140
- - spec/unit/wrest/components/attributes_container/alias_accessors_spec.rb
141
- - spec/unit/wrest/components/attributes_container/typecaster_spec.rb
142
- - spec/unit/wrest/components/attributes_container_spec.rb
143
- - spec/unit/wrest/components/mutators/base_spec.rb
144
- - spec/unit/wrest/components/mutators/camel_to_snake_spec.rb
145
- - spec/unit/wrest/components/mutators/xml_mini_type_caster_spec.rb
146
- - spec/unit/wrest/components/mutators/xml_simple_type_caster_spec.rb
147
- - spec/unit/wrest/components/mutators_spec.rb
148
- - spec/unit/wrest/components/translators/xml_spec.rb
149
- - spec/unit/wrest/components/translators_spec.rb
150
- - spec/unit/wrest/core_ext/hash/conversions_spec.rb
151
- - spec/unit/wrest/core_ext/string/conversions_spec.rb
152
- - spec/unit/wrest/curl/request_spec.rb
153
- - spec/unit/wrest/curl/response_spec.rb
154
- - spec/unit/wrest/http/response_spec.rb
155
- - spec/unit/wrest/native/redirection_spec.rb
156
- - spec/unit/wrest/native/request_spec.rb
157
- - spec/unit/wrest/native/response_spec.rb
158
- - spec/unit/wrest/native/session_spec.rb
159
- - spec/unit/wrest/resource/base_spec.rb
160
- - spec/unit/wrest/uri_spec.rb
161
- - spec/unit/wrest/uri_template_spec.rb
162
- - wrest.gemspec
176
+ - lib/wrest/version.rbc
177
+ - lib/wrest.rb
178
+ - lib/wrest.rbc
179
+ - README.rdoc
180
+ - CHANGELOG
181
+ - LICENCE
163
182
  has_rdoc: true
164
- homepage: http://github.com/kaiwren/wrest
183
+ homepage: http://c42.in/open_source
165
184
  licenses: []
166
185
 
167
186
  post_install_message:
@@ -181,43 +200,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
200
  required_rubygems_version: !ruby/object:Gem::Requirement
182
201
  none: false
183
202
  requirements:
184
- - - ">"
203
+ - - ">="
185
204
  - !ruby/object:Gem::Version
186
- hash: 25
205
+ hash: 21
187
206
  segments:
188
207
  - 1
189
208
  - 3
190
- - 1
191
- version: 1.3.1
192
- requirements: []
193
-
209
+ - 7
210
+ version: 1.3.7
211
+ requirements:
212
+ - To use multipart post, install the 'multipart-post' gem.
213
+ - To use curl as the http engine, install the 'patron' gem. This feature is not available (and should be unneccessary) on jruby.
194
214
  rubyforge_project: wrest
195
215
  rubygems_version: 1.3.7
196
216
  signing_key:
197
217
  specification_version: 3
198
- summary: REST client library for Ruby.
199
- test_files:
200
- - spec/custom_matchers/custom_matchers.rb
201
- - spec/unit/spec_helper.rb
202
- - spec/unit/wrest/components/attributes_container/alias_accessors_spec.rb
203
- - spec/unit/wrest/components/attributes_container/typecaster_spec.rb
204
- - spec/unit/wrest/components/attributes_container_spec.rb
205
- - spec/unit/wrest/components/mutators/base_spec.rb
206
- - spec/unit/wrest/components/mutators/camel_to_snake_spec.rb
207
- - spec/unit/wrest/components/mutators/xml_mini_type_caster_spec.rb
208
- - spec/unit/wrest/components/mutators/xml_simple_type_caster_spec.rb
209
- - spec/unit/wrest/components/mutators_spec.rb
210
- - spec/unit/wrest/components/translators/xml_spec.rb
211
- - spec/unit/wrest/components/translators_spec.rb
212
- - spec/unit/wrest/core_ext/hash/conversions_spec.rb
213
- - spec/unit/wrest/core_ext/string/conversions_spec.rb
214
- - spec/unit/wrest/curl/request_spec.rb
215
- - spec/unit/wrest/curl/response_spec.rb
216
- - spec/unit/wrest/http/response_spec.rb
217
- - spec/unit/wrest/native/redirection_spec.rb
218
- - spec/unit/wrest/native/request_spec.rb
219
- - spec/unit/wrest/native/response_spec.rb
220
- - spec/unit/wrest/native/session_spec.rb
221
- - spec/unit/wrest/resource/base_spec.rb
222
- - spec/unit/wrest/uri_spec.rb
223
- - spec/unit/wrest/uri_template_spec.rb
218
+ summary: Wrest is an elegant, object oriented HTTP client library.
219
+ test_files: []
220
+