http 5.2.0 → 6.0.2

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 (128) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +110 -13
  4. data/http.gemspec +38 -35
  5. data/lib/http/base64.rb +22 -0
  6. data/lib/http/chainable/helpers.rb +62 -0
  7. data/lib/http/chainable/verbs.rb +136 -0
  8. data/lib/http/chainable.rb +249 -129
  9. data/lib/http/client.rb +158 -127
  10. data/lib/http/connection/internals.rb +141 -0
  11. data/lib/http/connection.rb +128 -97
  12. data/lib/http/content_type.rb +61 -6
  13. data/lib/http/errors.rb +41 -1
  14. data/lib/http/feature.rb +67 -6
  15. data/lib/http/features/auto_deflate.rb +124 -17
  16. data/lib/http/features/auto_inflate.rb +38 -15
  17. data/lib/http/features/caching/entry.rb +178 -0
  18. data/lib/http/features/caching/in_memory_store.rb +63 -0
  19. data/lib/http/features/caching.rb +216 -0
  20. data/lib/http/features/digest_auth.rb +234 -0
  21. data/lib/http/features/instrumentation.rb +97 -17
  22. data/lib/http/features/logging.rb +183 -5
  23. data/lib/http/features/normalize_uri.rb +17 -0
  24. data/lib/http/features/raise_error.rb +37 -0
  25. data/lib/http/form_data/composite_io.rb +106 -0
  26. data/lib/http/form_data/file.rb +95 -0
  27. data/lib/http/form_data/multipart/param.rb +62 -0
  28. data/lib/http/form_data/multipart.rb +106 -0
  29. data/lib/http/form_data/part.rb +52 -0
  30. data/lib/http/form_data/readable.rb +58 -0
  31. data/lib/http/form_data/urlencoded.rb +175 -0
  32. data/lib/http/form_data/version.rb +8 -0
  33. data/lib/http/form_data.rb +102 -0
  34. data/lib/http/headers/known.rb +3 -0
  35. data/lib/http/headers/normalizer.rb +50 -0
  36. data/lib/http/headers.rb +185 -92
  37. data/lib/http/mime_type/adapter.rb +24 -9
  38. data/lib/http/mime_type/json.rb +19 -4
  39. data/lib/http/mime_type.rb +21 -3
  40. data/lib/http/options/definitions.rb +189 -0
  41. data/lib/http/options.rb +172 -125
  42. data/lib/http/redirector.rb +80 -75
  43. data/lib/http/request/body.rb +87 -6
  44. data/lib/http/request/builder.rb +184 -0
  45. data/lib/http/request/proxy.rb +83 -0
  46. data/lib/http/request/writer.rb +78 -17
  47. data/lib/http/request.rb +216 -99
  48. data/lib/http/response/body.rb +103 -18
  49. data/lib/http/response/inflater.rb +35 -7
  50. data/lib/http/response/parser.rb +98 -4
  51. data/lib/http/response/status/reasons.rb +2 -4
  52. data/lib/http/response/status.rb +141 -31
  53. data/lib/http/response.rb +219 -61
  54. data/lib/http/retriable/delay_calculator.rb +91 -0
  55. data/lib/http/retriable/errors.rb +35 -0
  56. data/lib/http/retriable/performer.rb +197 -0
  57. data/lib/http/session.rb +280 -0
  58. data/lib/http/timeout/global.rb +147 -34
  59. data/lib/http/timeout/null.rb +155 -9
  60. data/lib/http/timeout/per_operation.rb +139 -18
  61. data/lib/http/uri/normalizer.rb +82 -0
  62. data/lib/http/uri/parsing.rb +182 -0
  63. data/lib/http/uri.rb +289 -124
  64. data/lib/http/version.rb +2 -1
  65. data/lib/http.rb +11 -1
  66. data/sig/http.rbs +1619 -0
  67. metadata +42 -175
  68. data/.github/workflows/ci.yml +0 -67
  69. data/.gitignore +0 -15
  70. data/.rspec +0 -1
  71. data/.rubocop/layout.yml +0 -8
  72. data/.rubocop/metrics.yml +0 -4
  73. data/.rubocop/style.yml +0 -32
  74. data/.rubocop.yml +0 -11
  75. data/.rubocop_todo.yml +0 -206
  76. data/.yardopts +0 -2
  77. data/CHANGELOG.md +0 -41
  78. data/CHANGES_OLD.md +0 -1002
  79. data/CONTRIBUTING.md +0 -26
  80. data/Gemfile +0 -50
  81. data/Guardfile +0 -18
  82. data/Rakefile +0 -64
  83. data/SECURITY.md +0 -17
  84. data/lib/http/headers/mixin.rb +0 -34
  85. data/logo.png +0 -0
  86. data/spec/lib/http/client_spec.rb +0 -556
  87. data/spec/lib/http/connection_spec.rb +0 -88
  88. data/spec/lib/http/content_type_spec.rb +0 -47
  89. data/spec/lib/http/features/auto_deflate_spec.rb +0 -77
  90. data/spec/lib/http/features/auto_inflate_spec.rb +0 -86
  91. data/spec/lib/http/features/instrumentation_spec.rb +0 -81
  92. data/spec/lib/http/features/logging_spec.rb +0 -65
  93. data/spec/lib/http/headers/mixin_spec.rb +0 -36
  94. data/spec/lib/http/headers_spec.rb +0 -527
  95. data/spec/lib/http/options/body_spec.rb +0 -15
  96. data/spec/lib/http/options/features_spec.rb +0 -33
  97. data/spec/lib/http/options/form_spec.rb +0 -15
  98. data/spec/lib/http/options/headers_spec.rb +0 -24
  99. data/spec/lib/http/options/json_spec.rb +0 -15
  100. data/spec/lib/http/options/merge_spec.rb +0 -68
  101. data/spec/lib/http/options/new_spec.rb +0 -30
  102. data/spec/lib/http/options/proxy_spec.rb +0 -20
  103. data/spec/lib/http/options_spec.rb +0 -13
  104. data/spec/lib/http/redirector_spec.rb +0 -529
  105. data/spec/lib/http/request/body_spec.rb +0 -211
  106. data/spec/lib/http/request/writer_spec.rb +0 -121
  107. data/spec/lib/http/request_spec.rb +0 -234
  108. data/spec/lib/http/response/body_spec.rb +0 -85
  109. data/spec/lib/http/response/parser_spec.rb +0 -74
  110. data/spec/lib/http/response/status_spec.rb +0 -253
  111. data/spec/lib/http/response_spec.rb +0 -262
  112. data/spec/lib/http/uri/normalizer_spec.rb +0 -95
  113. data/spec/lib/http/uri_spec.rb +0 -71
  114. data/spec/lib/http_spec.rb +0 -506
  115. data/spec/regression_specs.rb +0 -24
  116. data/spec/spec_helper.rb +0 -88
  117. data/spec/support/black_hole.rb +0 -13
  118. data/spec/support/capture_warning.rb +0 -10
  119. data/spec/support/dummy_server/servlet.rb +0 -190
  120. data/spec/support/dummy_server.rb +0 -43
  121. data/spec/support/fakeio.rb +0 -21
  122. data/spec/support/fuubar.rb +0 -21
  123. data/spec/support/http_handling_shared.rb +0 -190
  124. data/spec/support/proxy_server.rb +0 -39
  125. data/spec/support/servers/config.rb +0 -11
  126. data/spec/support/servers/runner.rb +0 -19
  127. data/spec/support/simplecov.rb +0 -19
  128. data/spec/support/ssl_helper.rb +0 -104
