alinta-rest-client 2.2.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.mailmap +10 -0
  4. data/.rspec +2 -0
  5. data/.rubocop +2 -0
  6. data/.rubocop-disables.yml +393 -0
  7. data/.rubocop.yml +8 -0
  8. data/.travis.yml +49 -0
  9. data/AUTHORS +106 -0
  10. data/Gemfile +11 -0
  11. data/LICENSE +21 -0
  12. data/README.md +896 -0
  13. data/Rakefile +140 -0
  14. data/bin/restclient +92 -0
  15. data/history.md +357 -0
  16. data/lib/rest-client.rb +2 -0
  17. data/lib/rest_client.rb +2 -0
  18. data/lib/restclient.rb +183 -0
  19. data/lib/restclient/abstract_response.rb +252 -0
  20. data/lib/restclient/exceptions.rb +244 -0
  21. data/lib/restclient/params_array.rb +72 -0
  22. data/lib/restclient/payload.rb +234 -0
  23. data/lib/restclient/platform.rb +49 -0
  24. data/lib/restclient/raw_response.rb +49 -0
  25. data/lib/restclient/request.rb +875 -0
  26. data/lib/restclient/resource.rb +178 -0
  27. data/lib/restclient/response.rb +90 -0
  28. data/lib/restclient/utils.rb +274 -0
  29. data/lib/restclient/version.rb +8 -0
  30. data/lib/restclient/windows.rb +8 -0
  31. data/lib/restclient/windows/root_certs.rb +105 -0
  32. data/rest-client.gemspec +32 -0
  33. data/rest-client.windows.gemspec +19 -0
  34. data/spec/ISS.jpg +0 -0
  35. data/spec/helpers.rb +54 -0
  36. data/spec/integration/_lib.rb +1 -0
  37. data/spec/integration/capath_digicert/244b5494.0 +19 -0
  38. data/spec/integration/capath_digicert/81b9768f.0 +19 -0
  39. data/spec/integration/capath_digicert/README +8 -0
  40. data/spec/integration/capath_digicert/digicert.crt +19 -0
  41. data/spec/integration/capath_verisign/415660c1.0 +14 -0
  42. data/spec/integration/capath_verisign/7651b327.0 +14 -0
  43. data/spec/integration/capath_verisign/README +8 -0
  44. data/spec/integration/capath_verisign/verisign.crt +14 -0
  45. data/spec/integration/certs/digicert.crt +19 -0
  46. data/spec/integration/certs/verisign.crt +14 -0
  47. data/spec/integration/httpbin_spec.rb +128 -0
  48. data/spec/integration/integration_spec.rb +118 -0
  49. data/spec/integration/request_spec.rb +127 -0
  50. data/spec/spec_helper.rb +29 -0
  51. data/spec/unit/_lib.rb +1 -0
  52. data/spec/unit/abstract_response_spec.rb +145 -0
  53. data/spec/unit/exceptions_spec.rb +108 -0
  54. data/spec/unit/params_array_spec.rb +36 -0
  55. data/spec/unit/payload_spec.rb +295 -0
  56. data/spec/unit/raw_response_spec.rb +22 -0
  57. data/spec/unit/request2_spec.rb +54 -0
  58. data/spec/unit/request_spec.rb +1238 -0
  59. data/spec/unit/resource_spec.rb +134 -0
  60. data/spec/unit/response_spec.rb +252 -0
  61. data/spec/unit/restclient_spec.rb +80 -0
  62. data/spec/unit/utils_spec.rb +147 -0
  63. data/spec/unit/windows/root_certs_spec.rb +22 -0
  64. metadata +318 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: dc35b747588256cbeb5bef6c37f77c23c74be15c2a9b581c8aad30500f8cdf54
