httpx 0.11.0 → 0.11.1

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: e5a33fd07fae25308cb791a086313c8dd8aa05cc7bc24504c92c17e20b692688
4
- data.tar.gz: 8be24aad50c50bfea6667a94f7afade82dada7d2512177430ea5b04593f2e296
3
+ metadata.gz: 9b21be17b0c6a6d3e2f60a97582b88f33dc1f62e09e5555cabfc2d6bea1f06a7
4
+ data.tar.gz: e0ca927150864a80a8050cc9fbc2c23e58b55452b536ce4301eceecebf1c6d37
5
5
  SHA512:
6
- metadata.gz: 3b03f47c4ef852af01d9d4eb6895921e6601d33e8c0261b25e34309c663c481a77ce9c5161124efdb02518b1a7c89f3e3440b823348106d492e3d27daf66ab6e
7
- data.tar.gz: e4b2961e9d0b6d11348cf81eae7dbb0e744878c47a51ef584429ab89f32eadc24f9f195ceeb68ecfcb553c19b2a333818cba0e867c0cb992bec66b99dcd1def7
6
+ metadata.gz: 1493d50a5b49dd7c83f48078d582f874cc204d3e5df3442d7ea8308b31e6fd011e30cc3fdc5f1825d0daebd270c22af387700ab8f6d2fb9183d2e1fb63bd7265
7
+ data.tar.gz: ac48ea08cacc65a4948fea8a2abdd50fe7d7fd30c6260400cd61197ea7e6e8d87de2b4750ca1452f242569bbf6dc304c14865f809e7871a4f55d33e7e5543c03
@@ -0,0 +1 @@
1
+ 0_11_1.md
@@ -40,14 +40,15 @@ module HTTPX
40
40
  end
41
41
 
42
42
  def write(buffer)
43
- siz = @io.send(buffer, 0, @host, @port)
43
+ siz = @io.send(buffer.to_s, 0, @host, @port)
44
44
  log { "WRITE: #{siz} bytes..." }
45
45
  buffer.shift!(siz)
46
46
  siz
47
47
  end
48
48
 
49
49
  # :nocov:
50
- if RUBY_VERSION < "2.3"
50
+ if (RUBY_ENGINE == "truffleruby" && RUBY_ENGINE_VERSION < "21.1.0") ||
51
+ RUBY_VERSION < "2.3"
51
52
  def read(size, buffer)
52
53
  data, _ = @io.recvfrom_nonblock(size)
53
54
  buffer.replace(data)
@@ -94,7 +94,7 @@ module HTTPX
94
94
  end
95
95
 
96
96
  def write(chunk)
97
- return super unless defined?(@_inflaters)
97
+ return super unless defined?(@_inflaters) && !chunk.empty?
98
98
 
99
99
  chunk = decompress(chunk)
100
100
  super(chunk)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
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.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-15 00:00:00.000000000 Z
11
+ date: 2021-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -47,36 +47,37 @@ extra_rdoc_files:
47
47
  - LICENSE.txt
48
48
  - README.md
49
49
  - doc/release_notes/0_0_1.md
50
- - doc/release_notes/0_1_0.md
51
- - doc/release_notes/0_0_5.md
50
+ - doc/release_notes/0_0_2.md
51
+ - doc/release_notes/0_0_3.md
52
52
  - doc/release_notes/0_0_4.md
53
- - doc/release_notes/0_6_5.md
54
- - doc/release_notes/0_6_1.md
55
- - doc/release_notes/0_7_0.md
56
- - doc/release_notes/0_6_0.md
57
- - doc/release_notes/0_10_2.md
58
- - doc/release_notes/0_8_2.md
59
- - doc/release_notes/0_6_4.md
60
- - doc/release_notes/0_9_0.md
61
- - doc/release_notes/0_6_3.md
53
+ - doc/release_notes/0_0_5.md
54
+ - doc/release_notes/0_10_0.md
62
55
  - doc/release_notes/0_10_1.md
56
+ - doc/release_notes/0_10_2.md
63
57
  - doc/release_notes/0_11_0.md
64
- - doc/release_notes/0_8_1.md
65
- - doc/release_notes/0_5_0.md
66
- - doc/release_notes/0_6_7.md
58
+ - doc/release_notes/0_11_1.md
59
+ - doc/release_notes/0_1_0.md
60
+ - doc/release_notes/0_2_0.md
61
+ - doc/release_notes/0_2_1.md
62
+ - doc/release_notes/0_3_0.md
63
+ - doc/release_notes/0_3_1.md
64
+ - doc/release_notes/0_4_0.md
67
65
  - doc/release_notes/0_4_1.md
66
+ - doc/release_notes/0_5_0.md
68
67
  - doc/release_notes/0_5_1.md
69
- - doc/release_notes/0_6_6.md
70
- - doc/release_notes/0_4_0.md
68
+ - doc/release_notes/0_6_0.md
69
+ - doc/release_notes/0_6_1.md
71
70
  - doc/release_notes/0_6_2.md
72
- - doc/release_notes/0_10_0.md
71
+ - doc/release_notes/0_6_3.md
72
+ - doc/release_notes/0_6_4.md
73
+ - doc/release_notes/0_6_5.md
74
+ - doc/release_notes/0_6_6.md
75
+ - doc/release_notes/0_6_7.md
76
+ - doc/release_notes/0_7_0.md
73
77
  - doc/release_notes/0_8_0.md
74
- - doc/release_notes/0_3_0.md
75
- - doc/release_notes/0_2_1.md
76
- - doc/release_notes/0_0_3.md
77
- - doc/release_notes/0_0_2.md
78
- - doc/release_notes/0_3_1.md
79
- - doc/release_notes/0_2_0.md
78
+ - doc/release_notes/0_8_1.md
79
+ - doc/release_notes/0_8_2.md
80
+ - doc/release_notes/0_9_0.md
80
81
  files:
81
82
  - LICENSE.txt
82
83
  - README.md
@@ -89,6 +90,7 @@ files:
89
90
  - doc/release_notes/0_10_1.md
90
91
  - doc/release_notes/0_10_2.md
91
92
  - doc/release_notes/0_11_0.md
93
+ - doc/release_notes/0_11_1.md
92
94
  - doc/release_notes/0_1_0.md
93
95
  - doc/release_notes/0_2_0.md
94
96
  - doc/release_notes/0_2_1.md
@@ -258,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
260
  - !ruby/object:Gem::Version
259
261
  version: '0'
260
262
  requirements: []
261
- rubygems_version: 3.1.4
263
+ rubygems_version: 3.2.3
262
264
  signing_key:
263
265
  specification_version: 4
264
266
  summary: HTTPX, to the future, and beyond