metadata CHANGED
@@ -1,46 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
- - Erik Michaels-Ober
8
+ - Erik Berlin
9
9
  - Alexey V. Zapparov
10
10
  - Zachary Anker
11
- autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2024-02-05 00:00:00.000000000 Z
13
+ date: 1980-01-02 00:00:00.000000000 Z
15
14
  dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: addressable
18
- requirement: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - "~>"
21
- - !ruby/object:Gem::Version
22
- version: '2.8'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2.8'
30
- - !ruby/object:Gem::Dependency
31
- name: base64
32
- requirement: !ruby/object:Gem::Requirement
33
- requirements:
34
- - - "~>"
35
- - !ruby/object:Gem::Version
36
- version: '0.1'
37
- type: :runtime
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '0.1'
44
15
  - !ruby/object:Gem::Dependency
45
16
  name: http-cookie
46
17
  requirement: !ruby/object:Gem::Requirement
@@ -56,47 +27,19 @@ dependencies:
56
27
  - !ruby/object:Gem::Version
57
28
  version: '1.0'
58
29
  - !ruby/object:Gem::Dependency
59
- name: http-form_data
30
+ name: llhttp
60
31
  requirement: !ruby/object:Gem::Requirement
61
32
  requirements:
62
33
  - - "~>"
