http 5.3.1 → 6.0.1

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 (134) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +110 -13
  4. data/http.gemspec +32 -29
  5. data/lib/http/base64.rb +11 -1
  6. data/lib/http/chainable/helpers.rb +62 -0
  7. data/lib/http/chainable/verbs.rb +136 -0
  8. data/lib/http/chainable.rb +232 -136
  9. data/lib/http/client.rb +158 -127
  10. data/lib/http/connection/internals.rb +141 -0
  11. data/lib/http/connection.rb +126 -97
  12. data/lib/http/content_type.rb +61 -6
  13. data/lib/http/errors.rb +25 -1
  14. data/lib/http/feature.rb +65 -5
  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 +18 -3
  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 +17 -36
  36. data/lib/http/headers.rb +172 -65
  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 +76 -16
  47. data/lib/http/request.rb +214 -98
  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 +38 -11
  55. data/lib/http/retriable/errors.rb +21 -0
  56. data/lib/http/retriable/performer.rb +82 -38
  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 -2
  66. data/sig/http.rbs +1619 -0
  67. metadata +36 -171
  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/rspec.yml +0 -9
  74. data/.rubocop/style.yml +0 -32
  75. data/.rubocop.yml +0 -11
  76. data/.rubocop_todo.yml +0 -219
  77. data/.yardopts +0 -2
  78. data/CHANGELOG.md +0 -67
  79. data/CHANGES_OLD.md +0 -1002
  80. data/CONTRIBUTING.md +0 -26
  81. data/Gemfile +0 -51
  82. data/Guardfile +0 -18
  83. data/Rakefile +0 -64
  84. data/SECURITY.md +0 -17
  85. data/lib/http/headers/mixin.rb +0 -34
  86. data/lib/http/retriable/client.rb +0 -37
  87. data/logo.png +0 -0
  88. data/spec/lib/http/client_spec.rb +0 -556
  89. data/spec/lib/http/connection_spec.rb +0 -88
  90. data/spec/lib/http/content_type_spec.rb +0 -47
  91. data/spec/lib/http/features/auto_deflate_spec.rb +0 -77
  92. data/spec/lib/http/features/auto_inflate_spec.rb +0 -86
  93. data/spec/lib/http/features/instrumentation_spec.rb +0 -81
  94. data/spec/lib/http/features/logging_spec.rb +0 -65
  95. data/spec/lib/http/features/raise_error_spec.rb +0 -62
  96. data/spec/lib/http/headers/mixin_spec.rb +0 -36
  97. data/spec/lib/http/headers/normalizer_spec.rb +0 -52
  98. data/spec/lib/http/headers_spec.rb +0 -527
  99. data/spec/lib/http/options/body_spec.rb +0 -15
  100. data/spec/lib/http/options/features_spec.rb +0 -33
  101. data/spec/lib/http/options/form_spec.rb +0 -15
  102. data/spec/lib/http/options/headers_spec.rb +0 -24
  103. data/spec/lib/http/options/json_spec.rb +0 -15
  104. data/spec/lib/http/options/merge_spec.rb +0 -68
  105. data/spec/lib/http/options/new_spec.rb +0 -30
  106. data/spec/lib/http/options/proxy_spec.rb +0 -20
  107. data/spec/lib/http/options_spec.rb +0 -13
  108. data/spec/lib/http/redirector_spec.rb +0 -530
  109. data/spec/lib/http/request/body_spec.rb +0 -211
  110. data/spec/lib/http/request/writer_spec.rb +0 -121
  111. data/spec/lib/http/request_spec.rb +0 -234
  112. data/spec/lib/http/response/body_spec.rb +0 -85
  113. data/spec/lib/http/response/parser_spec.rb +0 -74
  114. data/spec/lib/http/response/status_spec.rb +0 -253
  115. data/spec/lib/http/response_spec.rb +0 -262
  116. data/spec/lib/http/retriable/delay_calculator_spec.rb +0 -69
  117. data/spec/lib/http/retriable/performer_spec.rb +0 -302
  118. data/spec/lib/http/uri/normalizer_spec.rb +0 -95
  119. data/spec/lib/http/uri_spec.rb +0 -71
  120. data/spec/lib/http_spec.rb +0 -535
  121. data/spec/regression_specs.rb +0 -24
  122. data/spec/spec_helper.rb +0 -89
  123. data/spec/support/black_hole.rb +0 -13
  124. data/spec/support/capture_warning.rb +0 -10
  125. data/spec/support/dummy_server/servlet.rb +0 -203
  126. data/spec/support/dummy_server.rb +0 -44
  127. data/spec/support/fakeio.rb +0 -21
  128. data/spec/support/fuubar.rb +0 -21
  129. data/spec/support/http_handling_shared.rb +0 -190
  130. data/spec/support/proxy_server.rb +0 -39
  131. data/spec/support/servers/config.rb +0 -11
  132. data/spec/support/servers/runner.rb +0 -19
  133. data/spec/support/simplecov.rb +0 -19
  134. data/spec/support/ssl_helper.rb +0 -104
