httpx 0.19.2 → 0.19.3

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: b9e79c1b196931855e7af542bd611050a95648d2888d539cb20de5026c4a3ccf
4
- data.tar.gz: 4cc919ede2c58d6bcf86433ddf4ceba9fdca5416186d5984fa2f29a92707668d
3
+ metadata.gz: 431fcabfda42f5d6010d903a15c6a83357123c9eef3528a769755c8639f1ec61
4
+ data.tar.gz: 52512337b7b2081a4ab123f7261dee14adb97da019fc9244b9ddf8e7de53c904
5
5
  SHA512:
6
- metadata.gz: 5a35e9f740d6df65190a8e28cc2d2d8adfe9c208842290ceb0c8f6c9dd273e19066c7cc851d917f6daac663c205401e7df26916a0f41c01653e53488d404f669
7
- data.tar.gz: 67203d583847abee46ac940ff82c11624298907e191ff0c6c5408b1cddf0c909ac8820de24f11ef1cc9ac7030e5d11e807668e9f991967fc4bb4654f92ddd3c8
6
+ metadata.gz: 7777af904a2e5a8f6f34984a69cb022c853483b6634dd631a3fbe92c9005fadb3637a21a214ff1e14ef4729ffa70d68362b703b9ccd25e2904b820fc674dbe6b
7
+ data.tar.gz: 94d92ad004319ecb3098b5e901921bfaf5d818cbb0e2e87eed8987248d1cc52d0fc70a5dc1dfe1a92faa8eae9e7074c926c0c01563002cb8067af449ae79fd51
@@ -0,0 +1,6 @@
1
+ # 0.19.3
2
+
3
+ ## Bugfixes
4
+
5
+ * `retries` plugin: allow passing floats to `:retry_after` option.
6
+ * dns: fixing cache lookups filtering by IP family which was causing socket connect handshake to start with no IP.
@@ -41,7 +41,7 @@ module HTTPX
41
41
  def option_retry_after(value)
42
42
  # return early if callable
43
43
  unless value.respond_to?(:call)
44
- value = Integer(value)
44
+ value = Float(value)
45
45
  raise TypeError, ":retry_after must be positive" unless value.positive?
46
46
  end
47
47
 
@@ -74,6 +74,8 @@ module HTTPX
74
74
 
75
75
  addresses.select! { |addr| addr.family == @family }
76
76
 
77
+ return if addresses.empty?
78
+
77
79
  emit_addresses(connection, @family, addresses)
78
80
  end
79
81
 
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.19.2"
4
+ VERSION = "0.19.3"
5
5
  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.19.2
4
+ version: 0.19.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-13 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -73,6 +73,7 @@ extra_rdoc_files:
73
73
  - doc/release_notes/0_19_0.md
74
74
  - doc/release_notes/0_19_1.md
75
75
  - doc/release_notes/0_19_2.md
76
+ - doc/release_notes/0_19_3.md
76
77
  - doc/release_notes/0_1_0.md
77
78
  - doc/release_notes/0_2_0.md
78
79
  - doc/release_notes/0_2_1.md
@@ -139,6 +140,7 @@ files:
139
140
  - doc/release_notes/0_19_0.md
140
141
  - doc/release_notes/0_19_1.md
141
142
  - doc/release_notes/0_19_2.md
143
+ - doc/release_notes/0_19_3.md
142
144
  - doc/release_notes/0_1_0.md
143
145
  - doc/release_notes/0_2_0.md
144
146
  - doc/release_notes/0_2_1.md