thoughtbot-clearance 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.textile
CHANGED
data/README.textile
CHANGED
@@ -58,8 +58,6 @@ In config/environments/test.rb:
|
|
58
58
|
|
59
59
|
config.gem 'webrat',
|
60
60
|
:version => '= 0.4.4'
|
61
|
-
config.gem 'nokogiri',
|
62
|
-
:version => '= 1.2.3'
|
63
61
|
config.gem 'cucumber',
|
64
62
|
:version => '= 0.3.0'
|
65
63
|
config.gem 'thoughtbot-factory_girl',
|
@@ -67,6 +65,10 @@ In config/environments/test.rb:
|
|
67
65
|
:source => "http://gems.github.com",
|
68
66
|
:version => '1.2.1'
|
69
67
|
|
68
|
+
Install nokogiri but don't vendor it (due to its native extensions):
|
69
|
+
|
70
|
+
sudo gem install nokogiri
|
71
|
+
|
70
72
|
Vendor the gems:
|
71
73
|
|
72
74
|
rake gems:install RAILS_ENV=test
|
data/Rakefile
CHANGED
@@ -51,7 +51,7 @@ task :default => ['test:all', 'test:features']
|
|
51
51
|
|
52
52
|
gem_spec = Gem::Specification.new do |gem_spec|
|
53
53
|
gem_spec.name = "clearance"
|
54
|
-
gem_spec.version = "0.6.
|
54
|
+
gem_spec.version = "0.6.3"
|
55
55
|
gem_spec.summary = "Rails authentication with email & password."
|
56
56
|
gem_spec.email = "support@thoughtbot.com"
|
57
57
|
gem_spec.homepage = "http://github.com/thoughtbot/clearance"
|
@@ -12,7 +12,7 @@ class Clearance::PasswordsController < ApplicationController
|
|
12
12
|
def create
|
13
13
|
if user = ::User.find_by_email(params[:password][:email])
|
14
14
|
user.forgot_password!
|
15
|
-
ClearanceMailer.deliver_change_password user
|
15
|
+
::ClearanceMailer.deliver_change_password user
|
16
16
|
flash[:notice] = "You will receive an email within the next few minutes. " <<
|
17
17
|
"It contains instructions for changing your password."
|
18
18
|
redirect_to url_after_create
|
@@ -21,7 +21,7 @@ class Clearance::SessionsController < ApplicationController
|
|
21
21
|
flash[:notice] = "Signed in successfully."
|
22
22
|
redirect_back_or url_after_create
|
23
23
|
else
|
24
|
-
ClearanceMailer.deliver_confirmation(@user)
|
24
|
+
::ClearanceMailer.deliver_confirmation(@user)
|
25
25
|
deny_access("User has not confirmed email. Confirmation email will be resent.")
|
26
26
|
end
|
27
27
|
end
|
@@ -12,7 +12,7 @@ class Clearance::UsersController < ApplicationController
|
|
12
12
|
def create
|
13
13
|
@user = ::User.new params[:user]
|
14
14
|
if @user.save
|
15
|
-
ClearanceMailer.deliver_confirmation @user
|
15
|
+
::ClearanceMailer.deliver_confirmation @user
|
16
16
|
flash[:notice] = "You will receive an email within the next few minutes. " <<
|
17
17
|
"It contains instructions for confirming your account."
|
18
18
|
redirect_to url_after_create
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thoughtbot-clearance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Croak
|
@@ -24,7 +24,7 @@ autorequire:
|
|
24
24
|
bindir: bin
|
25
25
|
cert_chain: []
|
26
26
|
|
27
|
-
date: 2009-04-
|
27
|
+
date: 2009-04-22 21:00:00 -07:00
|
28
28
|
default_executable:
|
29
29
|
dependencies: []
|
30
30
|
|