ae_reverse_proxy 2.0.0 → 2.1.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 +20 -0
- data/ae_reverse_proxy.gemspec +16 -14
- data/lib/ae_reverse_proxy/version.rb +5 -0
- data/lib/ae_reverse_proxy.rb +0 -1
- metadata +23 -13
- data/Gemfile +0 -15
- data/README.md +0 -41
- data/Rakefile +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8845dd6101518ad154af0c9f21905d1cf83cc70015c5b53c292c5adabea2aac4
|
4
|
+
data.tar.gz: b011f7ced6382e33085c3e21bc1291c7649bfa80e741a8427390a7acd7d73a2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e4776255cc6356afb5d7f4fccbe319f128591e193cb9db5005228223fc59eff11369f97396fea5f87ce86482aaf004210f07679e580dd46b2a0797b33e51315
|
7
|
+
data.tar.gz: e27b7c3700636ea51ce8d5cd0b2cf8ae63e7758716dab1f880d65ef37ba6534f2f3df2dfac3fae235859c8f890860121418942bedf0e3f41b9224c8ab3d0b710
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2021-2022 AppFolio, Inc
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/ae_reverse_proxy.gemspec
CHANGED
@@ -1,21 +1,23 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative 'lib/ae_reverse_proxy'
|
3
|
+
require_relative 'lib/ae_reverse_proxy/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.platform
|
9
|
-
spec.
|
10
|
-
spec.email
|
11
|
-
spec.
|
12
|
-
spec.
|
13
|
-
spec.
|
14
|
-
spec.
|
15
|
-
spec.files
|
16
|
-
spec.require_paths
|
6
|
+
spec.name = 'ae_reverse_proxy'
|
7
|
+
spec.version = AeReverseProxy::VERSION
|
8
|
+
spec.platform = Gem::Platform::RUBY
|
9
|
+
spec.author = 'AppFolio'
|
10
|
+
spec.email = 'opensource@appfolio.com'
|
11
|
+
spec.description = 'Gem for reverse proxying requests.'
|
12
|
+
spec.summary = spec.description
|
13
|
+
spec.homepage = 'https://github.com/appfolio/ae_reverse_proxy'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
|
16
|
+
spec.require_paths = ['lib']
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.3')
|
18
|
+
|
17
19
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
18
20
|
|
19
|
-
spec.
|
20
|
-
spec.
|
21
|
+
spec.add_dependency('addressable', ['>= 2.3.6', '< 3'])
|
22
|
+
spec.add_dependency('rack', ['>= 2.2.3', '< 3'])
|
21
23
|
end
|
data/lib/ae_reverse_proxy.rb
CHANGED
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.1.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: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.3.6
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,35 +27,42 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 2.3.6
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rack
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: 2.2.3
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '3'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
39
48
|
- !ruby/object:Gem::Version
|
40
49
|
version: 2.2.3
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '3'
|
41
53
|
description: Gem for reverse proxying requests.
|
42
|
-
email:
|
43
|
-
- opensource@appfolio.com
|
54
|
+
email: opensource@appfolio.com
|
44
55
|
executables: []
|
45
56
|
extensions: []
|
46
57
|
extra_rdoc_files: []
|
47
58
|
files:
|
48
|
-
-
|
49
|
-
- README.md
|
50
|
-
- Rakefile
|
59
|
+
- LICENSE.txt
|
51
60
|
- ae_reverse_proxy.gemspec
|
52
61
|
- lib/ae_reverse_proxy.rb
|
53
62
|
- lib/ae_reverse_proxy/client.rb
|
54
63
|
- lib/ae_reverse_proxy/controller_callback_method.rb
|
55
|
-
|
64
|
+
- lib/ae_reverse_proxy/version.rb
|
65
|
+
homepage: https://github.com/appfolio/ae_reverse_proxy
|
56
66
|
licenses:
|
57
67
|
- MIT
|
58
68
|
metadata:
|
@@ -65,14 +75,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
75
|
requirements:
|
66
76
|
- - ">="
|
67
77
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
78
|
+
version: 2.6.3
|
69
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
80
|
requirements:
|
71
81
|
- - ">="
|
72
82
|
- !ruby/object:Gem::Version
|
73
83
|
version: '0'
|
74
84
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.3.3
|
76
86
|
signing_key:
|
77
87
|
specification_version: 4
|
78
88
|
summary: Gem for reverse proxying requests.
|
data/Gemfile
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org' do
|
4
|
-
group :test, :development do
|
5
|
-
gem 'bundler', '>= 1.10.4', '< 3'
|
6
|
-
gem 'minitest', '>= 5.8', '< 6'
|
7
|
-
gem 'mocha', '>= 1.11', '< 2'
|
8
|
-
gem 'pry'
|
9
|
-
gem 'rake', '>= 13', '< 14'
|
10
|
-
gem 'rubocop', '~> 1.8', require: false
|
11
|
-
gem 'webmock', '~> 3.11.1'
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
gemspec
|
data/README.md
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# AeReverseProxy
|
2
|
-
|
3
|
-
A reverse proxy accepts a request from a client, forwards it to a server that can fulfill it, and returns the server's response to the client
|
4
|
-
|
5
|
-
This is forked from https://github.com/axsuul/rails-reverse-proxy. Thanks to https://github.com/axsuul and contributors.
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'ae_reverse_proxy'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install ae_reverse_proxy
|
22
|
-
|
23
|
-
Use it in a console with:
|
24
|
-
|
25
|
-
$ ./console
|
26
|
-
|
27
|
-
## Usage
|
28
|
-
|
29
|
-
```ruby
|
30
|
-
class ImageController < ActionController::Base
|
31
|
-
include AeReverseProxy::ControllerCallbackMethod
|
32
|
-
|
33
|
-
before_action do
|
34
|
-
reverse_proxy('https://www.another_server.com')
|
35
|
-
end
|
36
|
-
end
|
37
|
-
```
|
38
|
-
|
39
|
-
## License
|
40
|
-
|
41
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
DELETED