rails-reverse-proxy 0.9.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +6 -7
- data/Gemfile.lock +87 -128
- data/README.md +13 -12
- data/VERSION +1 -1
- data/lib/reverse_proxy/client.rb +17 -19
- data/rails-reverse-proxy.gemspec +34 -43
- metadata +31 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6456ffe718138ee9846ef5579c7f67e9aa60339e6b208e4c985c3b64caa7cca8
|
4
|
+
data.tar.gz: 993aa4fe65082f18776066abc7b013722407b5eeb41f0442a6e0776ba8676b64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 801d5819e6d0538512588927f7dc98bd451dc4ad3bcdaaaa73c65a2b8e58280bb7e2389fa7f682f28c7abeb121da6774d2463c44dbc62b1851d05c3be173a10a
|
7
|
+
data.tar.gz: 25777c89c3516b8b306a26a52d6b938d02f70b73b2b0ffd0003a0974afec298c5428f1b7938710d0162b653f17293ddd703540fa45853fbd147a6cef9b55831a
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.4
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
## 0.11.0
|
2
|
+
|
3
|
+
BUG FIXES:
|
4
|
+
|
5
|
+
* Update nokogiri gem in development to work with arm64 systems
|
6
|
+
|
7
|
+
BREAKING CHANGES:
|
8
|
+
|
9
|
+
* Add option to pass through compression, with new default as disabled [[#27](https://github.com/axsuul/rails-reverse-proxy/pull/27), [kylewlacy](https://github.com/kylewlacy)]
|
data/Gemfile
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
gem
|
4
|
-
gem
|
5
|
-
gem 'rack-proxy'
|
6
|
-
gem 'addressable'
|
3
|
+
gem "actionpack"
|
4
|
+
gem "addressable"
|
7
5
|
|
8
6
|
# Add dependencies to develop your gem here.
|
9
7
|
# Include everything needed to run rake, tests, features, etc.
|
10
8
|
group :development do
|
11
|
-
gem "shoulda", ">= 0"
|
12
|
-
gem "rdoc", "~> 3.12"
|
13
9
|
gem "bundler", "~> 1.0"
|
14
|
-
gem "jeweler", "~> 2.
|
10
|
+
gem "jeweler", "~> 2.3.9"
|
11
|
+
gem "nokogiri", ">= 1.11.3"
|
12
|
+
gem "rdoc", "~> 3.12"
|
13
|
+
gem "shoulda", ">= 0"
|
15
14
|
gem "simplecov", ">= 0"
|
16
15
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,164 +1,123 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
rails-dom-testing (~>
|
10
|
-
|
11
|
-
|
12
|
-
activesupport (=
|
13
|
-
rack (~> 1.6)
|
14
|
-
rack-test (~> 0.6.2)
|
15
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
17
|
-
actionview (4.2.1)
|
18
|
-
activesupport (= 4.2.1)
|
4
|
+
actionpack (7.0.1)
|
5
|
+
actionview (= 7.0.1)
|
6
|
+
activesupport (= 7.0.1)
|
7
|
+
rack (~> 2.0, >= 2.2.0)
|
8
|
+
rack-test (>= 0.6.3)
|
9
|
+
rails-dom-testing (~> 2.0)
|
10
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
11
|
+
actionview (7.0.1)
|
12
|
+
activesupport (= 7.0.1)
|
19
13
|
builder (~> 3.1)
|
20
|
-
|
21
|
-
rails-dom-testing (~>
|
22
|
-
rails-html-sanitizer (~> 1.
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
arel (~> 6.0)
|
33
|
-
activesupport (4.2.1)
|
34
|
-
i18n (~> 0.7)
|
35
|
-
json (~> 1.7, >= 1.7.7)
|
36
|
-
minitest (~> 5.1)
|
37
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
38
|
-
tzinfo (~> 1.1)
|
39
|
-
addressable (2.5.0)
|
40
|
-
public_suffix (~> 2.0, >= 2.0.2)
|
41
|
-
arel (6.0.0)
|
42
|
-
builder (3.2.3)
|
14
|
+
erubi (~> 1.4)
|
15
|
+
rails-dom-testing (~> 2.0)
|
16
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
17
|
+
activesupport (7.0.1)
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
+
i18n (>= 1.6, < 2)
|
20
|
+
minitest (>= 5.1)
|
21
|
+
tzinfo (~> 2.0)
|
22
|
+
addressable (2.4.0)
|
23
|
+
builder (3.2.4)
|
24
|
+
concurrent-ruby (1.1.9)
|
25
|
+
crass (1.0.6)
|
43
26
|
descendants_tracker (0.0.4)
|
44
27
|
thread_safe (~> 0.3, >= 0.3.1)
|
45
|
-
docile (1.
|
46
|
-
|
28
|
+
docile (1.4.0)
|
29
|
+
erubi (1.10.0)
|
47
30
|
faraday (0.9.2)
|
48
31
|
multipart-post (>= 1.2, < 3)
|
49
|
-
git (1.
|
50
|
-
|
51
|
-
|
52
|
-
|
32
|
+
git (1.10.2)
|
33
|
+
rchardet (~> 1.8)
|
34
|
+
github_api (0.16.0)
|
35
|
+
addressable (~> 2.4.0)
|
36
|
+
descendants_tracker (~> 0.0.4)
|
53
37
|
faraday (~> 0.8, < 0.10)
|
54
|
-
hashie (>=
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
i18n (0.7.0)
|
63
|
-
jeweler (2.1.2)
|
38
|
+
hashie (>= 3.4)
|
39
|
+
mime-types (>= 1.16, < 3.0)
|
40
|
+
oauth2 (~> 1.0)
|
41
|
+
hashie (5.0.0)
|
42
|
+
highline (2.0.3)
|
43
|
+
i18n (1.9.1)
|
44
|
+
concurrent-ruby (~> 1.0)
|
45
|
+
jeweler (2.3.9)
|
64
46
|
builder
|
65
|
-
bundler
|
47
|
+
bundler
|
66
48
|
git (>= 1.2.5)
|
67
|
-
github_api (~> 0.
|
49
|
+
github_api (~> 0.16.0)
|
68
50
|
highline (>= 1.6.15)
|
69
51
|
nokogiri (>= 1.5.10)
|
52
|
+
psych
|
70
53
|
rake
|
71
54
|
rdoc
|
72
|
-
|
55
|
+
semver2
|
73
56
|
json (1.8.6)
|
74
|
-
jwt (
|
75
|
-
loofah (2.0
|
57
|
+
jwt (2.3.0)
|
58
|
+
loofah (2.13.0)
|
59
|
+
crass (~> 1.0.2)
|
76
60
|
nokogiri (>= 1.5.9)
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
minitest (5.7.0)
|
82
|
-
multi_json (1.12.1)
|
61
|
+
mime-types (2.99.3)
|
62
|
+
mini_portile2 (2.7.1)
|
63
|
+
minitest (5.15.0)
|
64
|
+
multi_json (1.15.0)
|
83
65
|
multi_xml (0.6.0)
|
84
|
-
multipart-post (2.
|
85
|
-
nokogiri (1.
|
86
|
-
mini_portile2 (~> 2.
|
87
|
-
|
88
|
-
|
89
|
-
|
66
|
+
multipart-post (2.1.1)
|
67
|
+
nokogiri (1.13.1)
|
68
|
+
mini_portile2 (~> 2.7.0)
|
69
|
+
racc (~> 1.4)
|
70
|
+
oauth2 (1.4.7)
|
71
|
+
faraday (>= 0.8, < 2.0)
|
72
|
+
jwt (>= 1.0, < 3.0)
|
90
73
|
multi_json (~> 1.3)
|
91
74
|
multi_xml (~> 0.5)
|
92
75
|
rack (>= 1.2, < 3)
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
rack-test (
|
98
|
-
rack (>= 1.0)
|
99
|
-
rails (
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
activesupport (= 4.2.1)
|
107
|
-
bundler (>= 1.3.0, < 2.0)
|
108
|
-
railties (= 4.2.1)
|
109
|
-
sprockets-rails
|
110
|
-
rails-deprecated_sanitizer (1.0.3)
|
111
|
-
activesupport (>= 4.2.0.alpha)
|
112
|
-
rails-dom-testing (1.0.6)
|
113
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
114
|
-
nokogiri (~> 1.6.0)
|
115
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
116
|
-
rails-html-sanitizer (1.0.2)
|
117
|
-
loofah (~> 2.0)
|
118
|
-
railties (4.2.1)
|
119
|
-
actionpack (= 4.2.1)
|
120
|
-
activesupport (= 4.2.1)
|
121
|
-
rake (>= 0.8.7)
|
122
|
-
thor (>= 0.18.1, < 2.0)
|
123
|
-
rake (12.0.0)
|
76
|
+
psych (4.0.3)
|
77
|
+
stringio
|
78
|
+
racc (1.6.0)
|
79
|
+
rack (2.2.3)
|
80
|
+
rack-test (1.1.0)
|
81
|
+
rack (>= 1.0, < 3)
|
82
|
+
rails-dom-testing (2.0.3)
|
83
|
+
activesupport (>= 4.2.0)
|
84
|
+
nokogiri (>= 1.6)
|
85
|
+
rails-html-sanitizer (1.4.2)
|
86
|
+
loofah (~> 2.3)
|
87
|
+
rake (13.0.6)
|
88
|
+
rchardet (1.8.0)
|
124
89
|
rdoc (3.12.2)
|
125
90
|
json (~> 1.4)
|
126
|
-
|
127
|
-
shoulda (
|
128
|
-
shoulda-context (~>
|
129
|
-
shoulda-matchers (
|
130
|
-
shoulda-context (
|
131
|
-
shoulda-matchers (
|
132
|
-
activesupport (>=
|
133
|
-
simplecov (0.
|
134
|
-
docile (~> 1.1
|
135
|
-
|
136
|
-
|
137
|
-
simplecov-html (0.
|
138
|
-
|
139
|
-
|
140
|
-
sprockets-rails (2.3.1)
|
141
|
-
actionpack (>= 3.0)
|
142
|
-
activesupport (>= 3.0)
|
143
|
-
sprockets (>= 2.8, < 4.0)
|
144
|
-
thor (0.19.1)
|
91
|
+
semver2 (3.4.2)
|
92
|
+
shoulda (4.0.0)
|
93
|
+
shoulda-context (~> 2.0)
|
94
|
+
shoulda-matchers (~> 4.0)
|
95
|
+
shoulda-context (2.0.0)
|
96
|
+
shoulda-matchers (4.5.1)
|
97
|
+
activesupport (>= 4.2.0)
|
98
|
+
simplecov (0.21.2)
|
99
|
+
docile (~> 1.1)
|
100
|
+
simplecov-html (~> 0.11)
|
101
|
+
simplecov_json_formatter (~> 0.1)
|
102
|
+
simplecov-html (0.12.3)
|
103
|
+
simplecov_json_formatter (0.1.3)
|
104
|
+
stringio (3.0.1)
|
145
105
|
thread_safe (0.3.6)
|
146
|
-
tzinfo (
|
147
|
-
|
106
|
+
tzinfo (2.0.4)
|
107
|
+
concurrent-ruby (~> 1.0)
|
148
108
|
|
149
109
|
PLATFORMS
|
150
110
|
ruby
|
151
111
|
|
152
112
|
DEPENDENCIES
|
113
|
+
actionpack
|
153
114
|
addressable
|
154
115
|
bundler (~> 1.0)
|
155
|
-
jeweler (~> 2.
|
156
|
-
|
157
|
-
rack-proxy
|
158
|
-
rails
|
116
|
+
jeweler (~> 2.3.9)
|
117
|
+
nokogiri (>= 1.11.3)
|
159
118
|
rdoc (~> 3.12)
|
160
119
|
shoulda
|
161
120
|
simplecov
|
162
121
|
|
163
122
|
BUNDLED WITH
|
164
|
-
1.
|
123
|
+
1.17.3
|
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
# rails-reverse-proxy
|
2
2
|
|
3
|
-
|
3
|
+
A reverse proxy for Ruby on Rails.
|
4
|
+
|
5
|
+
*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
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
|
-
You know the drill. In your Gemfile
|
9
|
+
You know the drill. In your Gemfile
|
8
10
|
|
9
11
|
```ruby
|
10
12
|
gem 'rails-reverse-proxy'
|
@@ -18,7 +20,9 @@ $ bundle
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
A use case for this gem is serving WordPress on a path within your Rails application, such as `/blog`.
|
24
|
+
|
25
|
+
To do this, your controller might look like this
|
22
26
|
|
23
27
|
```ruby
|
24
28
|
class WordpressController < ApplicationController
|
@@ -65,13 +69,13 @@ If you'd like to bypass SSL verification
|
|
65
69
|
reverse_proxy "http://localhost:8000", verify_ssl: false
|
66
70
|
```
|
67
71
|
|
68
|
-
If you'd like to customize
|
72
|
+
If you'd like to customize options passed into the underlying [`Net:HTTP`](https://ruby-doc.org/stdlib-2.4.0/libdoc/net/http/rdoc/Net/HTTP.html#start-method) object
|
69
73
|
|
70
74
|
```ruby
|
71
75
|
reverse_proxy "http://localhost:8000", http: { read_timeout: 20, open_timeout: 100 }
|
72
76
|
```
|
73
77
|
|
74
|
-
|
78
|
+
Determine what version you're using
|
75
79
|
|
76
80
|
```ruby
|
77
81
|
ReverseProxy.version
|
@@ -83,17 +87,14 @@ Feel free to open an issue!
|
|
83
87
|
|
84
88
|
All pull requests will become first class citizens.
|
85
89
|
|
86
|
-
##
|
90
|
+
## Contributors
|
87
91
|
|
88
|
-
Special thanks to our contributors!
|
92
|
+
Special thanks to our contributors!
|
89
93
|
|
94
|
+
- [mediafinger](https://github.com/mediafinger)
|
90
95
|
- [miyukki](https://github.com/miyukki)
|
91
96
|
- [bapirex](https://github.com/bapirex)
|
92
97
|
- [marcosbeirigo](https://github.com/marcosbeirigo)
|
93
98
|
- [avinashkoulavkar](https://github.com/avinashkoulavkar)
|
94
99
|
- [jcs](https://github.com/jcs)
|
95
|
-
|
96
|
-
## Copyright
|
97
|
-
|
98
|
-
Copyright (c) 2016-2017 James Hu. See [LICENSE](LICENSE) for
|
99
|
-
further details.
|
100
|
+
- [aardvarkk](https://github.com/aardvarkk)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.11.0
|
data/lib/reverse_proxy/client.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'rack'
|
2
|
-
require 'rack-proxy'
|
3
2
|
require 'addressable/uri'
|
4
3
|
|
5
4
|
module ReverseProxy
|
@@ -38,12 +37,13 @@ module ReverseProxy
|
|
38
37
|
|
39
38
|
def request(env, options = {}, &block)
|
40
39
|
options.reverse_merge!(
|
41
|
-
headers:
|
42
|
-
http:
|
43
|
-
path:
|
44
|
-
username:
|
45
|
-
password:
|
46
|
-
verify_ssl:
|
40
|
+
headers: {},
|
41
|
+
http: {},
|
42
|
+
path: nil,
|
43
|
+
username: nil,
|
44
|
+
password: nil,
|
45
|
+
verify_ssl: true,
|
46
|
+
reset_accept_encoding: false
|
47
47
|
)
|
48
48
|
|
49
49
|
source_request = Rack::Request.new(env)
|
@@ -51,13 +51,11 @@ module ReverseProxy
|
|
51
51
|
# We can pass in a custom path
|
52
52
|
uri = Addressable::URI.parse("#{url}#{options[:path] || env['ORIGINAL_FULLPATH']}")
|
53
53
|
|
54
|
-
#
|
55
|
-
target_request = Net::HTTP.const_get(source_request.request_method.capitalize).new(uri.request_uri)
|
56
|
-
|
57
|
-
# Setup headers
|
54
|
+
# Define headers
|
58
55
|
target_request_headers = extract_http_request_headers(source_request.env).merge(options[:headers])
|
59
56
|
|
60
|
-
|
57
|
+
# Initialize request
|
58
|
+
target_request = Net::HTTP.const_get(source_request.request_method.capitalize).new(uri.request_uri, target_request_headers)
|
61
59
|
|
62
60
|
# Basic auth
|
63
61
|
target_request.basic_auth(options[:username], options[:password]) if options[:username] and options[:password]
|
@@ -75,15 +73,15 @@ module ReverseProxy
|
|
75
73
|
# Hold the response here
|
76
74
|
target_response = nil
|
77
75
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
76
|
+
if options[:reset_accept_encoding]
|
77
|
+
# Clear the "Accept-Encoding" header (which will
|
78
|
+
# disable compression or other server-side encodings)
|
79
|
+
target_request['Accept-Encoding'] = nil
|
80
|
+
end
|
83
81
|
|
84
82
|
http_options = {}
|
85
83
|
http_options[:use_ssl] = (uri.scheme == "https")
|
86
|
-
http_options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE
|
84
|
+
http_options[:verify_mode] = OpenSSL::SSL::VERIFY_NONE unless options[:verify_ssl]
|
87
85
|
http_options.merge!(options[:http]) if options[:http]
|
88
86
|
|
89
87
|
# Make the request
|
@@ -131,7 +129,7 @@ module ReverseProxy
|
|
131
129
|
|
132
130
|
def extract_http_request_headers(env)
|
133
131
|
headers = env.reject do |k, v|
|
134
|
-
!(/^HTTP_[A-Z_]+$/ === k) || v.nil?
|
132
|
+
!(/^HTTP_[A-Z_]+$/ === k) || k == "HTTP_VERSION" || v.nil?
|
135
133
|
end.map do |k, v|
|
136
134
|
[reconstruct_header_name(k), v]
|
137
135
|
end.inject(Rack::Utils::HeaderHash.new) do |hash, k_v|
|
data/rails-reverse-proxy.gemspec
CHANGED
@@ -2,24 +2,27 @@
|
|
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.
|
5
|
+
# stub: rails-reverse-proxy 0.11.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name = "rails-reverse-proxy"
|
9
|
-
s.version = "0.
|
8
|
+
s.name = "rails-reverse-proxy".freeze
|
9
|
+
s.version = "0.11.0"
|
10
10
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["James Hu"]
|
14
|
-
s.date = "
|
15
|
-
s.description = "Reverse proxy for Ruby on Rails"
|
16
|
-
s.email = "hello@james.hu"
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["James Hu".freeze]
|
14
|
+
s.date = "2022-02-08"
|
15
|
+
s.description = "Reverse proxy for Ruby on Rails".freeze
|
16
|
+
s.email = "hello@james.hu".freeze
|
17
17
|
s.extra_rdoc_files = [
|
18
|
+
"CHANGELOG.md",
|
18
19
|
"LICENSE",
|
19
20
|
"README.md"
|
20
21
|
]
|
21
22
|
s.files = [
|
22
23
|
".document",
|
24
|
+
".ruby-version",
|
25
|
+
"CHANGELOG.md",
|
23
26
|
"Gemfile",
|
24
27
|
"Gemfile.lock",
|
25
28
|
"LICENSE",
|
@@ -33,45 +36,33 @@ Gem::Specification.new do |s|
|
|
33
36
|
"lib/reverse_proxy/controller.rb",
|
34
37
|
"rails-reverse-proxy.gemspec"
|
35
38
|
]
|
36
|
-
s.homepage = "http://github.com/axsuul/rails-reverse-proxy"
|
37
|
-
s.licenses = ["MIT"]
|
38
|
-
s.rubygems_version = "
|
39
|
-
s.summary = "Reverse proxy for Ruby on Rails"
|
39
|
+
s.homepage = "http://github.com/axsuul/rails-reverse-proxy".freeze
|
40
|
+
s.licenses = ["MIT".freeze]
|
41
|
+
s.rubygems_version = "3.1.6".freeze
|
42
|
+
s.summary = "Reverse proxy for Ruby on Rails".freeze
|
40
43
|
|
41
44
|
if s.respond_to? :specification_version then
|
42
45
|
s.specification_version = 4
|
46
|
+
end
|
43
47
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
54
|
-
else
|
55
|
-
s.add_dependency(%q<rails>, [">= 0"])
|
56
|
-
s.add_dependency(%q<rack>, [">= 0"])
|
57
|
-
s.add_dependency(%q<rack-proxy>, [">= 0"])
|
58
|
-
s.add_dependency(%q<addressable>, [">= 0"])
|
59
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
60
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
61
|
-
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
62
|
-
s.add_dependency(%q<jeweler>, ["~> 2.1.2"])
|
63
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
64
|
-
end
|
48
|
+
if s.respond_to? :add_runtime_dependency then
|
49
|
+
s.add_runtime_dependency(%q<actionpack>.freeze, [">= 0"])
|
50
|
+
s.add_runtime_dependency(%q<addressable>.freeze, [">= 0"])
|
51
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
52
|
+
s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
|
53
|
+
s.add_development_dependency(%q<nokogiri>.freeze, [">= 1.11.3"])
|
54
|
+
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
55
|
+
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
|
56
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
65
57
|
else
|
66
|
-
s.add_dependency(%q<
|
67
|
-
s.add_dependency(%q<
|
68
|
-
s.add_dependency(%q<
|
69
|
-
s.add_dependency(%q<
|
70
|
-
s.add_dependency(%q<
|
71
|
-
s.add_dependency(%q<rdoc
|
72
|
-
s.add_dependency(%q<
|
73
|
-
s.add_dependency(%q<
|
74
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
58
|
+
s.add_dependency(%q<actionpack>.freeze, [">= 0"])
|
59
|
+
s.add_dependency(%q<addressable>.freeze, [">= 0"])
|
60
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
61
|
+
s.add_dependency(%q<jeweler>.freeze, ["~> 2.3.9"])
|
62
|
+
s.add_dependency(%q<nokogiri>.freeze, [">= 1.11.3"])
|
63
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
64
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
65
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
75
66
|
end
|
76
67
|
end
|
77
68
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-reverse-proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: addressable
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,47 +39,47 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :
|
47
|
+
version: '1.0'
|
48
|
+
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: jeweler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
type: :
|
61
|
+
version: 2.3.9
|
62
|
+
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 2.3.9
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: nokogiri
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.11.3
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.11.3
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rdoc
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,33 +95,19 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '3.12'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: jeweler
|
98
|
+
name: shoulda
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- - "
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
103
|
+
version: '0'
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- - "
|
108
|
+
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
110
|
+
version: '0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: simplecov
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,10 +127,13 @@ email: hello@james.hu
|
|
141
127
|
executables: []
|
142
128
|
extensions: []
|
143
129
|
extra_rdoc_files:
|
130
|
+
- CHANGELOG.md
|
144
131
|
- LICENSE
|
145
132
|
- README.md
|
146
133
|
files:
|
147
134
|
- ".document"
|
135
|
+
- ".ruby-version"
|
136
|
+
- CHANGELOG.md
|
148
137
|
- Gemfile
|
149
138
|
- Gemfile.lock
|
150
139
|
- LICENSE
|
@@ -161,7 +150,7 @@ homepage: http://github.com/axsuul/rails-reverse-proxy
|
|
161
150
|
licenses:
|
162
151
|
- MIT
|
163
152
|
metadata: {}
|
164
|
-
post_install_message:
|
153
|
+
post_install_message:
|
165
154
|
rdoc_options: []
|
166
155
|
require_paths:
|
167
156
|
- lib
|
@@ -176,9 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
165
|
- !ruby/object:Gem::Version
|
177
166
|
version: '0'
|
178
167
|
requirements: []
|
179
|
-
|
180
|
-
|
181
|
-
signing_key:
|
168
|
+
rubygems_version: 3.1.6
|
169
|
+
signing_key:
|
182
170
|
specification_version: 4
|
183
171
|
summary: Reverse proxy for Ruby on Rails
|
184
172
|
test_files: []
|