wrest 4.0.0-universal-java-18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +169 -0
  3. data/LICENCE +7 -0
  4. data/README.md +436 -0
  5. data/bin/wrest +4 -0
  6. data/bin/wrest_shell.rb +23 -0
  7. data/lib/wrest/async_request/event_machine_backend.rb +32 -0
  8. data/lib/wrest/async_request/thread_backend.rb +34 -0
  9. data/lib/wrest/async_request/thread_pool.rb +29 -0
  10. data/lib/wrest/async_request.rb +51 -0
  11. data/lib/wrest/cache_proxy.rb +119 -0
  12. data/lib/wrest/caching/memcached.rb +37 -0
  13. data/lib/wrest/caching/redis.rb +38 -0
  14. data/lib/wrest/caching.rb +57 -0
  15. data/lib/wrest/callback.rb +70 -0
  16. data/lib/wrest/components/container/alias_accessors.rb +70 -0
  17. data/lib/wrest/components/container/typecaster.rb +178 -0
  18. data/lib/wrest/components/container.rb +204 -0
  19. data/lib/wrest/components/mutators/base.rb +65 -0
  20. data/lib/wrest/components/mutators/camel_to_snake_case.rb +26 -0
  21. data/lib/wrest/components/mutators/xml_type_caster.rb +56 -0
  22. data/lib/wrest/components/mutators.rb +42 -0
  23. data/lib/wrest/components/translators/content_types.rb +25 -0
  24. data/lib/wrest/components/translators/json.rb +36 -0
  25. data/lib/wrest/components/translators/txt.rb +35 -0
  26. data/lib/wrest/components/translators/xml/conversions.rb +56 -0
  27. data/lib/wrest/components/translators/xml.rb +77 -0
  28. data/lib/wrest/components/translators.rb +30 -0
  29. data/lib/wrest/components.rb +22 -0
  30. data/lib/wrest/core_ext/hash/conversions.rb +45 -0
  31. data/lib/wrest/core_ext/hash.rb +7 -0
  32. data/lib/wrest/core_ext/string/conversions.rb +38 -0
  33. data/lib/wrest/core_ext/string.rb +7 -0
  34. data/lib/wrest/exceptions.rb +38 -0
  35. data/lib/wrest/hash_with_case_insensitive_access.rb +52 -0
  36. data/lib/wrest/hash_with_indifferent_access.rb +442 -0
  37. data/lib/wrest/http_codes.rb +83 -0
  38. data/lib/wrest/http_shared/headers.rb +345 -0
  39. data/lib/wrest/http_shared/standard_headers.rb +22 -0
  40. data/lib/wrest/http_shared/standard_tokens.rb +21 -0
  41. data/lib/wrest/http_shared.rb +25 -0
  42. data/lib/wrest/multipart.rb +84 -0
  43. data/lib/wrest/native/connection_factory.rb +28 -0
  44. data/lib/wrest/native/delete.rb +27 -0
  45. data/lib/wrest/native/get.rb +83 -0
  46. data/lib/wrest/native/options.rb +27 -0
  47. data/lib/wrest/native/patch.rb +27 -0
  48. data/lib/wrest/native/post.rb +27 -0
  49. data/lib/wrest/native/post_multipart.rb +36 -0
  50. data/lib/wrest/native/put.rb +27 -0
  51. data/lib/wrest/native/put_multipart.rb +36 -0
  52. data/lib/wrest/native/redirection.rb +39 -0
  53. data/lib/wrest/native/request.rb +161 -0
  54. data/lib/wrest/native/response.rb +278 -0
  55. data/lib/wrest/native/session.rb +66 -0
  56. data/lib/wrest/native.rb +36 -0
  57. data/lib/wrest/test/request_patches.rb +12 -0
  58. data/lib/wrest/test.rb +3 -0
  59. data/lib/wrest/uri/builders.rb +48 -0
  60. data/lib/wrest/uri.rb +312 -0
  61. data/lib/wrest/uri_template.rb +63 -0
  62. data/lib/wrest/utils.rb +129 -0
  63. data/lib/wrest/version.rb +14 -0
  64. data/lib/wrest.rb +77 -0
  65. data/lib/wrest_no_ext.rb +7 -0
  66. metadata +286 -0