metadata CHANGED
@@ -1,32 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.1
4
+ version: 6.0.1
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: 2025-06-09 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
15
  - !ruby/object:Gem::Dependency
31
16
  name: http-cookie
32
17
  requirement: !ruby/object:Gem::Requirement
@@ -42,47 +27,19 @@ dependencies:
42
27
  - !ruby/object:Gem::Version
43
28
  version: '1.0'
44
29
  - !ruby/object:Gem::Dependency
45
- name: http-form_data
46
- requirement: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - "~>"
49
- - !ruby/object:Gem::Version
50
- version: '2.2'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - "~>"
56
- - !ruby/object:Gem::Version
57
- version: '2.2'
58
- - !ruby/object:Gem::Dependency
59
- name: llhttp-ffi
30
+ name: llhttp
60
31
  requirement: !ruby/object:Gem::Requirement
61
32
  requirements:
62
33
  - - "~>"
63
34
  - !ruby/object:Gem::Version
64
- version: 0.5.0
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: 0.5.0
72
- - !ruby/object:Gem::Dependency
73
- name: bundler
74
- requirement: !ruby/object:Gem::Requirement
75
- requirements:
76
- - - "~>"
77
- - !ruby/object:Gem::Version
78
- version: '2.0'
79
- type: :development
80
- prerelease: false
81
- version_requirements: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: '2.0'
42
+ version: 0.6.1
86
43
  description: An easy-to-use client library for making requests from Ruby. It uses
87
44
  a simple method chaining system for building requests, similar to Python's Requests.
88
45
  email:
@@ -91,51 +48,52 @@ executables: []
91
48
  extensions: []
92
49
  extra_rdoc_files: []
93
50
  files:
94
- - ".github/workflows/ci.yml"
95
- - ".gitignore"
96
- - ".rspec"
97
- - ".rubocop.yml"
98
- - ".rubocop/layout.yml"
99
- - ".rubocop/metrics.yml"
100
- - ".rubocop/rspec.yml"
101
- - ".rubocop/style.yml"
102
- - ".rubocop_todo.yml"
103
- - ".yardopts"
104
- - CHANGELOG.md
105
- - CHANGES_OLD.md
106
- - CONTRIBUTING.md
107
- - Gemfile
108
- - Guardfile
109
51
  - LICENSE.txt
110
52
  - README.md
111
- - Rakefile
112
- - SECURITY.md
113
53
  - http.gemspec
114
54
  - lib/http.rb
115
55
  - lib/http/base64.rb
116
56
  - lib/http/chainable.rb
57
+ - lib/http/chainable/helpers.rb
58
+ - lib/http/chainable/verbs.rb
117
59
  - lib/http/client.rb
118
60
  - lib/http/connection.rb
61
+ - lib/http/connection/internals.rb
119
62
  - lib/http/content_type.rb
120
63
  - lib/http/errors.rb
