rest-man 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/multi-matrix-test.yml +35 -0
  3. data/.github/workflows/single-matrix-test.yml +27 -0
  4. data/.gitignore +13 -0
  5. data/.mailmap +10 -0
  6. data/.rspec +2 -0
  7. data/.rubocop +2 -0
  8. data/.rubocop-disables.yml +386 -0
  9. data/.rubocop.yml +8 -0
  10. data/AUTHORS +106 -0
  11. data/CHANGELOG.md +7 -0
  12. data/Gemfile +11 -0
  13. data/LICENSE +21 -0
  14. data/README.md +843 -0
  15. data/Rakefile +140 -0
  16. data/exe/restman +92 -0
  17. data/lib/rest-man.rb +2 -0
  18. data/lib/rest_man.rb +2 -0
  19. data/lib/restman/abstract_response.rb +252 -0
  20. data/lib/restman/exceptions.rb +238 -0
  21. data/lib/restman/params_array.rb +72 -0
  22. data/lib/restman/payload.rb +234 -0
  23. data/lib/restman/platform.rb +49 -0
  24. data/lib/restman/raw_response.rb +49 -0
  25. data/lib/restman/request.rb +859 -0
  26. data/lib/restman/resource.rb +178 -0
  27. data/lib/restman/response.rb +90 -0
  28. data/lib/restman/utils.rb +274 -0
  29. data/lib/restman/version.rb +8 -0
  30. data/lib/restman/windows/root_certs.rb +105 -0
  31. data/lib/restman/windows.rb +8 -0
  32. data/lib/restman.rb +183 -0
  33. data/matrixeval.yml +73 -0
  34. data/rest-man.gemspec +41 -0
  35. data/spec/ISS.jpg +0 -0
  36. data/spec/cassettes/request_httpbin_with_basic_auth.yml +83 -0
  37. data/spec/cassettes/request_httpbin_with_cookies.yml +49 -0
  38. data/spec/cassettes/request_httpbin_with_cookies_2.yml +94 -0
  39. data/spec/cassettes/request_httpbin_with_cookies_3.yml +49 -0
  40. data/spec/cassettes/request_httpbin_with_encoding_deflate.yml +45 -0
  41. data/spec/cassettes/request_httpbin_with_encoding_deflate_and_accept_headers.yml +44 -0
  42. data/spec/cassettes/request_httpbin_with_encoding_gzip.yml +45 -0
  43. data/spec/cassettes/request_httpbin_with_encoding_gzip_and_accept_headers.yml +44 -0
  44. data/spec/cassettes/request_httpbin_with_user_agent.yml +44 -0
  45. data/spec/cassettes/request_mozilla_org.yml +151 -0
  46. data/spec/cassettes/request_mozilla_org_callback_returns_true.yml +178 -0
  47. data/spec/cassettes/request_mozilla_org_with_system_cert.yml +152 -0
  48. data/spec/cassettes/request_mozilla_org_with_system_cert_and_callback.yml +151 -0
  49. data/spec/helpers.rb +54 -0
  50. data/spec/integration/_lib.rb +1 -0
  51. data/spec/integration/capath_digicert/README +8 -0
  52. data/spec/integration/capath_digicert/ce5e74ef.0 +1 -0
  53. data/spec/integration/capath_digicert/digicert.crt +20 -0
  54. data/spec/integration/capath_digicert/update +1 -0
  55. data/spec/integration/capath_verisign/415660c1.0 +14 -0
  56. data/spec/integration/capath_verisign/7651b327.0 +14 -0
  57. data/spec/integration/capath_verisign/README +8 -0
  58. data/spec/integration/capath_verisign/verisign.crt +14 -0
  59. data/spec/integration/certs/digicert.crt +20 -0
  60. data/spec/integration/certs/verisign.crt +14 -0
  61. data/spec/integration/httpbin_spec.rb +137 -0
  62. data/spec/integration/integration_spec.rb +118 -0
  63. data/spec/integration/request_spec.rb +134 -0
  64. data/spec/spec_helper.rb +40 -0
  65. data/spec/unit/_lib.rb +1 -0
  66. data/spec/unit/abstract_response_spec.rb +145 -0
  67. data/spec/unit/exceptions_spec.rb +108 -0
  68. data/spec/unit/params_array_spec.rb +36 -0
  69. data/spec/unit/payload_spec.rb +295 -0
  70. data/spec/unit/raw_response_spec.rb +22 -0
  71. data/spec/unit/request2_spec.rb +54 -0
  72. data/spec/unit/request_spec.rb +1205 -0
  73. data/spec/unit/resource_spec.rb +134 -0
  74. data/spec/unit/response_spec.rb +252 -0
  75. data/spec/unit/restclient_spec.rb +80 -0
  76. data/spec/unit/utils_spec.rb +147 -0
  77. data/spec/unit/windows/root_certs_spec.rb +22 -0
  78. metadata +336 -0
metadata ADDED
@@ -0,0 +1,336 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rest-man
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Hopper Gee
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: webmock
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3.10'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '3.0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '3.10'
47
+ - !ruby/object:Gem::Dependency
48
+ name: pry
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: pry-doc
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rdoc
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: 2.4.2
82
+ - - "<"
83
+ - !ruby/object:Gem::Version
84
+ version: '7.0'
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: 2.4.2
92
+ - - "<"
93
+ - !ruby/object:Gem::Version
94
+ version: '7.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '0.49'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '0.49'
109
+ - !ruby/object:Gem::Dependency
110
+ name: http-accept
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 1.7.0
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '3.0'
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 1.7.0
126
+ - - "<"
127
+ - !ruby/object:Gem::Version
128
+ version: '3.0'
129
+ - !ruby/object:Gem::Dependency
130
+ name: http-cookie
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: 1.0.2
136
+ - - "<"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.0'
139
+ type: :runtime
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 1.0.2
146
+ - - "<"
147
+ - !ruby/object:Gem::Version
148
+ version: '2.0'
149
+ - !ruby/object:Gem::Dependency
150
+ name: mime-types
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '1.16'
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: '4.0'
159
+ type: :runtime
160
+ prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '1.16'
166
+ - - "<"
167
+ - !ruby/object:Gem::Version
168
+ version: '4.0'
169
+ - !ruby/object:Gem::Dependency
170
+ name: netrc
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - "~>"
174
+ - !ruby/object:Gem::Version
175
+ version: '0.8'
176
+ type: :runtime
177
+ prerelease: false
178
+ version_requirements: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - "~>"
181
+ - !ruby/object:Gem::Version
182
+ version: '0.8'
183
+ description: 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework
184
+ style of specifying actions: get, put, post, delete.'
185
+ email: hopper.gee@hey.com
186
+ executables:
187
+ - restman
188
+ extensions: []
189
+ extra_rdoc_files:
190
+ - README.md
191
+ - CHANGELOG.md
192
+ files:
193
+ - ".github/workflows/multi-matrix-test.yml"
194
+ - ".github/workflows/single-matrix-test.yml"
195
+ - ".gitignore"
196
+ - ".mailmap"
197
+ - ".rspec"
198
+ - ".rubocop"
199
+ - ".rubocop-disables.yml"
200
+ - ".rubocop.yml"
201
+ - AUTHORS
202
+ - CHANGELOG.md
203
+ - Gemfile
204
+ - LICENSE
205
+ - README.md
206
+ - Rakefile
207
+ - exe/restman
208
+ - lib/rest-man.rb
209
+ - lib/rest_man.rb
210
+ - lib/restman.rb
211
+ - lib/restman/abstract_response.rb
212
+ - lib/restman/exceptions.rb
213
+ - lib/restman/params_array.rb
214
+ - lib/restman/payload.rb
215
+ - lib/restman/platform.rb
216
+ - lib/restman/raw_response.rb
217
+ - lib/restman/request.rb
218
+ - lib/restman/resource.rb
219
+ - lib/restman/response.rb
220
+ - lib/restman/utils.rb
221
+ - lib/restman/version.rb
222
+ - lib/restman/windows.rb
223
+ - lib/restman/windows/root_certs.rb
224
+ - matrixeval.yml
225
+ - rest-man.gemspec
226
+ - spec/ISS.jpg
227
+ - spec/cassettes/request_httpbin_with_basic_auth.yml
228
+ - spec/cassettes/request_httpbin_with_cookies.yml
229
+ - spec/cassettes/request_httpbin_with_cookies_2.yml
230
+ - spec/cassettes/request_httpbin_with_cookies_3.yml
231
+ - spec/cassettes/request_httpbin_with_encoding_deflate.yml
232
+ - spec/cassettes/request_httpbin_with_encoding_deflate_and_accept_headers.yml
233
+ - spec/cassettes/request_httpbin_with_encoding_gzip.yml
234
+ - spec/cassettes/request_httpbin_with_encoding_gzip_and_accept_headers.yml
235
+ - spec/cassettes/request_httpbin_with_user_agent.yml
236
+ - spec/cassettes/request_mozilla_org.yml
237
+ - spec/cassettes/request_mozilla_org_callback_returns_true.yml
238
+ - spec/cassettes/request_mozilla_org_with_system_cert.yml
239
+ - spec/cassettes/request_mozilla_org_with_system_cert_and_callback.yml
240
+ - spec/helpers.rb
241
+ - spec/integration/_lib.rb
242
+ - spec/integration/capath_digicert/README
243
+ - spec/integration/capath_digicert/ce5e74ef.0
244
+ - spec/integration/capath_digicert/digicert.crt
245
+ - spec/integration/capath_digicert/update
246
+ - spec/integration/capath_verisign/415660c1.0
247
+ - spec/integration/capath_verisign/7651b327.0
248
+ - spec/integration/capath_verisign/README
249
+ - spec/integration/capath_verisign/verisign.crt
250
+ - spec/integration/certs/digicert.crt
251
+ - spec/integration/certs/verisign.crt
252
+ - spec/integration/httpbin_spec.rb
253
+ - spec/integration/integration_spec.rb
254
+ - spec/integration/request_spec.rb
255
+ - spec/spec_helper.rb
256
+ - spec/unit/_lib.rb
257
+ - spec/unit/abstract_response_spec.rb
258
+ - spec/unit/exceptions_spec.rb
259
+ - spec/unit/params_array_spec.rb
260
+ - spec/unit/payload_spec.rb
261
+ - spec/unit/raw_response_spec.rb
262
+ - spec/unit/request2_spec.rb
263
+ - spec/unit/request_spec.rb
264
+ - spec/unit/resource_spec.rb
265
+ - spec/unit/response_spec.rb
266
+ - spec/unit/restclient_spec.rb
267
+ - spec/unit/utils_spec.rb
268
+ - spec/unit/windows/root_certs_spec.rb
269
+ homepage: https://github.com/rest-man/rest-man
270
+ licenses:
271
+ - MIT
272
+ metadata: {}
273
+ post_install_message:
274
+ rdoc_options: []
275
+ require_paths:
276
+ - lib
277
+ required_ruby_version: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: 2.0.0
282
+ required_rubygems_version: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - ">="
285
+ - !ruby/object:Gem::Version
286
+ version: '0'
287
+ requirements: []
288
+ rubygems_version: 3.1.6
289
+ signing_key:
290
+ specification_version: 4
291
+ summary: Simple HTTP and REST client for Ruby, inspired by microframework syntax for
292
+ specifying actions.
293
+ test_files:
294
+ - spec/ISS.jpg
295
+ - spec/cassettes/request_httpbin_with_basic_auth.yml
296
+ - spec/cassettes/request_httpbin_with_cookies.yml
297
+ - spec/cassettes/request_httpbin_with_cookies_2.yml
298
+ - spec/cassettes/request_httpbin_with_cookies_3.yml
299
+ - spec/cassettes/request_httpbin_with_encoding_deflate.yml
300
+ - spec/cassettes/request_httpbin_with_encoding_deflate_and_accept_headers.yml
301
+ - spec/cassettes/request_httpbin_with_encoding_gzip.yml
302
+ - spec/cassettes/request_httpbin_with_encoding_gzip_and_accept_headers.yml
303
+ - spec/cassettes/request_httpbin_with_user_agent.yml
304
+ - spec/cassettes/request_mozilla_org.yml
305
+ - spec/cassettes/request_mozilla_org_callback_returns_true.yml
306
+ - spec/cassettes/request_mozilla_org_with_system_cert.yml
307
+ - spec/cassettes/request_mozilla_org_with_system_cert_and_callback.yml
308
+ - spec/helpers.rb
309
+ - spec/integration/_lib.rb
310
+ - spec/integration/capath_digicert/README
311
+ - spec/integration/capath_digicert/ce5e74ef.0
312
+ - spec/integration/capath_digicert/digicert.crt
313
+ - spec/integration/capath_digicert/update
314
+ - spec/integration/capath_verisign/415660c1.0
315
+ - spec/integration/capath_verisign/7651b327.0
316
+ - spec/integration/capath_verisign/README
317
+ - spec/integration/capath_verisign/verisign.crt
318
+ - spec/integration/certs/digicert.crt
319
+ - spec/integration/certs/verisign.crt
320
+ - spec/integration/httpbin_spec.rb
321
+ - spec/integration/integration_spec.rb
322
+ - spec/integration/request_spec.rb
323
+ - spec/spec_helper.rb
324
+ - spec/unit/_lib.rb
325
+ - spec/unit/abstract_response_spec.rb
326
+ - spec/unit/exceptions_spec.rb
327
+ - spec/unit/params_array_spec.rb
328
+ - spec/unit/payload_spec.rb
329
+ - spec/unit/raw_response_spec.rb
330
+ - spec/unit/request2_spec.rb
331
+ - spec/unit/request_spec.rb
332
+ - spec/unit/resource_spec.rb
333
+ - spec/unit/response_spec.rb
334
+ - spec/unit/restclient_spec.rb
335
+ - spec/unit/utils_spec.rb
336
+ - spec/unit/windows/root_certs_spec.rb