63
34
  - !ruby/object:Gem::Version
64
- version: '2.2'
35
+ version: 0.6.1
65
36
  type: :runtime
66
37
  prerelease: false
67
38
  version_requirements: !ruby/object:Gem::Requirement
68
39
  requirements:
69
40
  - - "~>"
70
41
  - !ruby/object:Gem::Version
71
- version: '2.2'
72
- - !ruby/object:Gem::Dependency
73
- name: llhttp-ffi
74
- requirement: !ruby/object:Gem::Requirement
75
- requirements:
76
- - - "~>"
77
- - !ruby/object:Gem::Version
78
- version: 0.5.0
79
- type: :runtime
80
- prerelease: false
81
- version_requirements: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: 0.5.0
86
- - !ruby/object:Gem::Dependency
87
- name: bundler
88
- requirement: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - "~>"
91
- - !ruby/object:Gem::Version
92
- version: '2.0'
93
- type: :development
94
- prerelease: false
95
- version_requirements: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '2.0'
42
+ version: 0.6.1
100
43
  description: An easy-to-use client library for making requests from Ruby. It uses
101
44
  a simple method chaining system for building requests, similar to Python's Requests.
102
45
  email:
@@ -105,47 +48,52 @@ executables: []
105
48
  extensions: []
106
49
  extra_rdoc_files: []
107
50
  files:
108
- - ".github/workflows/ci.yml"
109
- - ".gitignore"
110
- - ".rspec"
111
- - ".rubocop.yml"
112
- - ".rubocop/layout.yml"
113
- - ".rubocop/metrics.yml"
114
- - ".rubocop/style.yml"
115
- - ".rubocop_todo.yml"
116
- - ".yardopts"
117
- - CHANGELOG.md
118
- - CHANGES_OLD.md
119
- - CONTRIBUTING.md
120
- - Gemfile
121
- - Guardfile
122
51
  - LICENSE.txt
123
52
  - README.md
124
- - Rakefile
125
- - SECURITY.md
126
53
  - http.gemspec
127
54
  - lib/http.rb
55
+ - lib/http/base64.rb
128
56
  - lib/http/chainable.rb
57
+ - lib/http/chainable/helpers.rb
58
+ - lib/http/chainable/verbs.rb
129
59
  - lib/http/client.rb
130
60
  - lib/http/connection.rb
61
+ - lib/http/connection/internals.rb
131
62
  - lib/http/content_type.rb
132
63
  - lib/http/errors.rb
133
64
  - lib/http/feature.rb
134
65
  - lib/http/features/auto_deflate.rb
135
66
  - lib/http/features/auto_inflate.rb
67
+ - lib/http/features/caching.rb
68
+ - lib/http/features/caching/entry.rb
69
+ - lib/http/features/caching/in_memory_store.rb
70
+ - lib/http/features/digest_auth.rb
136
71
  - lib/http/features/instrumentation.rb
137
72
  - lib/http/features/logging.rb
138
73
  - lib/http/features/normalize_uri.rb
74
+ - lib/http/features/raise_error.rb
75
+ - lib/http/form_data.rb
76
+ - lib/http/form_data/composite_io.rb
77
+ - lib/http/form_data/file.rb
78
+ - lib/http/form_data/multipart.rb
79
+ - lib/http/form_data/multipart/param.rb
80
+ - lib/http/form_data/part.rb
81
+ - lib/http/form_data/readable.rb
82
+ - lib/http/form_data/urlencoded.rb
83
+ - lib/http/form_data/version.rb
139
84
  - lib/http/headers.rb
140
85
  - lib/http/headers/known.rb
141
- - lib/http/headers/mixin.rb
86
+ - lib/http/headers/normalizer.rb
142
87
  - lib/http/mime_type.rb
143
88
  - lib/http/mime_type/adapter.rb
144
89
  - lib/http/mime_type/json.rb
145
90
  - lib/http/options.rb
91
+ - lib/http/options/definitions.rb
146
92
  - lib/http/redirector.rb
147
93
  - lib/http/request.rb
148
94
  - lib/http/request/body.rb
95
+ - lib/http/request/builder.rb
96
+ - lib/http/request/proxy.rb
149
97
  - lib/http/request/writer.rb
150
98
  - lib/http/response.rb
151
99
  - lib/http/response/body.rb
@@ -153,65 +101,28 @@ files:
153
101
  - lib/http/response/parser.rb
154
102
  - lib/http/response/status.rb
155
103
  - lib/http/response/status/reasons.rb
104
+ - lib/http/retriable/delay_calculator.rb
105
+ - lib/http/retriable/errors.rb
106
+ - lib/http/retriable/performer.rb
107
+ - lib/http/session.rb
156
108
  - lib/http/timeout/global.rb
157
109
  - lib/http/timeout/null.rb
158
110
  - lib/http/timeout/per_operation.rb
159
111
  - lib/http/uri.rb
112
+ - lib/http/uri/normalizer.rb
113
+ - lib/http/uri/parsing.rb
160
114
  - lib/http/version.rb
161
- - logo.png
162
- - spec/lib/http/client_spec.rb
163
- - spec/lib/http/connection_spec.rb
164
- - spec/lib/http/content_type_spec.rb
165
- - spec/lib/http/features/auto_deflate_spec.rb
166
- - spec/lib/http/features/auto_inflate_spec.rb
167
- - spec/lib/http/features/instrumentation_spec.rb
168
- - spec/lib/http/features/logging_spec.rb
169
- - spec/lib/http/headers/mixin_spec.rb
170
- - spec/lib/http/headers_spec.rb
171
- - spec/lib/http/options/body_spec.rb
172
- - spec/lib/http/options/features_spec.rb
173
- - spec/lib/http/options/form_spec.rb
174
- - spec/lib/http/options/headers_spec.rb
175
- - spec/lib/http/options/json_spec.rb
176
- - spec/lib/http/options/merge_spec.rb
177
- - spec/lib/http/options/new_spec.rb
178
- - spec/lib/http/options/proxy_spec.rb
179
- - spec/lib/http/options_spec.rb
180
- - spec/lib/http/redirector_spec.rb
181
- - spec/lib/http/request/body_spec.rb
182
- - spec/lib/http/request/writer_spec.rb
183
- - spec/lib/http/request_spec.rb
184
- - spec/lib/http/response/body_spec.rb
185
- - spec/lib/http/response/parser_spec.rb
186
- - spec/lib/http/response/status_spec.rb
187
- - spec/lib/http/response_spec.rb
188
- - spec/lib/http/uri/normalizer_spec.rb
189
- - spec/lib/http/uri_spec.rb
190
- - spec/lib/http_spec.rb
191
- - spec/regression_specs.rb
192
- - spec/spec_helper.rb
193
- - spec/support/black_hole.rb
194
- - spec/support/capture_warning.rb
195
- - spec/support/dummy_server.rb
196
- - spec/support/dummy_server/servlet.rb
197
- - spec/support/fakeio.rb
198
- - spec/support/fuubar.rb
199
- - spec/support/http_handling_shared.rb
200
- - spec/support/proxy_server.rb
201
- - spec/support/servers/config.rb
202
- - spec/support/servers/runner.rb
203
- - spec/support/simplecov.rb
204
- - spec/support/ssl_helper.rb
115
+ - sig/http.rbs
205
116
  homepage: https://github.com/httprb/http
206
117
  licenses:
207
118
  - MIT
208
119
  metadata:
209
- source_code_uri: https://github.com/httprb/http
210
- wiki_uri: https://github.com/httprb/http/wiki
120
+ homepage_uri: https://github.com/httprb/http
121
+ source_code_uri: https://github.com/httprb/http/tree/v6.0.2
211
122
  bug_tracker_uri: https://github.com/httprb/http/issues
