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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fe15878d26cc9bdd9af0efc8adc987cb4c3c455
4
- data.tar.gz: dce227c69d94a0d8e2731d412faa22a6021cb801
3
+ metadata.gz: dc30174516b101fc6ee684bac650f1a0e98bdf82
4
+ data.tar.gz: 7ee8918c2be1d34b74a0bfcad50a0d9bc9d012ae
5
5
  SHA512:
6
- metadata.gz: 0d0a51d99e16f5da5a4409e8d9b7ffb7f4b4dd14fd87b1575456862f820bb43e91a00545cc0f54e653ac4066ecd46cfe62bc6b20ead230348ea69e9a97898617
7
- data.tar.gz: 52e8956c611ff5fbe802f3b079aa4766b00e3b0d0ed7694f1819a22da33d6513ac48be56c68e5d5751de20969bcd647ff7cf9765ceec164873b56e85fbead752
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.8.0
1
+ 0.9.0
@@ -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
 
@@ -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.8.0 ruby lib
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.8.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-03-12"
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.8.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-03-12 00:00:00.000000000 Z
11
+ date: 2017-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails