shuber-proxy 1.2.2 → 1.2.3

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2009-01-24 - Sean Huber (shuber@huberry.com)
2
+ * Add compatibility for edge/upcoming rails versions
3
+
1
4
  2009-01-08 - Sean Huber (shuber@huberry.com)
2
5
  * Add Proxy namespace
3
6
  * Remove .gitignore
@@ -10,8 +10,8 @@ module Huberry
10
10
  around_filter :swap_session_domain
11
11
  cattr_accessor :original_relative_url_root
12
12
  cattr_accessor :proxy_relative_url_root
13
- class << self; delegate :relative_url_root, :relative_url_root=, :to => ::ActionController::AbstractRequest unless ::ActionController::Base.respond_to? :relative_url_root; end
14
13
  alias_method_chain :redirect_to, :proxy
14
+ class << self; delegate :relative_url_root, :relative_url_root=, :to => ::ActionController::AbstractRequest unless ::ActionController::Base.respond_to?(:relative_url_root); end
15
15
  end
16
16
  end
17
17
 
data/lib/proxy.rb CHANGED
@@ -4,6 +4,7 @@ require 'huberry/proxy/action_controller/named_route_collection'
4
4
  require 'huberry/proxy/action_controller/url_rewriter'
5
5
  require 'huberry/proxy/action_view/url_helper'
6
6
 
7
+ ActionController::AbstractRequest = ActionController::Request if defined?(ActionController::Request)
7
8
  ActionController::AbstractRequest.send :include, Huberry::Proxy::ActionController::AbstractRequest
8
9
  ActionController::Base.send :include, Huberry::Proxy::ActionController::Base
9
10
  ActionController::Routing::RouteSet::NamedRouteCollection.send :include, Huberry::Proxy::ActionController::NamedRouteCollection
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shuber-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Huber
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-08 00:00:00 -08:00
12
+ date: 2009-01-24 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15