rails-reverse-proxy 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/VERSION +1 -1
- data/lib/reverse_proxy/client.rb +2 -0
- data/rails-reverse-proxy.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc30174516b101fc6ee684bac650f1a0e98bdf82
|
4
|
+
data.tar.gz: 7ee8918c2be1d34b74a0bfcad50a0d9bc9d012ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14578118279b956f7b54915471f31d1bcb3db063ac7e6268ccebcb6d744a4d39f24789ac790f2d51f128b91bf73a450406f9a269daa9b14e37b44524b6627623
|
7
|
+
data.tar.gz: b6b18c33dc58c368bb221819fb31188903c467ae608eec385b6008f8a6870f6bd570e5a1ceaf181c858c263c89b2ef6e2118dd5a82a6bc0daa8572eae975b413
|
data/README.md
CHANGED
@@ -34,6 +34,7 @@ class WordpressController < ApplicationController
|
|
34
34
|
|
35
35
|
# There's also other callbacks:
|
36
36
|
# - on_set_cookies
|
37
|
+
# - on_connect
|
37
38
|
# - on_response
|
38
39
|
# - on_set_cookies
|
39
40
|
# - on_success
|
@@ -90,8 +91,9 @@ Special thanks to our contributors!
|
|
90
91
|
- [bapirex](https://github.com/bapirex)
|
91
92
|
- [marcosbeirigo](https://github.com/marcosbeirigo)
|
92
93
|
- [avinashkoulavkar](https://github.com/avinashkoulavkar)
|
94
|
+
- [jcs](https://github.com/jcs)
|
93
95
|
|
94
96
|
## Copyright
|
95
97
|
|
96
|
-
Copyright (c) 2016 James Hu. See [LICENSE](LICENSE) for
|
98
|
+
Copyright (c) 2016-2017 James Hu. See [LICENSE](LICENSE) for
|
97
99
|
further details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0
|
data/lib/reverse_proxy/client.rb
CHANGED
@@ -7,6 +7,7 @@ module ReverseProxy
|
|
7
7
|
@@callback_methods = [
|
8
8
|
:on_response,
|
9
9
|
:on_set_cookies,
|
10
|
+
:on_connect,
|
10
11
|
:on_success,
|
11
12
|
:on_redirect,
|
12
13
|
:on_missing,
|
@@ -87,6 +88,7 @@ module ReverseProxy
|
|
87
88
|
|
88
89
|
# Make the request
|
89
90
|
Net::HTTP.start(uri.hostname, uri.port, http_options) do |http|
|
91
|
+
callbacks[:on_connect].call(http)
|
90
92
|
target_response = http.request(target_request)
|
91
93
|
end
|
92
94
|
|
data/rails-reverse-proxy.gemspec
CHANGED
@@ -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.
|
5
|
+
# stub: rails-reverse-proxy 0.9.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rails-reverse-proxy"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.9.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["James Hu"]
|
14
|
-
s.date = "2017-
|
14
|
+
s.date = "2017-06-23"
|
15
15
|
s.description = "Reverse proxy for Ruby on Rails"
|
16
16
|
s.email = "hello@james.hu"
|
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.
|
4
|
+
version: 0.9.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: 2017-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|