httpx 0.24.5 → 0.24.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes/0_24_6.md +5 -0
- data/lib/httpx/chainable.rb +3 -3
- data/lib/httpx/session.rb +3 -0
- data/lib/httpx/version.rb +1 -1
- data/sig/session.rbs +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80234bd7d5ea31711a4cdc1c90733cc929bc84d591da8a7fbfad6be66c8a6bf5
|
4
|
+
data.tar.gz: 411496737c758f76b0a9b09f1f67eae7cd548699ce6efdf7865f6b1a51dec79a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e06a3995e597f253e29d78826930c6db6ec3a878e5e0bae96ec6c93e8e49c60f35ec1231218ef84d20350d73d4058bbe204e60111a66983a0e0b104bf61e6059
|
7
|
+
data.tar.gz: 175e3a5d83932d4e3a431cf4e2a65d8aa550a3028585c1b3c65970ba736529128f93eba5dd02125753d6c6460769c827aa80ecb6e6f49f2af10c1797c97a03e2
|
data/lib/httpx/chainable.rb
CHANGED
@@ -48,7 +48,7 @@ module HTTPX
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def plugin(pl, options = nil, &blk)
|
51
|
-
klass = is_a?(
|
51
|
+
klass = is_a?(S) ? self.class : Session
|
52
52
|
klass = Class.new(klass)
|
53
53
|
klass.instance_variable_set(:@default_options, klass.default_options.merge(default_options))
|
54
54
|
klass.plugin(pl, options, &blk).new
|
@@ -58,7 +58,7 @@ module HTTPX
|
|
58
58
|
# :nocov:
|
59
59
|
def plugins(pls)
|
60
60
|
warn ":#{__method__} is deprecated, use :plugin instead"
|
61
|
-
klass = is_a?(
|
61
|
+
klass = is_a?(S) ? self.class : Session
|
62
62
|
klass = Class.new(klass)
|
63
63
|
klass.instance_variable_set(:@default_options, klass.default_options.merge(default_options))
|
64
64
|
klass.plugins(pls).new
|
@@ -82,7 +82,7 @@ module HTTPX
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def branch(options, &blk)
|
85
|
-
return self.class.new(options, &blk) if is_a?(
|
85
|
+
return self.class.new(options, &blk) if is_a?(S)
|
86
86
|
|
87
87
|
Session.new(options, &blk)
|
88
88
|
end
|
data/lib/httpx/session.rb
CHANGED
data/lib/httpx/version.rb
CHANGED
data/sig/session.rbs
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.24.
|
4
|
+
version: 0.24.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -105,6 +105,7 @@ extra_rdoc_files:
|
|
105
105
|
- doc/release_notes/0_24_3.md
|
106
106
|
- doc/release_notes/0_24_4.md
|
107
107
|
- doc/release_notes/0_24_5.md
|
108
|
+
- doc/release_notes/0_24_6.md
|
108
109
|
- doc/release_notes/0_2_0.md
|
109
110
|
- doc/release_notes/0_2_1.md
|
110
111
|
- doc/release_notes/0_3_0.md
|
@@ -202,6 +203,7 @@ files:
|
|
202
203
|
- doc/release_notes/0_24_3.md
|
203
204
|
- doc/release_notes/0_24_4.md
|
204
205
|
- doc/release_notes/0_24_5.md
|
206
|
+
- doc/release_notes/0_24_6.md
|
205
207
|
- doc/release_notes/0_2_0.md
|
206
208
|
- doc/release_notes/0_2_1.md
|
207
209
|
- doc/release_notes/0_3_0.md
|