rack-forwarder 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 6a4c9b8f710ca294e07f789ec24a2348253289ef
4
- data.tar.gz: 2f638516a8a1136def94e159a826fd0ed01307a1
3
+ metadata.gz: ab9783317f9bf093feadeceaf9bc0639fbe6abe2
4
+ data.tar.gz: f375c23100dbf0e17bda6b6f07adcf0688a40871
5
5
  SHA512:
6
- metadata.gz: bc1dd09ffdf72f5a20aa4f121632e242c15ebb0be5b762bb20e02977e8415818211df4dad8780b855d9def7625aaf552f8fa9b1717acbd4daa22ef2bf58ca9cc
7
- data.tar.gz: d7307c3d49c3fa00abf103e0ee2a5159ff2025d6252f5919a35315c77d877a00f6e6813ab4acf6638564e7af3e57825dff257e6708ac93237076545c41455931
6
+ metadata.gz: f638a29a1b93b40561c012061b0a00fa8e28bde92d4b39e72ec7f55c31ca9530ad30c8d52addd397520dd8b86d21abf23d36d84a2470844b93814542650e2393
7
+ data.tar.gz: 4847070e8596da9bd63e56ab5630bf31163edcf1f502c4f8e4a0d719efeaa7349173c5f129b1565ede0969d20a1432c8e315e2e0083bb63217cd9fa197b71899
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.5
4
+ - 2.2.0
5
+ - 2.2.1
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Rack::Forwarder
2
2
 
3
+ [![Build Status](https://travis-ci.org/coop/rack-forwarder.svg?branch=master)](https://travis-ci.org/coop/rack-forwarder)
4
+
3
5
  Declarative forwarding rack middleware based on
4
6
  https://gist.github.com/chneukirchen/32376.
5
7
 
@@ -54,7 +54,8 @@ module Rack
54
54
 
55
55
  def headers_from_response(headers)
56
56
  HEADERS_TO_FORWARD.each_with_object(Utils::HeaderHash.new) do |header, hash|
57
- hash[header] = headers[header]
57
+ value = headers[header]
58
+ hash[header] = value if value
58
59
  end
59
60
  end
60
61
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Forwarder
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-forwarder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Cooper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-28 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,6 +103,7 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - ".gitignore"
105
105
  - ".rspec"
106
+ - ".travis.yml"
106
107
  - Gemfile
107
108
  - LICENSE.txt
108
109
  - README.md
@@ -134,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
135
  version: '0'
135
136
  requirements: []
136
137
  rubyforge_project:
137
- rubygems_version: 2.2.2
138
+ rubygems_version: 2.4.5
138
139
  signing_key:
139
140
  specification_version: 4
140
141
  summary: Forward requests