vita-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
@@ -1,3 +1,7 @@
1
+ h2. 0.6.3 (04/23/2009)
2
+
3
+ * Scoping ClearanceMailer properly within controllers so it works in production environments. (Nick Quaranto)
4
+
1
5
  h2. 0.6.2 (04/22/2009)
2
6
 
3
7
  * Insert Clearance::User into User model if it exists. (Nick Quaranto)
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.2"
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: vita-clearance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
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-21 21:00:00 -07:00
27
+ date: 2009-04-22 21:00:00 -07:00
28
28
  default_executable:
29
29
  dependencies: []
30
30