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.
- data/lib/exvo_auth/controllers/base.rb +3 -2
- data/lib/exvo_auth/dejavu.rb +3 -2
- data/lib/exvo_auth/version.rb +1 -1
- metadata +4 -4
@@ -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
|
}
|
data/lib/exvo_auth/dejavu.rb
CHANGED
@@ -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
|
data/lib/exvo_auth/version.rb
CHANGED
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:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
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-
|
18
|
+
date: 2010-09-15 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|