http-2-next 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d8116cb645b3a24de8f06bd6e1d6e14ba75c57e28f6a4daf9e999bab456ac5f
4
- data.tar.gz: 9f97d8e2748411a121e1ca5e7b1de77298371638579829a5d2a5881d353c8ff3
3
+ metadata.gz: aba29aa46e044dc37656a40df1cce81dcdc185fcb166d456592e5e05b5a45295
4
+ data.tar.gz: 95ada3112561c105b5d2a9e9545aab8a29809c49bd5a70d7c64690ce80b47ccc
5
5
  SHA512:
6
- metadata.gz: 61248cc2f85d2b60d0edf3a8a4b0643836a44c66a7ded2382c86010a08da519290dba36973599ed65fea11a5727e3b8a6576c5a82782c38188e5f83adf098c82
7
- data.tar.gz: 8a61192c8c2f8c1dfbf830254eab786ebb0e59304da1e23f791911201cf08e8c93f1546831f06159e334888a05e72a0c42d3a003a998be357c05ee9f3f00e74a
6
+ metadata.gz: 3e0e50d2c307de9733f7951f9abb1a67c111da2b2740f04b7d204343410258981d28917dd0c22e7b8f6e6be9dec4bfb73f20fa118183a54268d1f4d2db43ce85
7
+ data.tar.gz: 4c5b8b4a840853e6d785b9d7565753e7e011a5db6d0b5b59fe042cd09491c10c429761a929824af83378b318d3eff43e58949ab6967bf57f6d571a89738ba77e
@@ -14,6 +14,8 @@ module HTTP2Next
14
14
  module StringExtensions
15
15
  refine String do
16
16
  def read(n)
17
+ return "".b if n == 0
18
+
17
19
  chunk = byteslice(0..n - 1)
18
20
  remaining = byteslice(n..-1)
19
21
  remaining ? replace(remaining) : clear
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTP2Next
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-2-next
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-23 00:00:00.000000000 Z
13
+ date: 2021-05-26 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Pure-ruby HTTP 2.0 protocol implementation
16
16
  email: