protocol-hpack 1.4.0 → 1.4.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: e2fee2fc90ffa4911e2f5eaaee63c513896c1899f3b44043e737e9f3c33da7cf
4
- data.tar.gz: bda8f069137304a24af10fe3cd112308c377efd739e8cd325b5786a145398a5f
3
+ metadata.gz: 775932600bc2c9dac28c2048df0fe77d11003811704412df9cc5158fef9652c9
4
+ data.tar.gz: 72805181100f90189d7372603e73833e66389371116fba3e81e97c04cfe8717c
5
5
  SHA512:
6
- metadata.gz: 5fdb870d4cd06c50dabd5904ac5f02889269dbd41a014a6631f2d209b0dc82343f5dd9e70dd5b85de78837aa21c81a8011c30e7d9c81a98c11fd7c5cc5a47d03
7
- data.tar.gz: 4c5c287482c394ecbf019a41f0ce8030e1128fe8e39505e862aa8c8d5ba817eae4377b6b4a41bcae9500b9fcb3b86c76496ec494e71ebd29d4224c00f79bd59f
6
+ metadata.gz: 18660f1c3bf298d4289a1b21bb56aa5926e7613f47da9da7276ef59171832e548b1bc9642647d970873c9c2672f2c78e40ea604bad72393d7c96896033706f87
7
+ data.tar.gz: db4617535a39c2c2b70ae750e4ab4f72a5438ca47f7c1d629f33541fe9cb6886567a438c1fd11bc5be232e399f736e0bf11c9197b2a30cf6ce57924b560f9031
@@ -303,13 +303,15 @@ module Protocol
303
303
 
304
304
  private
305
305
 
306
- # Add a name-value pair to the dynamic table.
307
- # Older entries might have been evicted so that
308
- # the new entry fits in the dynamic table.
306
+ # Add a name-value pair to the dynamic table. Older entries might have been evicted so that the new entry fits in the dynamic table. The command and the component strings will be frozen.
309
307
  #
310
308
  # @param command [Array] +[name, value]+
311
309
  def add_to_table(command)
312
310
  return unless size_check(command)
311
+
312
+ command.each(&:freeze)
313
+ command.freeze
314
+
313
315
  @table.unshift(command)
314
316
  end
315
317
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Protocol
22
22
  module HPACK
23
- VERSION = "1.4.0"
23
+ VERSION = "1.4.1"
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.4.0
4
+ version: 1.4.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-06-18 00:00:00.000000000 Z
11
+ date: 2019-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: covered
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.0.3
113
+ rubygems_version: 3.0.2
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: A compresssor and decompressor for HTTP 2.0 HPACK.