hashrocket-clearance 0.4.1 → 0.4.2
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/Rakefile +2 -1
- data/lib/clearance/app/controllers/passwords_controller.rb +5 -1
- data/lib/clearance/version.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
|
@@ -26,13 +26,14 @@ end
|
|
|
26
26
|
desc "Run the test suite"
|
|
27
27
|
task :default => ['test:all', 'test:spec']
|
|
28
28
|
|
|
29
|
+
load 'lib/clearance/version.rb'
|
|
29
30
|
|
|
30
31
|
gemspec_doc = <<-GEMSPEC_DOC
|
|
31
32
|
s.date = "#{Date.today.strftime('%Y-%m-%d')}"
|
|
32
33
|
s.name = "clearance"
|
|
33
34
|
s.summary = "Fork of clearance, not-purely-restful, but with Facebook goodness"
|
|
34
35
|
s.email = "info@hashrocket.com"
|
|
35
|
-
s.version =
|
|
36
|
+
s.version = "#{Clearance::Version::MAJOR}.#{Clearance::Version::MINOR}.#{Clearance::Version::PATCH}"
|
|
36
37
|
s.homepage = "http://github.com/hashrocket/clearance"
|
|
37
38
|
s.description = "Fork of clearance, not-purely-restful, but with Facebook goodness"
|
|
38
39
|
s.authors = [
|
|
@@ -31,7 +31,7 @@ module Clearance
|
|
|
31
31
|
def update
|
|
32
32
|
if @user.reset_password(params)
|
|
33
33
|
session[:user_id] = @user.id
|
|
34
|
-
redirect_to
|
|
34
|
+
redirect_to url_after_update
|
|
35
35
|
else
|
|
36
36
|
flash.now[:error] = 'Password not changed.'
|
|
37
37
|
render :action => :edit
|
|
@@ -50,6 +50,10 @@ module Clearance
|
|
|
50
50
|
def url_after_create
|
|
51
51
|
new_session_url
|
|
52
52
|
end
|
|
53
|
+
|
|
54
|
+
def url_after_update
|
|
55
|
+
user_url(@user)
|
|
56
|
+
end
|
|
53
57
|
end
|
|
54
58
|
|
|
55
59
|
end
|
data/lib/clearance/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hashrocket-clearance
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoughtbot, inc.
|
|
@@ -18,7 +18,7 @@ autorequire:
|
|
|
18
18
|
bindir: bin
|
|
19
19
|
cert_chain: []
|
|
20
20
|
|
|
21
|
-
date: 2008-11-
|
|
21
|
+
date: 2008-11-13 00:00:00 -08:00
|
|
22
22
|
default_executable:
|
|
23
23
|
dependencies: []
|
|
24
24
|
|