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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8845dd6101518ad154af0c9f21905d1cf83cc70015c5b53c292c5adabea2aac4
4
- data.tar.gz: b011f7ced6382e33085c3e21bc1291c7649bfa80e741a8427390a7acd7d73a2a
3
+ metadata.gz: e369f39c4e28d9ddfae0bb90e384fd87f5a580cd2a071748ab89a3439cdf88a5
4
+ data.tar.gz: 051450a4740a954fd046a17ea500c8066b757e244a024ca2fa12cbdeea314bad
5
5
  SHA512:
6
- metadata.gz: 5e4776255cc6356afb5d7f4fccbe319f128591e193cb9db5005228223fc59eff11369f97396fea5f87ce86482aaf004210f07679e580dd46b2a0797b33e51315
7
- data.tar.gz: e27b7c3700636ea51ce8d5cd0b2cf8ae63e7758716dab1f880d65ef37ba6534f2f3df2dfac3fae235859c8f890860121418942bedf0e3f41b9224c8ab3d0b710
6
+ metadata.gz: 8df59d583f53d20df40658308d66837f037644141133e9906a4a4ecbd03d210f9b3c6ec77ce1d8cf02c58949a6dc49cd1340b297a85cf24530cff24395e774bb
7
+ data.tar.gz: 8595f6586839ba4386ad652ac5c556ff139dfdc0127552ec7a6f8eb3cd1246b06e52d906cda35cea79032ca73e2ad6ca363424c12a7b19f066201a02a4cbfe79
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2021-2022 AppFolio, Inc
1
+ Copyright (c) 2021-2024 AppFolio, Inc
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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', '< 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(Rack::Utils::HeaderHash.new) do |k_v, hash|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AeReverseProxy
4
- VERSION = '2.1.0'
4
+ VERSION = '2.2.0'
5
5
  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.1.0
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: 2022-02-23 00:00:00.000000000 Z
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: '3'
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: '3'
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: 2.6.3
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.3.3
85
+ rubygems_version: 3.5.3
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Gem for reverse proxying requests.