http 3.3.0 → 4.0.0
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/.travis.yml +6 -6
- data/CHANGES.md +41 -0
- data/README.md +7 -4
- data/Rakefile +1 -1
- data/lib/http.rb +1 -0
- data/lib/http/chainable.rb +14 -19
- data/lib/http/client.rb +11 -4
- data/lib/http/connection.rb +4 -8
- data/lib/http/feature.rb +13 -0
- data/lib/http/features/auto_deflate.rb +20 -5
- data/lib/http/features/auto_inflate.rb +16 -6
- data/lib/http/features/instrumentation.rb +56 -0
- data/lib/http/features/logging.rb +55 -0
- data/lib/http/options.rb +26 -20
- data/lib/http/request.rb +7 -14
- data/lib/http/request/body.rb +5 -0
- data/lib/http/request/writer.rb +21 -7
- data/lib/http/response.rb +7 -15
- data/lib/http/timeout/global.rb +12 -14
- data/lib/http/timeout/per_operation.rb +5 -7
- data/lib/http/version.rb +1 -1
- data/spec/lib/http/features/auto_inflate_spec.rb +17 -21
- data/spec/lib/http/features/instrumentation_spec.rb +56 -0
- data/spec/lib/http/features/logging_spec.rb +74 -0
- data/spec/lib/http/request/body_spec.rb +29 -0
- data/spec/lib/http/request/writer_spec.rb +20 -0
- data/spec/lib/http_spec.rb +25 -65
- data/spec/support/http_handling_shared.rb +60 -64
- metadata +8 -3
- data/.ruby-version +0 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-10-14 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: http_parser.rb
|
@@ -95,7 +95,6 @@ files:
|
|
95
95
|
- ".gitignore"
|
96
96
|
- ".rspec"
|
97
97
|
- ".rubocop.yml"
|
98
|
-
- ".ruby-version"
|
99
98
|
- ".travis.yml"
|
100
99
|
- ".yardopts"
|
101
100
|
- CHANGES.md
|
@@ -115,6 +114,8 @@ files:
|
|
115
114
|
- lib/http/feature.rb
|
116
115
|
- lib/http/features/auto_deflate.rb
|
117
116
|
- lib/http/features/auto_inflate.rb
|
117
|
+
- lib/http/features/instrumentation.rb
|
118
|
+
- lib/http/features/logging.rb
|
118
119
|
- lib/http/headers.rb
|
119
120
|
- lib/http/headers/known.rb
|
120
121
|
- lib/http/headers/mixin.rb
|
@@ -143,6 +144,8 @@ files:
|
|
143
144
|
- spec/lib/http/content_type_spec.rb
|
144
145
|
- spec/lib/http/features/auto_deflate_spec.rb
|
145
146
|
- spec/lib/http/features/auto_inflate_spec.rb
|
147
|
+
- spec/lib/http/features/instrumentation_spec.rb
|
148
|
+
- spec/lib/http/features/logging_spec.rb
|
146
149
|
- spec/lib/http/headers/mixin_spec.rb
|
147
150
|
- spec/lib/http/headers_spec.rb
|
148
151
|
- spec/lib/http/options/body_spec.rb
|
@@ -205,6 +208,8 @@ test_files:
|
|
205
208
|
- spec/lib/http/content_type_spec.rb
|
206
209
|
- spec/lib/http/features/auto_deflate_spec.rb
|
207
210
|
- spec/lib/http/features/auto_inflate_spec.rb
|
211
|
+
- spec/lib/http/features/instrumentation_spec.rb
|
212
|
+
- spec/lib/http/features/logging_spec.rb
|
208
213
|
- spec/lib/http/headers/mixin_spec.rb
|
209
214
|
- spec/lib/http/headers_spec.rb
|
210
215
|
- spec/lib/http/options/body_spec.rb
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.4.0
|