simple_auth 0.1.1 → 0.1.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/VERSION +1 -1
- data/lib/simple_auth/session.rb +1 -0
- data/lib/simple_auth/version.rb +1 -1
- data/simple_auth.gemspec +2 -2
- data/spec/simple_auth/session_spec.rb +12 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/simple_auth/session.rb
CHANGED
data/lib/simple_auth/version.rb
CHANGED
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.
|
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-
|
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.
|
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-
|
12
|
+
date: 2010-01-25 00:00:00 -02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|