http-protocol 0.6.1 → 0.6.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: 06c19174884cf3035af9e9f8ae64625b8973238ee4c0e6ae8b55a5d1a5d7392c
4
- data.tar.gz: 0b82b044493d1c712d920f08932062d731abc1b204ed79c557ece5aaf340e9a6
3
+ metadata.gz: c1b76ea55a51799658ab7d9838a5f0c59fd6928e62907093fe5082962db45633
4
+ data.tar.gz: d4af58357d2c2acf313ce20aba89c3ba4133214a630bcbca237850718d4ed030
5
5
  SHA512:
6
- metadata.gz: bddc90de39bfc55f4ee72d44701e248828342a7a171d80d874e1df5ea94944544030b4edbfb3f9017cdfbf6df0564fc0b219dabe6969bee9b02cdb1d221aa5d6
7
- data.tar.gz: f1981cbbce0573ac3de49212193ab7cdabc32ec3e865396caac80a6c5cd6728fbcfae64418e1ea4b972e24b2f861c8011244c6d7a8d1f4e7628898a2e03b67f6
6
+ metadata.gz: 3f356e2d520ec0b4403b900699895b4af175e94860cb6e7d9dd402298d9e299c3f71f68e2cafb2af282011f4d9d15f933832b4643394999b8979cf96b2dc9c33
7
+ data.tar.gz: 948892bbb053c697a59bd5efa9c8aafa99425a1b401d88b044e7d2a274e4c373f8e13af478b99785dbd41700ae9cb62d459480f4b771ebfb020a4262935787c0
@@ -196,6 +196,7 @@ module HTTP
196
196
  end
197
197
  end
198
198
 
199
+ # Used for merging objects into a sequential list of headers. Normalizes header keys and values.
199
200
  class Merged
200
201
  def initialize(*all)
201
202
  @all = all
@@ -205,10 +206,11 @@ module HTTP
205
206
  @all << headers
206
207
  end
207
208
 
209
+ # @yield [String, String] header key (lower case) and value (as string).
208
210
  def each(&block)
209
211
  @all.each do |headers|
210
212
  headers.each do |key, value|
211
- yield key, value.to_s
213
+ yield key.downcase, value.to_s
212
214
  end
213
215
  end
214
216
  end
@@ -20,6 +20,6 @@
20
20
 
21
21
  module HTTP
22
22
  module Protocol
23
- VERSION = "0.6.1"
23
+ VERSION = "0.6.2"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.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: 2018-10-14 00:00:00.000000000 Z
11
+ date: 2018-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-hpack