rails-reverse-proxy 0.12.0 → 0.13.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
  SHA256:
3
- metadata.gz: acf23d29679d737e49136de095157258980b48880b63e69bb00f1fbcd0136fdc
4
- data.tar.gz: da88db569650043b74f76cf4656bfcd30501b0cded0ed0888306115fa089ddc5
3
+ metadata.gz: cf7252f3d979f055cc3e3877f1db5c0a0d4069c9b322d1faf9b066e6e7b34680
4
+ data.tar.gz: 8c8099bdb9d362d1d4e081257d56c342464dd07ad77a75ffc11c2a231e63df8a
5
5
  SHA512:
6
- metadata.gz: 120d187b75a971b95d7f8cca93631994ade98e98f72cc349d03787f9f9b470482dec3bbcd5175c7a24f4493093552ac44e721a9cfb68e6ff3738acaba8b19ddc
7
- data.tar.gz: fcda14733a9ae6db003b60ca646382aae400ab5f36934298aa9ffcf459f7199d5c8982028f2ec4eb4022101de234f11d3474292610c1f5f67934c48c115bff6a
6
+ metadata.gz: 8b85fc52c75fd5c55e66993b7ce206f3e7dabf318af9890328b98d6219ec65e4c654534a3d0c437ef04e38129f16b4010695c41651a0459227862daca0871ecc
7
+ data.tar.gz: 27b6bbfb5f53ad2b0595b36fd203ae8a4e55159130a31ec311a282d422c8b69cab170a28906029ee3f35f052cfb498120a9d632ba97a3a0d0f62ebeec224ba52
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.13.0
2
+
3
+ BUG FIXES:
4
+
5
+ * **Rack 3 compatibility:** Use `Rack::Headers` if defined (i.e. if using Rack >= 3.0.0), otherwise use `Rack::Utils::HeaderHash` [[#76](https://github.com/axsuul/rails-reverse-proxy/pull/76), [davidrunger](https://github.com/davidrunger)]
6
+
1
7
  ## 0.11.0
2
8
 
3
9
  BUG FIXES:
data/README.md CHANGED
@@ -98,8 +98,10 @@ All pull requests will become first class citizens.
98
98
  Special thanks to our contributors!
99
99
 
100
100
  - [aardvarkk](https://github.com/aardvarkk)
101
+ - [Arjeno](https://github.com/Arjeno)
101
102
  - [avinashkoulavkar](https://github.com/avinashkoulavkar)
102
103
  - [bapirex](https://github.com/bapirex)
104
+ - [davidrunger](https://github.com/davidrunger)
103
105
  - [jcs](https://github.com/jcs)
104
106
  - [kylewlacy](https://github.com/kylewlacy)
105
107
  - [marcosbeirigo](https://github.com/marcosbeirigo)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.13.0
@@ -3,6 +3,15 @@ require 'addressable/uri'
3
3
 
4
4
  module ReverseProxy
5
5
  class Client
6
+ RackHeaders =
7
+ if Rack.const_defined?('Headers')
8
+ # Rack >= 3.0.0
9
+ Rack::Headers
10
+ else
11
+ # Rack < 3.0.0
12
+ Rack::Utils::HeaderHash
13
+ end
14
+
6
15
  @@callback_methods = [
7
16
  :on_response,
8
17
  :on_set_cookies,
@@ -132,7 +141,7 @@ module ReverseProxy
132
141
  !(/^HTTP_[A-Z_]+$/ === k) || k == "HTTP_VERSION" || v.nil?
133
142
  end.map do |k, v|
134
143
  [reconstruct_header_name(k), v]
135
- end.inject(Rack::Utils::HeaderHash.new) do |hash, k_v|
144
+ end.inject(RackHeaders.new) do |hash, k_v|
136
145
  k, v = k_v
137
146
  hash[k] = v
138
147
  hash
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: rails-reverse-proxy 0.12.0 ruby lib
5
+ # stub: rails-reverse-proxy 0.13.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rails-reverse-proxy".freeze
9
- s.version = "0.12.0"
9
+ s.version = "0.13.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["James Hu".freeze]
14
- s.date = "2023-03-02"
14
+ s.date = "2024-02-21"
15
15
  s.description = "Reverse proxy for Ruby on Rails".freeze
16
16
  s.email = "hello@james.hu".freeze
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-reverse-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2024-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack