protocol-hpack 1.0.0 → 1.1.0

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: 884a30b04a1a5aab63ead58d23223938063f3767a2844d84f50a814dcbee096a
4
- data.tar.gz: 7a2853e7226d7089bcc88a0a7d152cb41822f0ffc4de8abe09704d5d21c61f81
3
+ metadata.gz: 8842abc9eb7e88d37fc4ed8040b6f4c6c5ec290993fd342dcc22a7d46ffcee1d
4
+ data.tar.gz: 6a6a2e09a5ebf8b8e7d1a6aa0f95b3d4bfc167c0d19ca9c47535b08428bb6986
5
5
  SHA512:
6
- metadata.gz: bd4b6057adb83d0a6205b6ab5d5f9fca181ca527d7432b2844b6be8c939800b14d45c6152cacb78b35f90033cd520efeb030ec7a8588eff8c7575b7aa40080de
7
- data.tar.gz: 2fb7ae9c3bca275c8cc6130eed7987bbfbd19b404d303f3a16e90b13b4ce883b16d6a5b934ce281b4c156c9da35cfb3ad3d8effd43a67d8e5773c69e9174f4ef
6
+ metadata.gz: c43f98660e1eb5dc2508bdc95ee874699e69b21c23e12344c91f34897d50da207564cba0a61082b55cc522ffddf97fb02c2a0d59ee5f217b76fddb24559d3447
7
+ data.tar.gz: 5328a19baee03e84dd3dbfec14ca5d36a7b0deaa822eadfc0bdae5e7439d73c1b12c6d9194a5202fc9ed4cf43c74a715a5e27bede8b298aa20e9ca2037d5706e
@@ -1,23 +1,19 @@
1
1
  language: ruby
2
- sudo: required
3
2
  dist: xenial
4
3
  cache: bundler
5
4
 
6
- before_script:
7
- - gem update --system
8
- - gem install bundler
9
-
10
5
  matrix:
11
6
  include:
12
- - rvm: 2.3
13
7
  - rvm: 2.4
14
8
  - rvm: 2.5
15
9
  - rvm: 2.6
10
+ - rvm: 2.6
11
+ env: COVERAGE=PartialSummary,Coveralls
12
+ - rvm: truffleruby
16
13
  - rvm: jruby-head
17
14
  env: JRUBY_OPTS="--debug -X+O"
18
15
  - rvm: ruby-head
19
- - rvm: rbx-3
20
16
  allow_failures:
17
+ - rvm: truffleruby
21
18
  - rvm: ruby-head
22
19
  - rvm: jruby-head
23
- - rvm: rbx-3
data/Gemfile CHANGED
@@ -1,10 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in http-hpack.gemspec
3
+ # Specify your gem's dependencies in protocol-hpack.gemspec
6
4
  gemspec
7
-
8
- group :test do
9
- gem 'covered', require: 'covered/rspec' if RUBY_VERSION >= "2.6.0"
10
- end
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Provides a compressor and decompressor for HTTP 2.0 headers, HPACK, as defined by [RFC7541](https://tools.ietf.org/html/rfc7541).
4
4
 
5
+ [![Build Status](https://secure.travis-ci.com/socketry/protocol-hpack.svg)](http://travis-ci.com/socketry/protocol-hpack)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -0,0 +1,30 @@
1
+ # Copyright, 2018, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
+ # Copyrigh, 2013, by Ilya Grigorik.
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
+ module Protocol
23
+ module HPACK
24
+ class Error < StandardError
25
+ end
26
+
27
+ class CompressionError < Error
28
+ end
29
+ end
30
+ end
@@ -20,12 +20,10 @@
20
20
  # THE SOFTWARE.
21
21
 
22
22
  require_relative 'huffman/machine'
23
+ require_relative 'error'
23
24
 
24
25
  module Protocol
25
26
  module HPACK
26
- class CompressionError < RuntimeError
27
- end
28
-
29
27
  # Implementation of huffman encoding for HPACK
30
28
  #
31
29
  # - http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-10
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HPACK
23
- VERSION = "1.0.0"
23
+ VERSION = "1.1.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-hpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
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-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: covered
@@ -86,6 +86,7 @@ files:
86
86
  - lib/protocol/hpack/compressor.rb
87
87
  - lib/protocol/hpack/context.rb
88
88
  - lib/protocol/hpack/decompressor.rb
89
+ - lib/protocol/hpack/error.rb
89
90
  - lib/protocol/hpack/huffman.rb
90
91
  - lib/protocol/hpack/huffman/machine.rb
91
92
  - lib/protocol/hpack/version.rb
@@ -109,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
110
  - !ruby/object:Gem::Version
110
111
  version: '0'
111
112
  requirements: []
112
- rubygems_version: 3.0.2
113
+ rubygems_version: 3.0.3
113
114
  signing_key:
114
115
  specification_version: 4
115
116
  summary: A compresssor and decompressor for HTTP 2.0 HPACK.