rack-delegate 0.3.0 → 0.4.0

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
  SHA1:
3
- metadata.gz: 856faf0870ee7daa0433a674f87dfc8380947c53
4
- data.tar.gz: 094fb2e6ff4307150a05f097a4c3326f26a240b8
3
+ metadata.gz: b827bc57057bfb1f8d44c1d4587e0722e99d1be8
4
+ data.tar.gz: 20866a6684f0dc06f29e04d1e3f00b3fe6e2c996
5
5
  SHA512:
6
- metadata.gz: 5cc3a14a4943c56ca31ca1cfe407daf203983da252b7502d8125bff3b84694add043caa452b13a17386551ac93275b1d81a167589e431dfb5af299338a5cab01
7
- data.tar.gz: ee3c816bd192adfab66012420a8bfe8932066f6e627da59fd1e276ffc56b78b99a06d3e4735419e9dd61bcf6f8cbe951f75469eadab31e0667e9863b71562bbc
6
+ metadata.gz: ca86c524f8a984abd632894bd24a9e76770414e4a0f374abb0bf332b00e949c5eb959122a82bd0bdbb6b5b7e2cd3b75812709d93aaff6af35d7a4f083900111c
7
+ data.tar.gz: 70fd9e5e260893a0b5482b6c3b53d11d0e7c97c2ac60810aa4d6c481344132dc4051047b4afca8c57b355e8599198ddf819a9757dfb93645a1f1a6d6d6e5cf74
@@ -40,6 +40,10 @@ module Rack
40
40
  def normalize_headers_for(http_response)
41
41
  http_response.to_hash.tap do |headers|
42
42
  headers.delete('status')
43
+
44
+ # Since Ruby 2.1 Net::HTTPHeader#to_hash returns the value as an
45
+ # array of values and not a string. Try to coerce it for 2.0 support.
46
+ headers.each { |header, value| headers[header] = Array(value).join('; ') }
43
47
  end
44
48
  end
45
49
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Delegate
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-delegate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genadi Samokovarov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-30 00:00:00.000000000 Z
11
+ date: 2016-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack