protocol-http2 0.2.0 → 0.2.1

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: 1a60f785211de9969cb282720013a13d2586d07b740ef1c7d944dab9da6dfd47
4
- data.tar.gz: 27698d4cbbedb0aa3fea412962c36dc72f081d0c3e494bfaffc5beaa37d17806
3
+ metadata.gz: 6a91f84d5d8130880337a867acb5e6ba54087753f7a7bc4dab7cf6bdad36125c
4
+ data.tar.gz: 256472a76b2a51ede88de4797ee5d9b8227b4ef2b9af37303f1afa5428eabf32
5
5
  SHA512:
6
- metadata.gz: 525676f325a064c8e060352d8e865c99a7353a271fd44893ad7aa645f132cffb9e83b40d80c6e430496f517f7f777c3dac5dd666db343e14b3845b623065a375
7
- data.tar.gz: d7da9b3249e5547f18378f2bb4fc060385d49469f5759af7dd775280567fa89334cd04b8c805573ec522ad7a4225fbd5ae683d9a685a4f1829af2d66cc317f31
6
+ metadata.gz: fbb6c26d370e900e5bbbae94ec33b2b9343356890f244413deb0371000263851607d79ad99d66b37223eaaaaca5faa33555b2506e9f3662e99ed57cc178f9a37
7
+ data.tar.gz: 711c077f0e940bc49181bd76fe7743db396a98bf246de09e39506c075f22d6fca86a05f7b3314251ccde5d99d75c0f2a1d9d59cb2e18aa9e59d7b4d42fb5caed
@@ -102,11 +102,12 @@ module Protocol
102
102
 
103
103
  def read_header
104
104
  if buffer = @stream.read(9)
105
- return Frame.parse_header(buffer)
106
- else
107
- # TODO: Is this necessary? I thought the IO would throw this.
108
- raise EOFError
105
+ if buffer.bytesize == 9
106
+ return Frame.parse_header(buffer)
107
+ end
109
108
  end
109
+
110
+ raise EOFError, "Could not read frame header!"
110
111
  end
111
112
  end
112
113
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HTTP2
23
- VERSION = "0.2.0"
23
+ VERSION = "0.2.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: protocol-hpack