ae_reverse_proxy 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/ae_reverse_proxy.gemspec +2 -2
- data/lib/ae_reverse_proxy/client.rb +5 -1
- data/lib/ae_reverse_proxy/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e369f39c4e28d9ddfae0bb90e384fd87f5a580cd2a071748ab89a3439cdf88a5
|
4
|
+
data.tar.gz: 051450a4740a954fd046a17ea500c8066b757e244a024ca2fa12cbdeea314bad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8df59d583f53d20df40658308d66837f037644141133e9906a4a4ecbd03d210f9b3c6ec77ce1d8cf02c58949a6dc49cd1340b297a85cf24530cff24395e774bb
|
7
|
+
data.tar.gz: 8595f6586839ba4386ad652ac5c556ff139dfdc0127552ec7a6f8eb3cd1246b06e52d906cda35cea79032ca73e2ad6ca363424c12a7b19f066201a02a4cbfe79
|
data/LICENSE.txt
CHANGED
data/ae_reverse_proxy.gemspec
CHANGED
@@ -14,10 +14,10 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = 'MIT'
|
15
15
|
spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
|
16
16
|
spec.require_paths = ['lib']
|
17
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.3')
|
18
17
|
|
18
|
+
spec.required_ruby_version = Gem::Requirement.new('< 3.4')
|
19
19
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
20
|
|
21
21
|
spec.add_dependency('addressable', ['>= 2.3.6', '< 3'])
|
22
|
-
spec.add_dependency('rack', ['>= 2.2.3', '<
|
22
|
+
spec.add_dependency('rack', ['>= 2.2.3', '< 4'])
|
23
23
|
end
|
@@ -118,12 +118,16 @@ module AeReverseProxy
|
|
118
118
|
env
|
119
119
|
.reject { |k, v| !(/^HTTP_[A-Z_]+$/ === k) || k == 'HTTP_VERSION' || v.nil? }
|
120
120
|
.map { |k, v| [reconstruct_header_name(k), v] }
|
121
|
-
.each_with_object(
|
121
|
+
.each_with_object(headers.new) do |k_v, hash|
|
122
122
|
k, v = k_v
|
123
123
|
hash[k] = v
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
+
def headers
|
128
|
+
Rack.release >= '3' ? Rack::Headers : Rack::Utils::HeaderHash
|
129
|
+
end
|
130
|
+
|
127
131
|
def reconstruct_header_name(name)
|
128
132
|
name.sub(/^HTTP_/, '').gsub('_', '-')
|
129
133
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae_reverse_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AppFolio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 2.2.3
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '4'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: 2.2.3
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '4'
|
53
53
|
description: Gem for reverse proxying requests.
|
54
54
|
email: opensource@appfolio.com
|
55
55
|
executables: []
|
@@ -73,16 +73,16 @@ require_paths:
|
|
73
73
|
- lib
|
74
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- - "
|
76
|
+
- - "<"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
78
|
+
version: '3.4'
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.5.3
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Gem for reverse proxying requests.
|