121
64
  - lib/http/feature.rb
122
65
  - lib/http/features/auto_deflate.rb
123
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
124
71
  - lib/http/features/instrumentation.rb
125
72
  - lib/http/features/logging.rb
126
73
  - lib/http/features/normalize_uri.rb
127
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
128
84
  - lib/http/headers.rb
129
85
  - lib/http/headers/known.rb
130
- - lib/http/headers/mixin.rb
131
86
  - lib/http/headers/normalizer.rb
132
87
  - lib/http/mime_type.rb
133
88
  - lib/http/mime_type/adapter.rb
134
89
  - lib/http/mime_type/json.rb
135
90
  - lib/http/options.rb
91
+ - lib/http/options/definitions.rb
136
92
  - lib/http/redirector.rb
137
93
  - lib/http/request.rb
138
94
  - lib/http/request/body.rb
95
+ - lib/http/request/builder.rb
96
+ - lib/http/request/proxy.rb
139
97
  - lib/http/request/writer.rb
140
98
  - lib/http/response.rb
141
99
  - lib/http/response/body.rb
@@ -143,73 +101,28 @@ files:
143
101
  - lib/http/response/parser.rb
144
102
  - lib/http/response/status.rb
145
103
  - lib/http/response/status/reasons.rb
146
- - lib/http/retriable/client.rb
147
104
  - lib/http/retriable/delay_calculator.rb
148
105
  - lib/http/retriable/errors.rb
149
106
  - lib/http/retriable/performer.rb
107
+ - lib/http/session.rb
150
108
  - lib/http/timeout/global.rb
151
109
  - lib/http/timeout/null.rb
152
110
  - lib/http/timeout/per_operation.rb
153
111
  - lib/http/uri.rb
112
+ - lib/http/uri/normalizer.rb
113
+ - lib/http/uri/parsing.rb
154
114
  - lib/http/version.rb
155
- - logo.png
156
- - spec/lib/http/client_spec.rb
157
- - spec/lib/http/connection_spec.rb
158
- - spec/lib/http/content_type_spec.rb
159
- - spec/lib/http/features/auto_deflate_spec.rb
160
- - spec/lib/http/features/auto_inflate_spec.rb
161
- - spec/lib/http/features/instrumentation_spec.rb
162
- - spec/lib/http/features/logging_spec.rb
163
- - spec/lib/http/features/raise_error_spec.rb
164
- - spec/lib/http/headers/mixin_spec.rb
165
- - spec/lib/http/headers/normalizer_spec.rb
166
- - spec/lib/http/headers_spec.rb
167
- - spec/lib/http/options/body_spec.rb
168
- - spec/lib/http/options/features_spec.rb
169
- - spec/lib/http/options/form_spec.rb
170
- - spec/lib/http/options/headers_spec.rb
171
- - spec/lib/http/options/json_spec.rb
172
- - spec/lib/http/options/merge_spec.rb
173
- - spec/lib/http/options/new_spec.rb
174
- - spec/lib/http/options/proxy_spec.rb
175
- - spec/lib/http/options_spec.rb
176
- - spec/lib/http/redirector_spec.rb
177
- - spec/lib/http/request/body_spec.rb
178
- - spec/lib/http/request/writer_spec.rb
179
- - spec/lib/http/request_spec.rb
180
- - spec/lib/http/response/body_spec.rb
181
- - spec/lib/http/response/parser_spec.rb
182
- - spec/lib/http/response/status_spec.rb
183
- - spec/lib/http/response_spec.rb
184
- - spec/lib/http/retriable/delay_calculator_spec.rb
185
- - spec/lib/http/retriable/performer_spec.rb
186
- - spec/lib/http/uri/normalizer_spec.rb
187
- - spec/lib/http/uri_spec.rb
188
- - spec/lib/http_spec.rb
189
- - spec/regression_specs.rb
190
- - spec/spec_helper.rb
191
- - spec/support/black_hole.rb
192
- - spec/support/capture_warning.rb
193
- - spec/support/dummy_server.rb
194
- - spec/support/dummy_server/servlet.rb
195
- - spec/support/fakeio.rb
196
- - spec/support/fuubar.rb
197
- - spec/support/http_handling_shared.rb
198
- - spec/support/proxy_server.rb
199
- - spec/support/servers/config.rb
200
- - spec/support/servers/runner.rb
201
- - spec/support/simplecov.rb
202
- - spec/support/ssl_helper.rb
115
+ - sig/http.rbs
203
116
  homepage: https://github.com/httprb/http
