http-hpack 0.1.0 → 0.1.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: 29b1f18fa2d9df85696ed6947a352cd458b9621b24a07f0bdb60b545f89b170f
4
- data.tar.gz: 89bc9927bbe44b282132d284e07bd7d130f324d4706340e3ec4f6c559cc6c55d
3
+ metadata.gz: b8687aae9e89014c4019f3794214ceafd6ddfa5de072ca0e0e1f5681655d9922
4
+ data.tar.gz: '08dbfa364d65bc09fcfd18a4f083f60103eb240011996d1d35aee640921093db'
5
5
  SHA512:
6
- metadata.gz: ecf69ccff7790a4ddf0c4ae6064898e969ce841df18629ab3e1aa6d15266a664196c9b2a7464e3d9b4492b54ec525b2414e89abd5f1127dfb606cf624c162179
7
- data.tar.gz: a6a13dc0c7534812e363d433a3fa3e54d9121c3276a7eb90d8044ee58b0c471c814e40903ac2040235dd8475ab32252f8853cbd6cbd977b4d950ea0aee24fbe1
6
+ metadata.gz: '02419d182a23af4393aeaa285386ee7fab0a0c6e7126e8495a7e126da87e80bd38e553154937b95b533a89659f101c1b89b6ab54b4cbac45b2ec51fdf5c5dac6'
7
+ data.tar.gz: 5ff4ee9bef4d3bfd3dffd1f823f9728d3d4850d744f8b5521a4433a2f647306afe8204e7cbdad9753f335ddc3d1792691d1d4227ee0cf82b78e481c5e8a39526
data/README.md CHANGED
@@ -54,7 +54,7 @@ decompressor.decode
54
54
  Released under the MIT license.
55
55
 
56
56
  Copyright, 2018, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
57
- Copyrigh, 2013, by Ilya Grigorik.
57
+ Copyright, 2013, by Ilya Grigorik.
58
58
 
59
59
  Permission is hereby granted, free of charge, to any person obtaining a copy
60
60
  of this software and associated documentation files (the "Software"), to deal
@@ -140,14 +140,14 @@ module HTTP
140
140
  #
141
141
  # @param buffer [Buffer]
142
142
  # @return [Array] +[[name, value], ...]+
143
- def decode
144
- list = []
145
-
143
+ def decode(list = [])
146
144
  while !end?
147
- list << @context.decode(read_header)
145
+ if pair = @context.decode(read_header)
146
+ list << pair
147
+ end
148
148
  end
149
149
 
150
- list.compact
150
+ return list
151
151
  end
152
152
  end
153
153
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module HTTP
22
22
  module HPACK
23
- VERSION = "0.1.0"
23
+ VERSION = "0.1.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-hpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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: 2018-07-27 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler