protocol-http2 0.9.1 → 0.9.2

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: 664e6edd764651712185896646bf4b29a0285901d5386794a194c46510b65a49
4
- data.tar.gz: 71348b749da8a0e42becff14f0a8e70ce09f8ddd0bcc0e46d7a8e7562fbf6f10
3
+ metadata.gz: 95a54d3cabb7d72cd94113264a0e0ff7d0bef7ca571ed867a9387cc9f6cbe6f2
4
+ data.tar.gz: bd026f41526251de43322cbcdb2ef66bd79826abef0e65ebef2bfa3b1f59909e
5
5
  SHA512:
6
- metadata.gz: 56403ed4ecfeba6e0badcb310c83d5477a13a47e33542d663e245b6ffb0b943b02968746681f23b9c330244b9564ce912e856a8fea7065b7553a820988a839e2
7
- data.tar.gz: 01bd6caa3e90393ccadc36f1103f80fa026bb1ce52fdf73ed83bd8fae7774bab95e7b69eb21675c832c38f99b876fd1eedb21b97e24e9dceb813d950822331b1
6
+ metadata.gz: bc52ebd072768078470fc514cc06d569edf6b6fef3f631c46739a6b10cd41de67eefdcc8d8303262ce411b19367bbdad6e957a4f9f6a9cb0bcd9ccdad4b3e4a0
7
+ data.tar.gz: 5bb43ef14cef99fff2b8e3c2234a1c94ffd1041ca8641aa0d7b5d1282115fc09e4d88c464d5d9143cf6e683169e63ba52023311dcf7060275398956a0b0ee02a
data/.travis.yml CHANGED
@@ -4,6 +4,7 @@ cache: bundler
4
4
 
5
5
  matrix:
6
6
  include:
7
+ - rvm: 2.3
7
8
  - rvm: 2.4
8
9
  - rvm: 2.5
9
10
  - rvm: 2.6
@@ -0,0 +1,38 @@
1
+ # Copyright, 2019, by Yuta Iwama.
2
+ # Copyright, 2019, by Samuel G. D. Williams. <http://www.codeotaku.com>
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in
12
+ # all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
21
+
22
+ require 'protocol/http/error'
23
+
24
+ module Protocol
25
+ module HTTP2
26
+ module Extensions
27
+ module Unpack
28
+ def unpack1(template)
29
+ unpack(template).first
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+
36
+ unless String.instance_methods.include?(:unpack1)
37
+ String.prepend(Protocol::HTTP2::Extensions::Unpack)
38
+ end
@@ -21,6 +21,9 @@
21
21
 
22
22
  require_relative 'error'
23
23
 
24
+ # This only exists to support Ruby 2.3:
25
+ require_relative 'extensions/unpack'
26
+
24
27
  module Protocol
25
28
  module HTTP2
26
29
  END_STREAM = 0x1
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HTTP2
23
- VERSION = "0.9.1"
23
+ VERSION = "0.9.2"
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.9.1
4
+ version: 0.9.2
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-07-01 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: protocol-hpack
@@ -115,6 +115,7 @@ files:
115
115
  - lib/protocol/http2/continuation_frame.rb
116
116
  - lib/protocol/http2/data_frame.rb
117
117
  - lib/protocol/http2/error.rb
118
+ - lib/protocol/http2/extensions/unpack.rb
118
119
  - lib/protocol/http2/flow_control.rb
119
120
  - lib/protocol/http2/frame.rb
120
121
  - lib/protocol/http2/framer.rb