212
- changelog_uri: https://github.com/httprb/http/blob/v5.2.0/CHANGELOG.md
123
+ changelog_uri: https://github.com/httprb/http/blob/v6.0.2/CHANGELOG.md
124
+ documentation_uri: https://www.rubydoc.info/gems/http/6.0.2
213
125
  rubygems_mfa_required: 'true'
214
- post_install_message:
215
126
  rdoc_options: []
216
127
  require_paths:
217
128
  - lib
@@ -219,58 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
130
  requirements:
220
131
  - - ">="
221
132
  - !ruby/object:Gem::Version
222
- version: '2.6'
133
+ version: '3.2'
223
134
  required_rubygems_version: !ruby/object:Gem::Requirement
224
135
  requirements:
225
136
  - - ">="
226
137
  - !ruby/object:Gem::Version
227
138
  version: '0'
228
139
  requirements: []
229
- rubygems_version: 3.5.4
230
- signing_key:
140
+ rubygems_version: 4.0.8
231
141
  specification_version: 4
232
142
  summary: HTTP should be easy
233
- test_files:
234
- - spec/lib/http/client_spec.rb
235
- - spec/lib/http/connection_spec.rb
236
- - spec/lib/http/content_type_spec.rb
237
- - spec/lib/http/features/auto_deflate_spec.rb
238
- - spec/lib/http/features/auto_inflate_spec.rb
239
- - spec/lib/http/features/instrumentation_spec.rb
240
- - spec/lib/http/features/logging_spec.rb
241
- - spec/lib/http/headers/mixin_spec.rb
242
- - spec/lib/http/headers_spec.rb
243
- - spec/lib/http/options/body_spec.rb
244
- - spec/lib/http/options/features_spec.rb
245
- - spec/lib/http/options/form_spec.rb
246
- - spec/lib/http/options/headers_spec.rb
247
- - spec/lib/http/options/json_spec.rb
248
- - spec/lib/http/options/merge_spec.rb
249
- - spec/lib/http/options/new_spec.rb
250
- - spec/lib/http/options/proxy_spec.rb
251
- - spec/lib/http/options_spec.rb
252
- - spec/lib/http/redirector_spec.rb
253
- - spec/lib/http/request/body_spec.rb
254
- - spec/lib/http/request/writer_spec.rb
255
- - spec/lib/http/request_spec.rb
256
- - spec/lib/http/response/body_spec.rb
257
- - spec/lib/http/response/parser_spec.rb
258
- - spec/lib/http/response/status_spec.rb
259
- - spec/lib/http/response_spec.rb
260
- - spec/lib/http/uri/normalizer_spec.rb
261
- - spec/lib/http/uri_spec.rb
262
- - spec/lib/http_spec.rb
263
- - spec/regression_specs.rb
264
- - spec/spec_helper.rb
265
- - spec/support/black_hole.rb
266
- - spec/support/capture_warning.rb
267
- - spec/support/dummy_server.rb
268
- - spec/support/dummy_server/servlet.rb
269
- - spec/support/fakeio.rb
270
- - spec/support/fuubar.rb
271
- - spec/support/http_handling_shared.rb
272
- - spec/support/proxy_server.rb
273
- - spec/support/servers/config.rb
274
- - spec/support/servers/runner.rb
275
- - spec/support/simplecov.rb
276
- - spec/support/ssl_helper.rb
143
+ test_files: []
@@ -1,67 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [ main, 5-x-stable ]
6
- pull_request:
7
- branches: [ main, 5-x-stable ]
8
-
9
- env:
10
- BUNDLE_WITHOUT: "development"
11
- JRUBY_OPTS: "--dev --debug"
12
-
13
- jobs:
14
- test:
15
- runs-on: ${{ matrix.os }}
16
-
17
- strategy:
18
- matrix:
19
- ruby: [ ruby-2.6, ruby-2.7, ruby-3.0, ruby-3.1, ruby-3.2, ruby-3.3 ]
20
- os: [ ubuntu-latest ]
21
-
22
- steps:
23
- - uses: actions/checkout@v4
24
-
25
- - uses: ruby/setup-ruby@v1
26
- with:
27
- ruby-version: ${{ matrix.ruby }}
28
- bundler-cache: true
29
-
30
- - name: bundle exec rspec
31
- run: bundle exec rspec --format progress --force-colour
32
-
33
- test-flaky:
34
- runs-on: ${{ matrix.os }}
35
-
36
- strategy:
37
- matrix:
38
- ruby: [ jruby-9.3 ]
39
- os: [ ubuntu-latest ]
40
-
41
- steps:
42
- - uses: actions/checkout@v4
43
-
44
- - uses: ruby/setup-ruby@v1
45
- with:
46
- ruby-version: ${{ matrix.ruby }}
47
- bundler-cache: true
48
-
49
- - name: bundle exec rspec
50
- continue-on-error: true
51
- run: bundle exec rspec --format progress --force-colour
52
-
53
- lint:
54
- runs-on: ubuntu-latest
55
-
56
- steps:
57
- - uses: actions/checkout@v4
58
-
59
- - uses: ruby/setup-ruby@v1
60
- with:
61
- ruby-version: 2.6
62
- bundler-cache: true
63
-
64
- - name: bundle exec rubocop
65
- run: bundle exec rubocop --format progress --color
66
-
67
- - run: bundle exec rake verify_measurements
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- *.gem
2
- .config
3
- .rvmrc
4
- .yardoc
5
- InstalledFiles
6
- _yardoc
7
-
8
- .bundle
9
- .ruby-version
10
- doc
11
- coverage
12
- pkg
13
- spec/examples.txt
14
- tmp
15
- Gemfile.lock
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --require spec_helper
data/.rubocop/layout.yml DELETED
@@ -1,8 +0,0 @@
1
- Layout/DotPosition:
2
- Enabled: true
3
- EnforcedStyle: leading
4
-
5
- Layout/HashAlignment:
6
- Enabled: true
7
- EnforcedColonStyle: table
8
- EnforcedHashRocketStyle: table
data/.rubocop/metrics.yml DELETED
@@ -1,4 +0,0 @@
1
- Metrics/BlockLength:
2
- Exclude:
3
- - 'spec/**/*.rb'
4
- - '*.gemspec'
data/.rubocop/style.yml DELETED
@@ -1,32 +0,0 @@
1
- Style/Documentation:
2
- Enabled: false
3
-
4
- Style/DocumentDynamicEvalDefinition:
5
- Enabled: true
6
- Exclude:
7
- - 'spec/**/*.rb'
8
-
9
- Style/FormatStringToken:
10
- Enabled: true
11
- EnforcedStyle: unannotated
12
-
13
- Style/HashSyntax:
14
- Enabled: true
15
- EnforcedStyle: hash_rockets
16
-
17
- Style/OptionHash:
18
- Enabled: true
19
-
20
- Style/RescueStandardError:
21
- Enabled: true
22
- EnforcedStyle: implicit
23
-
24
- Style/StringLiterals:
25
- Enabled: true
26
- EnforcedStyle: double_quotes
27
-
28
- Style/WordArray:
29
- Enabled: true
30
-
31
- Style/YodaCondition:
32
- Enabled: false
data/.rubocop.yml DELETED
@@ -1,11 +0,0 @@
1
- inherit_from:
2
- - .rubocop_todo.yml
3
- - .rubocop/layout.yml
4
- - .rubocop/metrics.yml
5
- - .rubocop/style.yml
6
-
7
- AllCops:
8
- DefaultFormatter: fuubar
9
- DisplayCopNames: true
10
- NewCops: enable
11
- TargetRubyVersion: 2.6
data/.rubocop_todo.yml DELETED
@@ -1,206 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100`
3
- # on 2022-06-16 14:35:44 UTC using RuboCop version 1.30.1.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: Include.
12
- # Include: **/*.gemspec
13
- Gemspec/DeprecatedAttributeAssignment:
14
- Exclude:
15
- - 'http.gemspec'
16
-
17
- # Offense count: 53
18
- # This cop supports safe autocorrection (--autocorrect).
19
- # Configuration parameters: EnforcedStyle.
20
- # SupportedStyles: leading, trailing
21
- Layout/DotPosition:
22
- Exclude:
23
- - 'lib/http/options.rb'
24
- - 'spec/lib/http/client_spec.rb'
25
- - 'spec/lib/http/features/auto_deflate_spec.rb'
26
- - 'spec/lib/http/headers_spec.rb'
27
- - 'spec/lib/http/options/features_spec.rb'
28
- - 'spec/lib/http/redirector_spec.rb'
29
- - 'spec/lib/http/response/body_spec.rb'
30
- - 'spec/lib/http_spec.rb'
31
- - 'spec/support/http_handling_shared.rb'
32
-
33
- # Offense count: 176
34
- # This cop supports safe autocorrection (--autocorrect).
35
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
36
- # SupportedStyles: space, no_space, compact
37
- # SupportedStylesForEmptyBraces: space, no_space
38
- Layout/SpaceInsideHashLiteralBraces:
39
- Exclude:
40
- - 'lib/http/chainable.rb'
41
- - 'spec/lib/http/client_spec.rb'
42
- - 'spec/lib/http/features/auto_inflate_spec.rb'
43
- - 'spec/lib/http/features/instrumentation_spec.rb'
44
- - 'spec/lib/http/features/logging_spec.rb'
45
- - 'spec/lib/http/headers_spec.rb'
46
- - 'spec/lib/http/options/features_spec.rb'
47
- - 'spec/lib/http/options/merge_spec.rb'
48
- - 'spec/lib/http/options/new_spec.rb'
49
- - 'spec/lib/http/redirector_spec.rb'
50
- - 'spec/lib/http/request_spec.rb'
51
- - 'spec/lib/http/response_spec.rb'
52
- - 'spec/lib/http_spec.rb'
53
- - 'spec/support/dummy_server/servlet.rb'
54
- - 'spec/support/http_handling_shared.rb'
55
- - 'spec/support/ssl_helper.rb'
56
-
57
- # Offense count: 4
58
- Lint/MissingSuper:
59
- Exclude:
60
- - 'lib/http/features/auto_deflate.rb'
61
- - 'lib/http/features/instrumentation.rb'
62
- - 'lib/http/features/logging.rb'
63
- - 'lib/http/features/normalize_uri.rb'
64
-
65
- # Offense count: 8
66
- # Configuration parameters: IgnoredMethods, CountRepeatedAttributes, Max.
67
- Metrics/AbcSize:
68
- Exclude:
69
- - 'lib/http/chainable.rb'
70
- - 'lib/http/client.rb'
71
- - 'lib/http/connection.rb'
72
- - 'lib/http/features/auto_deflate.rb'
73
- - 'lib/http/redirector.rb'
74
- - 'lib/http/request.rb'
75
- - 'lib/http/response.rb'
76
-
77
- # Offense count: 70
78
- # Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods, IgnoredMethods.
79
- # IgnoredMethods: refine
80
- Metrics/BlockLength:
81
- Exclude:
82
- - '**/*.gemspec'
83
- - 'spec/lib/http/client_spec.rb'
84
- - 'spec/lib/http/connection_spec.rb'
85
- - 'spec/lib/http/content_type_spec.rb'
86
- - 'spec/lib/http/features/auto_deflate_spec.rb'
87
- - 'spec/lib/http/features/auto_inflate_spec.rb'
88
- - 'spec/lib/http/features/instrumentation_spec.rb'
89
- - 'spec/lib/http/features/logging_spec.rb'
90
- - 'spec/lib/http/headers/mixin_spec.rb'
91
- - 'spec/lib/http/headers_spec.rb'
92
- - 'spec/lib/http/options/merge_spec.rb'
93
- - 'spec/lib/http/redirector_spec.rb'
94
- - 'spec/lib/http/request/body_spec.rb'
95
- - 'spec/lib/http/request/writer_spec.rb'
96
- - 'spec/lib/http/request_spec.rb'
97
- - 'spec/lib/http/response/body_spec.rb'
98
- - 'spec/lib/http/response/parser_spec.rb'
99
- - 'spec/lib/http/response/status_spec.rb'
100
- - 'spec/lib/http/response_spec.rb'
101
- - 'spec/lib/http/uri_spec.rb'
102
- - 'spec/lib/http_spec.rb'
103
- - 'spec/support/http_handling_shared.rb'
104
-
105
- # Offense count: 4
106
- # Configuration parameters: CountComments, Max, CountAsOne.
107
- Metrics/ClassLength:
108
- Exclude:
109
- - 'lib/http/client.rb'
110
- - 'lib/http/connection.rb'
111
- - 'lib/http/headers.rb'
112
- - 'lib/http/request.rb'
113
-
114
- # Offense count: 2
115
- # Configuration parameters: IgnoredMethods, Max.
116
- Metrics/CyclomaticComplexity:
117
- Exclude:
118
- - 'lib/http/chainable.rb'
119
- - 'lib/http/client.rb'
120
-
121
- # Offense count: 18
122
- # Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods, IgnoredMethods.
123
- Metrics/MethodLength:
124
- Exclude:
125
- - 'lib/http/chainable.rb'
126
- - 'lib/http/client.rb'
127
- - 'lib/http/connection.rb'
128
- - 'lib/http/features/auto_deflate.rb'
129
- - 'lib/http/features/auto_inflate.rb'
130
- - 'lib/http/headers.rb'
131
- - 'lib/http/options.rb'
132
- - 'lib/http/redirector.rb'
133
- - 'lib/http/request.rb'
134
- - 'lib/http/response.rb'
135
- - 'lib/http/response/body.rb'
136
- - 'lib/http/timeout/global.rb'
137
-
138
- # Offense count: 1
139
- # Configuration parameters: CountComments, Max, CountAsOne.
140
- Metrics/ModuleLength:
141
- Exclude:
142
- - 'lib/http/chainable.rb'
143
-
144
- # Offense count: 1
145
- Security/CompoundHash:
146
- Exclude:
147
- - 'lib/http/uri.rb'
148
-
149
- # Offense count: 2
150
- # This cop supports safe autocorrection (--autocorrect).
151
- # Configuration parameters: EnforcedStyle.
152
- # SupportedStyles: separated, grouped
153
- Style/AccessorGrouping:
154
- Exclude:
155
- - 'lib/http/request.rb'
156
-
157
- # Offense count: 4
158
- # This cop supports safe autocorrection (--autocorrect).
159
- Style/EmptyCaseCondition:
160
- Exclude:
161
- - 'lib/http/client.rb'
162
- - 'lib/http/headers.rb'
163
- - 'lib/http/options.rb'
164
- - 'lib/http/response/status.rb'
165
-
166
- # Offense count: 5
167
- # This cop supports safe autocorrection (--autocorrect).
168
- Style/Encoding:
169
- Exclude:
170
- - 'spec/lib/http/client_spec.rb'
171
- - 'spec/lib/http/request/writer_spec.rb'
172
- - 'spec/lib/http/request_spec.rb'
173
- - 'spec/lib/http_spec.rb'
174
- - 'spec/support/dummy_server/servlet.rb'
175
-
176
- # Offense count: 17
177
- # Configuration parameters: SuspiciousParamNames, Allowlist.
178
- # SuspiciousParamNames: options, opts, args, params, parameters
179
- Style/OptionHash:
180
- Exclude:
181
- - 'lib/http/chainable.rb'
182
- - 'lib/http/client.rb'
183
- - 'lib/http/feature.rb'
184
- - 'lib/http/options.rb'
185
- - 'lib/http/redirector.rb'
186
- - 'lib/http/timeout/null.rb'
187
- - 'spec/support/dummy_server.rb'
188
-
189
- # Offense count: 4
190
- # Configuration parameters: AllowedMethods.
191
- # AllowedMethods: respond_to_missing?
192
- Style/OptionalBooleanParameter:
193
- Exclude:
194
- - 'lib/http/timeout/global.rb'
195
- - 'lib/http/timeout/null.rb'
196
- - 'lib/http/timeout/per_operation.rb'
197
- - 'lib/http/uri.rb'
198
-
199
- # Offense count: 3
200
- # This cop supports safe autocorrection (--autocorrect).
201
- # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
202
- # URISchemes: http, https
203
- Layout/LineLength:
204
- Exclude:
205
- - 'lib/http/chainable.rb'
206
- - 'spec/lib/http/options/proxy_spec.rb'
data/.yardopts DELETED
@@ -1,2 +0,0 @@
1
- --markup-provider=kramdown
2
- --markup=markdown