rack-proxy 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/rack/proxy.rb +2 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce99adfb07beb9e42b72e91bd39860d2ec1efb7b
4
- data.tar.gz: dfb0ede7fc70291ba58a24c7a478691f2fa5558f
3
+ metadata.gz: 7613a66b731bfac2c3f24a961757f359894ebdce
4
+ data.tar.gz: f69050ff757d137cebc48c7afcf385661e703d33
5
5
  SHA512:
6
- metadata.gz: 602c219b1b8151a7b77f1e6751d0919cc320cc13c6b0c0ce2f4c2a7c16dca345688ad3b3a4a109480660856a0ee7125ec36d892c97a22fb92a973e8b0a7bc005
7
- data.tar.gz: 897c3d1db3ab71a70ce88bb9437b4a7be25cae6db20b2601f20e227b558a4a6b02416997dad68b03a7d38d0d6948bca74d3739fabfd877c0876043ea42a34dc6
6
+ metadata.gz: 9085c724256f803ecd1d232c41ef1811c560b4600759af715e44bbd06ab343f239a5c4db7c3da6c2ede58f8089bfdd00f76cda3f509f7e65ba99e5f6d4450c68
7
+ data.tar.gz: e158ad03e8ff6f415d39f12759659f0148d2463d85f9734b73000401ac20b395ab7226f2cc49a5db0c69e8175f807823a9d1502a151b1aeddaaf970049190ba4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-proxy (0.6.4)
4
+ rack-proxy (0.6.5)
5
5
  rack
6
6
 
7
7
  GEM
@@ -25,4 +25,4 @@ DEPENDENCIES
25
25
  test-unit
26
26
 
27
27
  BUNDLED WITH
28
- 1.16.0.pre.2
28
+ 1.16.0
@@ -5,7 +5,7 @@ module Rack
5
5
 
6
6
  # Subclass and bring your own #rewrite_request and #rewrite_response
7
7
  class Proxy
8
- VERSION = "0.6.4"
8
+ VERSION = "0.6.5"
9
9
 
10
10
  class << self
11
11
  def extract_http_request_headers(env)
@@ -117,7 +117,7 @@ module Rack
117
117
  end
118
118
  end
119
119
 
120
- headers = (target_response.respond_to?(:headers) && target_response.headers) || self.class.normalize_headers(target_response.to_hash)
120
+ headers = self.class.normalize_headers(target_response.respond_to?(:headers) ? target_response.headers : target_response.to_hash)
121
121
  body = target_response.body || [""]
122
122
  body = [body] unless body.respond_to?(:each)
123
123
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacek Becela
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-05 00:00:00.000000000 Z
11
+ date: 2018-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project: rack-proxy
102
- rubygems_version: 2.5.2.2
102
+ rubygems_version: 2.6.13
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: A request/response rewriting HTTP proxy. A Rack app.