warden 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +6 -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 +11 -11
- metadata +10 -10
data/History.rdoc
CHANGED
@@ -1,11 +1,16 @@
|
|
1
|
+
== Version 0.6.0 / 2009-11-16
|
2
|
+
|
1
3
|
* enhancements
|
2
4
|
* added serializers, including session serializer (set by default) and a cookie serializer (josevalim)
|
3
5
|
|
4
6
|
* deprecation
|
5
7
|
* serializer_into_session and serializer_from_session are deprecated, overwrite serialize and deserializer in Warden::Serializers::Session instead (josevalim)
|
6
8
|
|
7
|
-
== Version 0.5.
|
9
|
+
== Version 0.5.3 / 2009-11-20
|
10
|
+
* bug fixes
|
11
|
+
* authenticated? and unauthenticated? should return true or false, not the user or false.
|
8
12
|
|
13
|
+
== Version 0.5.2 / 2009-11-09
|
9
14
|
* enhancements
|
10
15
|
* authenticated? always try to serialize the user from session (josevalim)
|
11
16
|
* stored_in_session? checks if user information is stored in session, without serializing (josevalim)
|
data/lib/warden/proxy.rb
CHANGED
data/lib/warden/version.rb
CHANGED
data/spec/warden/proxy_spec.rb
CHANGED
@@ -165,8 +165,8 @@ 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
|
168
|
+
env['warden'].authenticated?(:foo).should == true
|
169
|
+
env['warden'].authenticated?(:bar).should == true
|
170
170
|
env['warden'].authenticated?.should be_false
|
171
171
|
valid_response
|
172
172
|
end
|
@@ -203,7 +203,7 @@ describe Warden::Proxy do
|
|
203
203
|
|
204
204
|
it "returns true if user key is stored in session" do
|
205
205
|
app = lambda do |env|
|
206
|
-
env['warden'].stored?.should
|
206
|
+
env['warden'].stored?.should == true
|
207
207
|
valid_response
|
208
208
|
end
|
209
209
|
setup_rack(app).call(@env)
|
@@ -212,7 +212,7 @@ describe Warden::Proxy do
|
|
212
212
|
it "returns false if user key is not stored in session" do
|
213
213
|
@env['rack.session'].delete("warden.user.default.key")
|
214
214
|
app = lambda do |env|
|
215
|
-
env['warden'].stored?.should
|
215
|
+
env['warden'].stored?.should == false
|
216
216
|
valid_response
|
217
217
|
end
|
218
218
|
setup_rack(app).call(@env)
|
data/warden.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{warden}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.4"
|
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-21}
|
13
13
|
s.email = %q{has.sox@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -65,24 +65,24 @@ Gem::Specification.new do |s|
|
|
65
65
|
s.rubygems_version = %q{1.3.5}
|
66
66
|
s.summary = %q{Rack middleware that provides authentication for rack applications}
|
67
67
|
s.test_files = [
|
68
|
-
"spec/
|
69
|
-
"spec/helpers/strategies/invalid.rb",
|
68
|
+
"spec/helpers/request_helper.rb",
|
70
69
|
"spec/helpers/strategies/failz.rb",
|
70
|
+
"spec/helpers/strategies/invalid.rb",
|
71
71
|
"spec/helpers/strategies/pass.rb",
|
72
|
-
"spec/helpers/strategies/password.rb",
|
73
72
|
"spec/helpers/strategies/pass_without_user.rb",
|
74
|
-
"spec/helpers/
|
73
|
+
"spec/helpers/strategies/password.rb",
|
75
74
|
"spec/spec_helper.rb",
|
76
|
-
"spec/warden/strategies/base_spec.rb",
|
77
|
-
"spec/warden/hooks_spec.rb",
|
78
|
-
"spec/warden/manager_spec.rb",
|
79
75
|
"spec/warden/authenticated_data_store_spec.rb",
|
80
76
|
"spec/warden/errors_spec.rb",
|
77
|
+
"spec/warden/hooks_spec.rb",
|
78
|
+
"spec/warden/manager_spec.rb",
|
79
|
+
"spec/warden/proxy_spec.rb",
|
81
80
|
"spec/warden/serializers/cookie_spec.rb",
|
82
81
|
"spec/warden/serializers/session_spec.rb",
|
83
82
|
"spec/warden/serializers_spec.rb",
|
84
|
-
"spec/warden/
|
85
|
-
"spec/warden/strategies_spec.rb"
|
83
|
+
"spec/warden/strategies/base_spec.rb",
|
84
|
+
"spec/warden/strategies_spec.rb",
|
85
|
+
"spec/warden_spec.rb"
|
86
86
|
]
|
87
87
|
|
88
88
|
if s.respond_to? :specification_version then
|
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.6.
|
4
|
+
version: 0.6.4
|
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-21 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -102,21 +102,21 @@ signing_key:
|
|
102
102
|
specification_version: 3
|
103
103
|
summary: Rack middleware that provides authentication for rack applications
|
104
104
|
test_files:
|
105
|
-
- spec/
|
106
|
-
- spec/helpers/strategies/invalid.rb
|
105
|
+
- spec/helpers/request_helper.rb
|
107
106
|
- spec/helpers/strategies/failz.rb
|
107
|
+
- spec/helpers/strategies/invalid.rb
|
108
108
|
- spec/helpers/strategies/pass.rb
|
109
|
-
- spec/helpers/strategies/password.rb
|
110
109
|
- spec/helpers/strategies/pass_without_user.rb
|
111
|
-
- spec/helpers/
|
110
|
+
- spec/helpers/strategies/password.rb
|
112
111
|
- spec/spec_helper.rb
|
113
|
-
- spec/warden/strategies/base_spec.rb
|
114
|
-
- spec/warden/hooks_spec.rb
|
115
|
-
- spec/warden/manager_spec.rb
|
116
112
|
- spec/warden/authenticated_data_store_spec.rb
|
117
113
|
- spec/warden/errors_spec.rb
|
114
|
+
- spec/warden/hooks_spec.rb
|
115
|
+
- spec/warden/manager_spec.rb
|
116
|
+
- spec/warden/proxy_spec.rb
|
118
117
|
- spec/warden/serializers/cookie_spec.rb
|
119
118
|
- spec/warden/serializers/session_spec.rb
|
120
119
|
- spec/warden/serializers_spec.rb
|
121
|
-
- spec/warden/
|
120
|
+
- spec/warden/strategies/base_spec.rb
|
122
121
|
- spec/warden/strategies_spec.rb
|
122
|
+
- spec/warden_spec.rb
|