204
117
  licenses:
205
118
  - MIT
206
119
  metadata:
207
- source_code_uri: https://github.com/httprb/http
208
- 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.1
209
122
  bug_tracker_uri: https://github.com/httprb/http/issues
210
- changelog_uri: https://github.com/httprb/http/blob/v5.3.1/CHANGELOG.md
123
+ changelog_uri: https://github.com/httprb/http/blob/v6.0.1/CHANGELOG.md
124
+ documentation_uri: https://www.rubydoc.info/gems/http/6.0.1
211
125
  rubygems_mfa_required: 'true'
212
- post_install_message:
213
126
  rdoc_options: []
214
127
  require_paths:
215
128
  - lib
@@ -217,62 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
130
  requirements:
218
131
  - - ">="
219
132
  - !ruby/object:Gem::Version
220
- version: '2.6'
133
+ version: '3.2'
221
134
  required_rubygems_version: !ruby/object:Gem::Requirement
222
135
  requirements:
223
136
  - - ">="
224
137
  - !ruby/object:Gem::Version
225
138
  version: '0'
226
139
  requirements: []
227
- rubygems_version: 3.4.19
228
- signing_key:
140
+ rubygems_version: 4.0.6
229
141
  specification_version: 4
230
142
  summary: HTTP should be easy