4
+ data.tar.gz: dc746bea9d516e39b8cf58fbd20a8a397eeffb5384478e5d85109ee094328957
5
+ SHA512:
6
+ metadata.gz: 8d665cd2b4bb64b12a1ea026e31b6aa93f9d4a2f29124d47f1dc02b0113dd83b65d93aaeb94b7522ad4c4d5994e31d593c5ad52c65edfe1a73654d07c3667884
7
+ data.tar.gz: 15e8039a78865aa2b2217e350a72be8a7d958665f2778cde03944b86fef6c07730d32f4de744f7368ce5bf5aac5e0dd49f7dcdd3d36152e07a63fd2a158ee5ca
@@ -0,0 +1,9 @@
1
+ *.gem
2
+ /Gemfile.lock
3
+ /.bundle
4
+ /vendor
5
+ /doc
6
+ /pkg
7
+ /rdoc
8
+ /.yardoc
9
+ /tmp
@@ -0,0 +1,10 @@
1
+ Blake Mizerany <blake.mizerany@gmail.com>
2
+ Lawrence Leonard Gilbert <larry@l2g.to>
3
+ <larry@l2g.to> <larry@L2G.to>
4
+ Marc-André Cournoyer <macournoyer@gmail.com>
5
+ Matthew Manning <matt.manning@gmail.com>
6
+ Nicholas Wieland <nicholas.wieland@gmail.com>
7
+ Rafael Ssouza <rafael.ssouza@gmail.com>
8
+ Richard Schneeman <richard.schneeman@gmail.com>
9
+ Rick Olson <technoweenie@gmail.com>
10
+ T. Watanabe <wtnabe@wt-srv.watanabe>
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -0,0 +1,2 @@
1
+ --display-cop-names
2
+ --fail-level=W
@@ -0,0 +1,393 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2014-07-08 08:57:44 +0000 using RuboCop version 0.24.1.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # TODO
9
+ # Offense count: 1
10
+ # Cop supports --auto-correct.
11
+ Lint/StringConversionInInterpolation:
12
+ Enabled: false
13
+
14
+ # Tests only
15
+ # Offense count: 16
16
+ # Cop supports --auto-correct.
17
+ Lint/UnusedBlockArgument:
18
+ Enabled: false
19
+
20
+ Security/Eval:
21
+ Exclude:
22
+ - rest-client.windows.gemspec
23
+
24
+ Lint/HandleExceptions:
25
+ Exclude:
26
+ - lib/restclient/utils.rb
27
+
28
+ Lint/UselessAccessModifier:
29
+ Exclude:
30
+ - lib/restclient/windows/root_certs.rb
31
+
32
+ # Offense count: 4
33
+ # Cop supports --auto-correct.
34
+ Style/Alias:
35
+ Enabled: false
36
+
37
+ # TODO
38
+ # Offense count: 3
39
+ # Cop supports --auto-correct.
40
+ Style/AndOr:
41
+ Enabled: false
42
+
43
+ # TODO
44
+ # Offense count: 3
45
+ # Cop supports --auto-correct.
46
+ Style/BlockDelimiters:
47
+ Enabled: false
48
+
49
+ # Offense count: 48
50
+ # Cop supports --auto-correct.
51
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
52
+ Style/BracesAroundHashParameters:
53
+ Enabled: false
54
+
55
+ # Offense count: 1
56
+ Style/ClassAndModuleCamelCase:
57
+ Enabled: false
58
+
59
+ # Offense count: 2
60
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
61
+ Style/ClassAndModuleChildren:
62
+ Enabled: false
63
+
64
+ # TODO?
65
+ # Offense count: 14
66
+ Metrics/AbcSize:
67
+ Max: 75
68
+
69
+ # TODO?
70
+ Metrics/MethodLength:
71
+ Max: 66
72
+
73
+ # TODO?
74
+ # Offense count: 4
75
+ Metrics/PerceivedComplexity:
76
+ Max: 24
77
+
78
+ # Offense count: 1
79
+ # Configuration parameters: CountComments.
80
+ Metrics/ClassLength:
81
+ Max: 411
82
+
83
+ # TODO
84
+ # Offense count: 5
85
+ Style/ClassVars:
86
+ Enabled: false
87
+
88
+ # TODO
89
+ # Offense count: 5
90
+ # Cop supports --auto-correct.
91
+ # Configuration parameters: PreferredMethods.
92
+ Style/CollectionMethods:
93
+ Enabled: false
94
+
95
+ # TODO
96
+ # Offense count: 4
97
+ # Cop supports --auto-correct.
98
+ Style/ColonMethodCall:
99
+ Enabled: false
100
+
101
+ Style/ConditionalAssignment:
102
+ EnforcedStyle: assign_inside_condition
103
+
104
+ # Offense count: 2
105
+ Style/ConstantName:
106
+ Enabled: false
107
+
108
+ # TODO: eh?
109
+ # Offense count: 4
110
+ Metrics/CyclomaticComplexity:
111
+ Max: 22
112
+
113
+ Style/PreferredHashMethods:
114
+ EnforcedStyle: verbose
115
+
116
+ # TODO: docs
117
+ # Offense count: 17
118
+ Style/Documentation:
119
+ Enabled: false
120
+
121
+ # Offense count: 9
122
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
123
+ Layout/DotPosition:
124
+ Enabled: false
125
+
126
+ # Offense count: 1
127
+ Style/DoubleNegation:
128
+ Enabled: false
129
+
130
+ # TODO
131
+ # Offense count: 2
132
+ Style/EachWithObject:
133
+ Enabled: false
134
+
135
+ # Offense count: 5
136
+ # Cop supports --auto-correct.
137
+ Layout/EmptyLines:
138
+ Enabled: false
139
+
140
+ # Offense count: 11
141
+ # Cop supports --auto-correct.
142
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
143
+ Layout/EmptyLinesAroundClassBody:
144
+ Enabled: false
145
+
146
+ # Offense count: 1
147
+ # Cop supports --auto-correct.
148
+ Layout/EmptyLinesAroundMethodBody:
149
+ Enabled: false
150
+
151
+ # Offense count: 9
152
+ # Cop supports --auto-correct.
153
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
154
+ Layout/EmptyLinesAroundModuleBody:
155
+ Enabled: false
156
+
157
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
158
+ Enabled: false
159
+
160
+ # Offense count: 31
161
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
162
+ Style/Encoding:
163
+ Enabled: false
164
+
165
+ # TODO: exclude
166
+ # Offense count: 1
167
+ # Configuration parameters: Exclude.
168
+ Style/FileName:
169
+ Enabled: false
170
+
171
+ # Offense count: 3
172
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
173
+ Style/FormatString:
174
+ Enabled: false
175
+
176
+ # TODO: enable
177
+ # Cop supports --auto-correct.
178
+ # Configuration parameters: SupportedStyles.
179
+ Style/HashSyntax:
180
+ Enabled: false
181
+
182
+ # NOTABUG
183
+ # Offense count: 8
184
+ # Configuration parameters: MaxLineLength.
185
+ Style/IfUnlessModifier:
186
+ Enabled: false
187
+
188
+ # TODO: configure
189
+ # Offense count: 6
190
+ # Cop supports --auto-correct.
191
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
192
+ Layout/IndentHash:
193
+ Enabled: false
194
+
195
+ # NOTABUG
196
+ # Offense count: 19
197
+ Style/Lambda:
198
+ Enabled: false
199
+
200
+ # TODO
201
+ # Offense count: 14
202
+ # Cop supports --auto-correct.
203
+ Layout/LeadingCommentSpace:
204
+ Enabled: false
205
+
206
+ Metrics/LineLength:
207
+ Exclude:
208
+ - 'spec/**/*.rb'
209
+ - 'Rakefile'
210
+
211
+ # TODO
212
+ # Offense count: 28
213
+ # Cop supports --auto-correct.
214
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
215
+ Style/MethodDefParentheses:
216
+ Enabled: false
217
+
218
+ # TODO
219
+ # Offense count: 1
220
+ Style/ModuleFunction:
221
+ Enabled: false
222
+
223
+ # Offense count: 4
224
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
225
+ Style/Next:
226
+ Enabled: false
227
+
228
+ # Offense count: 1
229
+ # Cop supports --auto-correct.
230
+ # Configuration parameters: IncludeSemanticChanges.
231
+ Style/NonNilCheck:
232
+ Enabled: false
233
+
234
+ # TODO: exclude
235
+ # Offense count: 1
236
+ # Cop supports --auto-correct.
237
+ Style/Not:
238
+ Enabled: false
239
+
240
+ # Offense count: 2
241
+ # Cop supports --auto-correct.
242
+ Style/NumericLiterals:
243
+ MinDigits: 11
244
+
245
+ # TODO?
246
+ # Offense count: 1
247
+ # Cop supports --auto-correct.
248
+ # Configuration parameters: AllowSafeAssignment.
249
+ Style/ParenthesesAroundCondition:
250
+ Enabled: false
251
+
252
+ # Offense count: 8
253
+ # Cop supports --auto-correct.
254
+ # Configuration parameters: PreferredDelimiters.
255
+ Style/PercentLiteralDelimiters:
256
+ PreferredDelimiters:
257
+ '%w': '{}'
258
+ '%W': '{}'
259
+ '%Q': '{}'
260
+ Exclude:
261
+ - 'bin/restclient'
262
+
263
+ # Offense count: 3
264
+ # Configuration parameters: NamePrefixBlacklist.
265
+ Style/PredicateName:
266
+ Enabled: false
267
+
268
+ # TODO: configure
269
+ # Offense count: 3
270
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
271
+ Style/RaiseArgs:
272
+ Enabled: false
273
+
274
+ # TODO
275
+ # Offense count: 1
276
+ # Cop supports --auto-correct.
277
+ Style/RedundantBegin:
278
+ Enabled: false
279
+
280
+ # Offense count: 2
281
+ # Cop supports --auto-correct.
282
+ Style/RedundantSelf:
283
+ Enabled: false
284
+
285
+ # Offense count: 1
286
+ Style/RescueModifier:
287
+ Enabled: false
288
+ Exclude:
289
+ - 'bin/restclient'
290
+
291
+ # TODO: configure
292
+ # Offense count: 12
293
+ # Cop supports --auto-correct.
294
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
295
+ Style/SignalException:
296
+ Enabled: false
297
+
298
+ # TODO
299
+ # Offense count: 2
300
+ # Cop supports --auto-correct.
301
+ Layout/SpaceAfterNot:
302
+ Enabled: false
303
+
304
+ # Offense count: 19
305
+ # Cop supports --auto-correct.
306
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
307
+ Layout/SpaceAroundEqualsInParameterDefault:
308
+ Enabled: false
309
+
310
+ # Offense count: 20
311
+ # Cop supports --auto-correct.
312
+ Layout/SpaceAroundOperators:
313
+ Enabled: false
314
+
315
+ # Offense count: 9
316
+ # Cop supports --auto-correct.
317
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
318
+ Layout/SpaceBeforeBlockBraces:
319
+ Enabled: false
320
+
321
+ Layout/EmptyLinesAroundBlockBody:
322
+ Enabled: false
323
+
324
+ # Offense count: 37
325
+ # Cop supports --auto-correct.
326
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
327
+ Layout/SpaceInsideBlockBraces:
328
+ Enabled: false
329
+
330
+ # Offense count: 6
331
+ # Cop supports --auto-correct.
332
+ Layout/SpaceInsideBrackets:
333
+ Enabled: false
334
+
335
+ # Offense count: 181
336
+ # Cop supports --auto-correct.
337
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
338
+ Layout/SpaceInsideHashLiteralBraces:
339
+ Enabled: false
340
+
341
+ # TODO
342
+ # Offense count: 9
343
+ # Cop supports --auto-correct.
344
+ Layout/SpaceInsideParens:
345
+ Enabled: false
346
+
347
+ # Offense count: 414
348
+ # Cop supports --auto-correct.
349
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
350
+ Style/StringLiterals:
351
+ Enabled: false
352
+
353
+ Style/TrailingCommaInLiteral:
354
+ EnforcedStyleForMultiline: comma
355
+ Style/TrailingCommaInArguments:
356
+ Enabled: false
357
+
358
+ # TODO: configure
359
+ # Offense count: 1
360
+ # Cop supports --auto-correct.
361
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
362
+ Style/TrivialAccessors:
363
+ Enabled: false
364
+ Exclude: ['lib/restclient/payload.rb']
365
+
366
+ # TODO?
367
+ # Offense count: 3
368
+ Style/UnlessElse:
369
+ Enabled: false
370
+
371
+ # TODO?
372
+ # Offense count: 6
373
+ # Cop supports --auto-correct.
374
+ Style/UnneededPercentQ:
375
+ Enabled: false
376
+
377
+ # Offense count: 5
378
+ # Cop supports --auto-correct.
379
+ Style/WordArray:
380
+ MinSize: 4
381
+
382
+ # TODO?
383
+ # Offense count: 5
384
+ # Cop supports --auto-correct.
385
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
386
+ Style/BarePercentLiterals:
387
+ Enabled: false
388
+
389
+
390
+ Lint/RescueWithoutErrorClass:
391
+ Exclude:
392
+ - 'bin/restclient'
393
+ - 'lib/restclient/windows/root_certs.rb'
@@ -0,0 +1,8 @@
1
+ ---
2
+ inherit_from:
3
+ - .rubocop-disables.yml
4
+
5
+ AllCops:
6
+ Exclude:
7
+ - 'tmp/*.rb'
8
+ - 'vendor/**/*'
@@ -0,0 +1,49 @@
1
+ # Available ruby versions: http://rubies.travis-ci.org/
2
+
3
+ language: ruby
4
+
5
+ os:
6
+ - linux
7
+ - osx
8
+
9
+ rvm:
10
+ - "2.0.0"
11
+ - "2.1" # latest 2.1.x
12
+ - "2.2.5"
13
+ - "2.3.3"
14
+ - "2.4.0"
15
+ - "ruby-head"
16
+ - "jruby-9.0.5.0"
17
+ - "jruby-9.1.5.0"
18
+ - "jruby-head"
19
+
20
+ cache: bundler
21
+
22
+ script:
23
+ - bundle exec rake test
24
+ - bundle exec rake rubocop
25
+
26
+ branches:
27
+ except:
28
+ - "readme-edits"
29
+
30
+ before_install:
31
+ - gem update --system
32
+ # bundler installation needed for jruby-head
33
+ # https://github.com/travis-ci/travis-ci/issues/5861
34
+ - gem install bundler
35
+
36
+ # Travis OS X support is pretty janky. These are some hacks to include tests
37
+ # only on versions that actually work.
38
+ # (last tested: 2016-11)
39
+ matrix:
40
+ # exclude: {}
41
+ # include: {}
42
+
43
+ allow_failures:
44
+ - rvm: 'ruby-head'
45
+
46
+ # return results as soon as mandatory versions are done
47
+ fast_finish: true
48
+
49
+ sudo: false