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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3d9a59fa9d9cc1908f3135c38d9a8cb132312c0539795d3a341d87da3755d23
4
- data.tar.gz: 8e88ca75fceac380b8fbb31fa627f3a30a2b938e2527baffbc2db00db64b76e5
3
+ metadata.gz: 80234bd7d5ea31711a4cdc1c90733cc929bc84d591da8a7fbfad6be66c8a6bf5
4
+ data.tar.gz: 411496737c758f76b0a9b09f1f67eae7cd548699ce6efdf7865f6b1a51dec79a
5
5
  SHA512:
6
- metadata.gz: fe80712332209f6b188eca10aea16f0d1cb02b8af18682e6efda3844cd5d5de9e99cb0829cf162433fe85f7a070865808caa32a69df3ebe84b7dd483c105315f
7
- data.tar.gz: 1ec1dd55a8ec80bceaab32a39dfa2e325f01f83c5e512be5c74feb8f4049ef9f34431ab6d33d00ad4b6fcf906d7883a0420e91a0663f2eb4fdd6ddb632b4d351
6
+ metadata.gz: e06a3995e597f253e29d78826930c6db6ec3a878e5e0bae96ec6c93e8e49c60f35ec1231218ef84d20350d73d4058bbe204e60111a66983a0e0b104bf61e6059
7
+ data.tar.gz: 175e3a5d83932d4e3a431cf4e2a65d8aa550a3028585c1b3c65970ba736529128f93eba5dd02125753d6c6460769c827aa80ecb6e6f49f2af10c1797c97a03e2
@@ -0,0 +1,5 @@
1
+ # 0.24.6
2
+
3
+ ## Bugfixes
4
+
5
+ * fix Session class assertions not prepared for class overrides, which could break some plugins which override the Session class on load (such as `datadog` or `webmock` adapters).
@@ -48,7 +48,7 @@ module HTTPX
48
48
  end
49
49
 
50
50
  def plugin(pl, options = nil, &blk)
51
- klass = is_a?(Session) ? self.class : Session
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?(Session) ? self.class : Session
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?(Session)
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
@@ -351,4 +351,7 @@ module HTTPX
351
351
  # :nocov:
352
352
  end
353
353
  end
354
+
355
+ # session may be overridden by certain adapters.
356
+ S = Session
354
357
  end
data/lib/httpx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "0.24.5"
4
+ VERSION = "0.24.6"
5
5
  end
data/sig/session.rbs CHANGED
@@ -51,4 +51,6 @@ module HTTPX
51
51
 
52
52
  attr_reader self.default_options: Options
53
53
  end
54
+
55
+ OriginalSession: singleton(Session)
54
56
  end
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.5
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-17 00:00:00.000000000 Z
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