231
- test_files:
232
- - spec/lib/http/client_spec.rb
233
- - spec/lib/http/connection_spec.rb
234
- - spec/lib/http/content_type_spec.rb
235
- - spec/lib/http/features/auto_deflate_spec.rb
236
- - spec/lib/http/features/auto_inflate_spec.rb
237
- - spec/lib/http/features/instrumentation_spec.rb
238
- - spec/lib/http/features/logging_spec.rb
239
- - spec/lib/http/features/raise_error_spec.rb
240
- - spec/lib/http/headers/mixin_spec.rb
241
- - spec/lib/http/headers/normalizer_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/retriable/delay_calculator_spec.rb
261
- - spec/lib/http/retriable/performer_spec.rb
262
- - spec/lib/http/uri/normalizer_spec.rb
263
- - spec/lib/http/uri_spec.rb
264
- - spec/lib/http_spec.rb
265
- - spec/regression_specs.rb
266
- - spec/spec_helper.rb
267
- - spec/support/black_hole.rb
268
- - spec/support/capture_warning.rb
269
- - spec/support/dummy_server.rb
270
- - spec/support/dummy_server/servlet.rb
271
- - spec/support/fakeio.rb
272
- - spec/support/fuubar.rb
273
- - spec/support/http_handling_shared.rb
274
- - spec/support/proxy_server.rb
275
- - spec/support/servers/config.rb
276
- - spec/support/servers/runner.rb
277
- - spec/support/simplecov.rb
278
- - 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/rspec.yml DELETED
@@ -1,9 +0,0 @@
1
- RSpec/ExampleLength:
2
- CountAsOne:
3
- - array
4
- - hash
5
- - heredoc
6
- - method_call
7
-
8
- RSpec/MultipleExpectations:
9
- Max: 5
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,219 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100`
3
- # on 2025-06-09 02:44:43 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: 55
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: 2
34
- # This cop supports safe autocorrection (--autocorrect).
35
- # Configuration parameters: IndentationWidth.
36
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
37
- Layout/FirstHashElementIndentation:
38
- EnforcedStyle: consistent
39
-
40
- # Offense count: 206
41
- # This cop supports safe autocorrection (--autocorrect).
42
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
43
- # SupportedStyles: space, no_space, compact
44
- # SupportedStylesForEmptyBraces: space, no_space
45
- Layout/SpaceInsideHashLiteralBraces:
46
- Exclude:
47
- - 'lib/http/chainable.rb'
48
- - 'spec/lib/http/client_spec.rb'
49
- - 'spec/lib/http/features/auto_inflate_spec.rb'
50
- - 'spec/lib/http/features/instrumentation_spec.rb'
51
- - 'spec/lib/http/features/logging_spec.rb'
52
- - 'spec/lib/http/headers_spec.rb'
53
- - 'spec/lib/http/options/features_spec.rb'
54
- - 'spec/lib/http/options/merge_spec.rb'
55
- - 'spec/lib/http/options/new_spec.rb'
56
- - 'spec/lib/http/redirector_spec.rb'
57
- - 'spec/lib/http/request_spec.rb'
58
- - 'spec/lib/http/response_spec.rb'
59
- - 'spec/lib/http_spec.rb'
60
- - 'spec/support/dummy_server/servlet.rb'
61
- - 'spec/support/http_handling_shared.rb'
62
- - 'spec/support/ssl_helper.rb'
63
-
64
- # Offense count: 4
65
- Lint/MissingSuper:
66
- Exclude:
67
- - 'lib/http/features/auto_deflate.rb'
68
- - 'lib/http/features/instrumentation.rb'
69
- - 'lib/http/features/logging.rb'
70
- - 'lib/http/features/normalize_uri.rb'
71
-
72
- # Offense count: 1
73
- # This cop supports safe autocorrection (--autocorrect).
74
- Lint/RedundantCopDisableDirective:
75
- Exclude:
76
- - 'spec/lib/http/retriable/performer_spec.rb'
77
-
78
- # Offense count: 6
79
- # Configuration parameters: AllowComments, AllowNil.
80
- Lint/SuppressedException:
81
- Exclude:
82
- - 'spec/lib/http/retriable/performer_spec.rb'
83
-
84
- # Offense count: 8
85
- # Configuration parameters: IgnoredMethods, CountRepeatedAttributes, Max.
86
- Metrics/AbcSize:
87
- Exclude:
88
- - 'lib/http/chainable.rb'
89
- - 'lib/http/client.rb'
90
- - 'lib/http/connection.rb'
91
- - 'lib/http/features/auto_deflate.rb'
92
- - 'lib/http/redirector.rb'
93
- - 'lib/http/request.rb'
94
- - 'lib/http/response.rb'
95
-
96
- # Offense count: 4
97
- # Configuration parameters: CountComments, Max, CountAsOne.
98
- Metrics/ClassLength:
99
- Exclude:
100
- - 'lib/http/client.rb'
101
- - 'lib/http/connection.rb'
102
- - 'lib/http/headers.rb'
103
- - 'lib/http/request.rb'
104
-
105
- # Offense count: 2
106
- # Configuration parameters: IgnoredMethods, Max.
107
- Metrics/CyclomaticComplexity:
108
- Exclude:
109
- - 'lib/http/chainable.rb'
110
- - 'lib/http/client.rb'
111
-
112
- # Offense count: 19
113
- # Configuration parameters: CountComments, Max, CountAsOne, ExcludedMethods, IgnoredMethods.
114
- Metrics/MethodLength:
115
- Exclude:
116
- - 'lib/http/chainable.rb'
117
- - 'lib/http/client.rb'
118
- - 'lib/http/connection.rb'
119
- - 'lib/http/features/auto_deflate.rb'
120
- - 'lib/http/features/auto_inflate.rb'
121
- - 'lib/http/headers.rb'
122
- - 'lib/http/options.rb'
123
- - 'lib/http/redirector.rb'
124
- - 'lib/http/request.rb'
125
- - 'lib/http/response.rb'
126
- - 'lib/http/response/body.rb'
127
- - 'lib/http/retriable/performer.rb'
128
- - 'lib/http/timeout/global.rb'
129
-
130
- # Offense count: 1
131
- # Configuration parameters: CountComments, Max, CountAsOne.
132
- Metrics/ModuleLength:
133
- Exclude:
134
- - 'lib/http/chainable.rb'
135
-
136
- # Offense count: 1
137
- Security/CompoundHash:
138
- Exclude:
139
- - 'lib/http/uri.rb'
140
-
141
- # Offense count: 2
142
- # This cop supports safe autocorrection (--autocorrect).
143
- # Configuration parameters: EnforcedStyle.
144
- # SupportedStyles: separated, grouped
145
- Style/AccessorGrouping:
146
- Exclude:
147
- - 'lib/http/request.rb'
148
-
149
- # Offense count: 4
150
- # This cop supports safe autocorrection (--autocorrect).
151
- Style/EmptyCaseCondition:
152
- Exclude:
153
- - 'lib/http/client.rb'
154
- - 'lib/http/headers.rb'
155
- - 'lib/http/options.rb'
156
- - 'lib/http/response/status.rb'
157
-
158
- # Offense count: 5
159
- # This cop supports safe autocorrection (--autocorrect).
160
- Style/Encoding:
161
- Exclude:
162
- - 'spec/lib/http/client_spec.rb'
163
- - 'spec/lib/http/request/writer_spec.rb'
164
- - 'spec/lib/http/request_spec.rb'
165
- - 'spec/lib/http_spec.rb'
166
- - 'spec/support/dummy_server/servlet.rb'
167
-
168
- # Offense count: 71
169
- # This cop supports safe autocorrection (--autocorrect).
170
- # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
171
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
172
- # SupportedShorthandSyntax: always, never, either
173
- Style/HashSyntax:
174
- Exclude:
175
- - 'spec/lib/http/features/raise_error_spec.rb'
176
- - 'spec/lib/http/retriable/delay_calculator_spec.rb'
177
- - 'spec/lib/http/retriable/performer_spec.rb'
178
- - 'spec/lib/http_spec.rb'
179
-
180
- # Offense count: 4
181
- # This cop supports unsafe autocorrection (--autocorrect-all).
182
- # Configuration parameters: EnforcedStyle.
183
- # SupportedStyles: literals, strict
184
- Style/MutableConstant:
185
- Exclude:
186
- - 'lib/http/headers/normalizer.rb'
187
- - 'lib/http/retriable/delay_calculator.rb'
188
-
189
- # Offense count: 17
190
- # Configuration parameters: SuspiciousParamNames, Allowlist.
191
- # SuspiciousParamNames: options, opts, args, params, parameters
192
- Style/OptionHash:
193
- Exclude:
194
- - 'lib/http/chainable.rb'
195
- - 'lib/http/client.rb'
196
- - 'lib/http/feature.rb'
197
- - 'lib/http/options.rb'
198
- - 'lib/http/redirector.rb'
199
- - 'lib/http/timeout/null.rb'
200
- - 'spec/support/dummy_server.rb'
201
-
202
- # Offense count: 4
203
- # Configuration parameters: AllowedMethods.
204
- # AllowedMethods: respond_to_missing?
205
- Style/OptionalBooleanParameter:
206
- Exclude:
207
- - 'lib/http/timeout/global.rb'
208
- - 'lib/http/timeout/null.rb'
209
- - 'lib/http/timeout/per_operation.rb'
210
- - 'lib/http/uri.rb'
211
-
212
- # Offense count: 3
213
- # This cop supports safe autocorrection (--autocorrect).
214
- # Configuration parameters: Max, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
215
- # URISchemes: http, https
216
- Layout/LineLength:
217
- Exclude:
218
- - 'lib/http/chainable.rb'
219
- - 'spec/lib/http/options/proxy_spec.rb'
data/.yardopts DELETED
@@ -1,2 +0,0 @@
1
- --markup-provider=kramdown
2
- --markup=markdown