httpx 1.3.2 → 1.3.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: e417c7a6d7564807d040374d9174d5b1fd3945ce924062397fdc0ad95d12bd31
4
- data.tar.gz: bf001578d74624abc4d05e74563c2d9a5388cbd6315cd29fb0cf176d2e4e01e2
3
+ metadata.gz: 8829f986611d6b07d5c8b14ed0a51152e7f9303d01d1ec9469263f78843ce339
4
+ data.tar.gz: 8e55596dd065b9b3d352a0ad3173577556ea5bfb7963ea85287bb58d9018160b
5
5
  SHA512:
6
- metadata.gz: dc88e4afa96c336a79ba37e6fb35521cc189db0e2981bad0d5354253f2f55e320e951656da4cc59ad5baab709ef933ed98c52ff12b116c2a9021d039e42e3db8
7
- data.tar.gz: 2cbdcc54076a34b66a413b6aa380a25e3243cedd98882774ac02fc3f345178197b01097b2b615bf174d0e0affe1b9d4dd03881305b7c16c33183dc77c27f1f9d
6
+ metadata.gz: b46a5f9f27b7571051fc95ef5d11d03cdaaa822cd08684ad1b1cf2605aacabc42ea1762f152303932bdd1e1f41c89447017ffcfaee8f995f04fdd908cbe69444
7
+ data.tar.gz: 57c5407473eb1fa8bbe7e4f3e3fef3288e8a8074776378a130894e72931833acf7bd30cd235f904fcd96cda810a3ec7118a3de9a66b28124ffd18de6b2fc1c42
@@ -0,0 +1,5 @@
1
+ # 1.3.2
2
+
3
+ ## Bugfixes
4
+
5
+ * fixing a regression introduced in 1.3.2 associated with the webmock adapter, which expects matchable request bodies to be strings
@@ -20,7 +20,7 @@ module WebMock
20
20
  WebMock::RequestSignature.new(
21
21
  request.verb.downcase.to_sym,
22
22
  uri.to_s,
23
- body: request.body,
23
+ body: request.body.to_s,
24
24
  headers: request.headers.to_h
25
25
  )
26
26
  end
@@ -18,6 +18,12 @@ module HTTPX
18
18
  "multipart/form-data; boundary=#{@boundary}"
19
19
  end
20
20
 
21
+ def to_s
22
+ read
23
+ ensure
24
+ rewind
25
+ end
26
+
21
27
  def read(length = nil, outbuf = nil)
22
28
  data = String(outbuf).clear.force_encoding(Encoding::BINARY) if outbuf
23
29
  data ||= "".b
data/lib/httpx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "1.3.2"
4
+ VERSION = "1.3.3"
5
5
  end
@@ -28,6 +28,8 @@ module HTTPX
28
28
 
29
29
  def content_type: () -> String
30
30
 
31
+ def to_s: () -> String
32
+
31
33
  def read: (?int? length, ?string? buffer) -> String?
32
34
 
33
35
  def rewind: () -> void
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: 1.3.2
4
+ version: 1.3.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: 2024-10-30 00:00:00.000000000 Z
11
+ date: 2024-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2
@@ -147,6 +147,7 @@ extra_rdoc_files:
147
147
  - doc/release_notes/1_3_0.md
148
148
  - doc/release_notes/1_3_1.md
149
149
  - doc/release_notes/1_3_2.md
150
+ - doc/release_notes/1_3_3.md
150
151
  files:
151
152
  - LICENSE.txt
152
153
  - README.md
@@ -265,6 +266,7 @@ files:
265
266
  - doc/release_notes/1_3_0.md
266
267
  - doc/release_notes/1_3_1.md
267
268
  - doc/release_notes/1_3_2.md
269
+ - doc/release_notes/1_3_3.md
268
270
  - lib/httpx.rb
269
271
  - lib/httpx/adapters/datadog.rb
270
272
  - lib/httpx/adapters/faraday.rb