chowder 0.2.3 → 0.2.4
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/lib/chowder.rb +3 -3
- metadata +3 -3
data/lib/chowder.rb
CHANGED
@@ -76,7 +76,7 @@ module Chowder
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def return_or_redirect_to(path)
|
79
|
-
redirect(session[:return_to] || path)
|
79
|
+
redirect(session[:return_to] || request.script_name + path)
|
80
80
|
end
|
81
81
|
|
82
82
|
def render_custom_template(type)
|
@@ -94,7 +94,7 @@ module Chowder
|
|
94
94
|
|
95
95
|
get '/logout' do
|
96
96
|
session[:current_user] = nil
|
97
|
-
redirect '/'
|
97
|
+
redirect request.script_name + '/'
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -104,7 +104,7 @@ module Chowder
|
|
104
104
|
if authorize @login_callback.call(login, password)
|
105
105
|
return_or_redirect_to '/'
|
106
106
|
else
|
107
|
-
redirect '/login'
|
107
|
+
redirect request.script_name + '/login'
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chowder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Vangberg
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-02-10 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements: []
|
61
61
|
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.3.
|
63
|
+
rubygems_version: 1.3.5
|
64
64
|
signing_key:
|
65
65
|
specification_version: 3
|
66
66
|
summary: rack middleware providing session based authentication
|