simple_auth 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -81,6 +81,7 @@ module SimpleAuth
81
81
  true
82
82
  else
83
83
  errors.add_to_base I18n.translate("simple_auth.sessions.invalid_credentials")
84
+ controller.session[:record_id] = nil
84
85
  false
85
86
  end
86
87
  end
@@ -2,7 +2,7 @@ module SimpleAuth
2
2
  module Version
3
3
  MAJOR = "0"
4
4
  MINOR = "1"
5
- PATCH = "1"
5
+ PATCH = "2"
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
data/simple_auth.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{simple_auth}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nando Vieira"]
12
- s.date = %q{2010-01-23}
12
+ s.date = %q{2010-01-25}
13
13
  s.description = %q{When Authlogic & Devise are just too much.
14
14
  }
15
15
  s.email = %q{fnando.vieira@gmail.com}
@@ -74,6 +74,18 @@ describe SimpleAuth::Session do
74
74
  @user_session.save
75
75
  end
76
76
 
77
+ it "should unset previous record id when is not valid" do
78
+ @session[:record_id] = 1
79
+ @user_session.should_not be_valid
80
+ @session[:record_id].should be_nil
81
+ end
82
+
83
+ it "should unset previous record id when is not saved" do
84
+ @session[:record_id] = 1
85
+ @user_session.save.should be_false
86
+ @session[:record_id].should be_nil
87
+ end
88
+
77
89
  it "should be new record" do
78
90
  SimpleAuth::Session.new.should be_new_record
79
91
  @user_session.should be_new_record
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-23 00:00:00 -02:00
12
+ date: 2010-01-25 00:00:00 -02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15