exvo-auth 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,8 +87,9 @@ module ExvoAuth::Controllers::Base
87
87
  def current_request
88
88
  request.params.reject{ |k, v| ["controller", "action"].include?(k) }.merge(
89
89
  :_dejavu => {
90
- :script_name => request.script_name,
91
- :path_info => request.path_info,
90
+ :script_name => request.script_name, # for Rack::Request
91
+ :path_info => request.path_info, # for Rack::Request
92
+ :request_path => request.path, # for Merb::Request
92
93
  :method => request_method,
93
94
  :content_type => request.content_type
94
95
  }
@@ -15,8 +15,9 @@ class ExvoAuth::Dejavu
15
15
  dejavu = params.delete("_dejavu")
16
16
 
17
17
  env["QUERY_STRING"] = Rack::Utils.build_nested_query(params) # Will not work with file uploads.
18
- env["SCRIPT_NAME"] = dejavu["script_name"]
19
- env["PATH_INFO"] = dejavu["path_info"]
18
+ env["SCRIPT_NAME"] = dejavu["script_name"] # for Rack::Request
19
+ env["PATH_INFO"] = dejavu["path_info"] # for Rack::Request
20
+ env["REQUEST_PATH"] = dejavu["request_path"] # for Merb::Request
20
21
  env["REQUEST_METHOD"] = dejavu["method"]
21
22
  env["CONTENT_TYPE"] = dejavu["content_type"]
22
23
  end
@@ -1,3 +1,3 @@
1
1
  module ExvoAuth
2
- VERSION = "0.9.5"
2
+ VERSION = "0.9.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo-auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 5
10
- version: 0.9.5
9
+ - 6
10
+ version: 0.9.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacek Becela
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-14 00:00:00 +02:00
18
+ date: 2010-09-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency