warden 0.5.2 → 0.5.3
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/History.rdoc +5 -0
- data/VERSION +1 -1
- data/lib/warden/proxy.rb +1 -1
- data/lib/warden/version.rb +1 -1
- data/spec/warden/proxy_spec.rb +4 -4
- data/warden.gemspec +3 -3
- metadata +2 -2
data/History.rdoc
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== Version 0.5.3
|
2
|
+
* bug fixes
|
3
|
+
* authenticated? and unauthenticated? should return true or false, not the user or false.
|
4
|
+
|
5
|
+
=== Version 0.5.2
|
1
6
|
* enhancements
|
2
7
|
* authenticated? always try to serialize the user from session (josevalim)
|
3
8
|
* stored_in_session? checks if user information is stored in session, without serializing (josevalim)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/lib/warden/proxy.rb
CHANGED
data/lib/warden/version.rb
CHANGED
data/spec/warden/proxy_spec.rb
CHANGED
@@ -165,9 +165,9 @@ describe Warden::Proxy do
|
|
165
165
|
env['warden'].authenticate(:pass, :scope => :foo)
|
166
166
|
env['warden'].authenticate(:pass, :scope => :bar)
|
167
167
|
env['warden'].authenticate(:password)
|
168
|
-
env['warden'].authenticated?(:foo).should
|
169
|
-
env['warden'].authenticated?(:bar).should
|
170
|
-
env['warden'].authenticated?.should
|
168
|
+
env['warden'].authenticated?(:foo).should == true
|
169
|
+
env['warden'].authenticated?(:bar).should == true
|
170
|
+
env['warden'].authenticated?.should == false
|
171
171
|
valid_response
|
172
172
|
end
|
173
173
|
env = env_with_params
|
@@ -395,7 +395,7 @@ describe Warden::Proxy do
|
|
395
395
|
it "should return false for authenticated when there are no valid? strategies" do
|
396
396
|
@env['rack.session'] = {}
|
397
397
|
app = lambda do |e|
|
398
|
-
e['warden'].authenticated?(:invalid).should
|
398
|
+
e['warden'].authenticated?(:invalid).should == false
|
399
399
|
end
|
400
400
|
setup_rack(app).call(@env)
|
401
401
|
end
|
data/warden.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{warden}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Daniel Neighman"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-20}
|
13
13
|
s.email = %q{has.sox@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: warden
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Neighman
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-20 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|