metadata ADDED
@@ -0,0 +1,286 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wrest
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.0.0
5
+ platform: universal-java-18
6
+ authors:
7
+ - Sidu Ponnappa
8
+ - Niranjan Paranjape
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2022-09-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '6'
20
+ name: activesupport
21
+ prerelease: false
22
+ type: :development
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '6'
28
+ - !ruby/object:Gem::Dependency
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ name: rake
35
+ prerelease: false
36
+ type: :development
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '13.0'
42
+ - !ruby/object:Gem::Dependency
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '6.4'
48
+ name: rdoc
49
+ prerelease: false
50
+ type: :development
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '6.4'
56
+ - !ruby/object:Gem::Dependency
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.11'
62
+ name: rspec
63
+ prerelease: false
64
+ type: :development
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.11'
70
+ - !ruby/object:Gem::Dependency
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.35.0
76
+ name: rubocop
77
+ prerelease: false
78
+ type: :development
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 1.35.0
84
+ - !ruby/object:Gem::Dependency
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ name: rubocop-rake
91
+ prerelease: false
92
+ type: :development
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ name: rubocop-rspec
105
+ prerelease: false
106
+ type: :development
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 2.0.0
118
+ name: sinatra
119
+ prerelease: false
120
+ type: :development
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: 2.0.0
126
+ - !ruby/object:Gem::Dependency
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ name: webrick
133
+ prerelease: false
134
+ type: :development
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.0'
146
+ name: concurrent-ruby
147
+ prerelease: false
148
+ type: :runtime
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '1.0'
154
+ - !ruby/object:Gem::Dependency
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.0'
160
+ name: nokogiri
161
+ prerelease: false
162
+ type: :runtime
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '1.0'
168
+ - !ruby/object:Gem::Dependency
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.9'
174
+ name: jruby-openssl
175
+ prerelease: false
176
+ type: :runtime
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '0.9'
182
+ description: Wrest is a fluent, easy-to-use, object oriented Ruby HTTP/REST client
183
+ library with support for RFC2616 HTTP caching, multiple HTTP backends and async
184
+ calls. It runs on CRuby and JRuby and is in production use at 10 * 🦄 scale.
185
+ email:
186
+ - ckponnappa@gmail.com
187
+ executables:
188
+ - wrest
189
+ extensions: []
190
+ extra_rdoc_files:
191
+ - README.md
192
+ files:
193
+ - CHANGELOG
194
+ - LICENCE
195
+ - README.md
196
+ - bin/wrest
197
+ - bin/wrest_shell.rb
198
+ - lib/wrest.rb
199
+ - lib/wrest/async_request.rb
200
+ - lib/wrest/async_request/event_machine_backend.rb
201
+ - lib/wrest/async_request/thread_backend.rb
202
+ - lib/wrest/async_request/thread_pool.rb
203
+ - lib/wrest/cache_proxy.rb
204
+ - lib/wrest/caching.rb
205
+ - lib/wrest/caching/memcached.rb
206
+ - lib/wrest/caching/redis.rb
207
+ - lib/wrest/callback.rb
208
+ - lib/wrest/components.rb
209
+ - lib/wrest/components/container.rb
210
+ - lib/wrest/components/container/alias_accessors.rb
211
+ - lib/wrest/components/container/typecaster.rb
212
+ - lib/wrest/components/mutators.rb
213
+ - lib/wrest/components/mutators/base.rb
214
+ - lib/wrest/components/mutators/camel_to_snake_case.rb
215
+ - lib/wrest/components/mutators/xml_type_caster.rb
216
+ - lib/wrest/components/translators.rb
217
+ - lib/wrest/components/translators/content_types.rb
218
+ - lib/wrest/components/translators/json.rb
219
+ - lib/wrest/components/translators/txt.rb
220
+ - lib/wrest/components/translators/xml.rb
221
+ - lib/wrest/components/translators/xml/conversions.rb
222
+ - lib/wrest/core_ext/hash.rb
223
+ - lib/wrest/core_ext/hash/conversions.rb
224
+ - lib/wrest/core_ext/string.rb
225
+ - lib/wrest/core_ext/string/conversions.rb
226
+ - lib/wrest/exceptions.rb
227
+ - lib/wrest/hash_with_case_insensitive_access.rb
228
+ - lib/wrest/hash_with_indifferent_access.rb
229
+ - lib/wrest/http_codes.rb
230
+ - lib/wrest/http_shared.rb
231
+ - lib/wrest/http_shared/headers.rb
232
+ - lib/wrest/http_shared/standard_headers.rb
233
+ - lib/wrest/http_shared/standard_tokens.rb
234
+ - lib/wrest/multipart.rb
235
+ - lib/wrest/native.rb
236
+ - lib/wrest/native/connection_factory.rb
237
+ - lib/wrest/native/delete.rb
238
+ - lib/wrest/native/get.rb
239
+ - lib/wrest/native/options.rb
240
+ - lib/wrest/native/patch.rb
241
+ - lib/wrest/native/post.rb
242
+ - lib/wrest/native/post_multipart.rb
243
+ - lib/wrest/native/put.rb
244
+ - lib/wrest/native/put_multipart.rb
245
+ - lib/wrest/native/redirection.rb
246
+ - lib/wrest/native/request.rb
247
+ - lib/wrest/native/response.rb
248
+ - lib/wrest/native/session.rb
249
+ - lib/wrest/test.rb
250
+ - lib/wrest/test/request_patches.rb
251
+ - lib/wrest/uri.rb
252
+ - lib/wrest/uri/builders.rb
253
+ - lib/wrest/uri_template.rb
254
+ - lib/wrest/utils.rb
255
+ - lib/wrest/version.rb
256
+ - lib/wrest_no_ext.rb
257
+ homepage: https://github.com/kaiwren/wrest
258
+ licenses: []
259
+ metadata:
260
+ rubygems_mfa_required: 'true'
261
+ post_install_message:
262
+ rdoc_options:
263
+ - "--charset=UTF-8"
264
+ require_paths:
265
+ - lib
266
+ required_ruby_version: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: 2.6.0
271
+ required_rubygems_version: !ruby/object:Gem::Requirement
272
+ requirements:
273
+ - - ">="
274
+ - !ruby/object:Gem::Version
275
+ version: 3.0.0
276
+ requirements:
277
+ - To use Memcached as caching back-end, install the 'dalli' gem.
278
+ - To use Redis as caching back-end, install the 'redis' gem.
279
+ - To use multipart post, install the 'multipart-post' gem.
280
+ - To use eventmachine as a parallel backend, install the 'eventmachine' gem.
281
+ rubygems_version: 3.2.29
282
+ signing_key:
283
+ specification_version: 4
284
+ summary: Wrest is a fluent, object oriented HTTP client library for CRuby 2.6.x, 3.x.x
285
+ and JRuby 9.3.x.x
286
+ test_files: []