warden 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,6 @@ module Warden
22
22
 
23
23
  # Should ensure there is a failure application defined.
24
24
  @failure_app = config[:failure_app] if config[:failure_app]
25
- raise "No Failure App provided" unless @failure_app
26
25
 
27
26
  # Set default configuration values.
28
27
  @config[:default_strategies] ||= []
@@ -167,6 +166,7 @@ module Warden
167
166
 
168
167
  # Call the before failure callbacks
169
168
  Warden::Manager._before_failure.each{|hook| hook.call(env,opts)}
169
+ raise "No Failure App provided" unless @failure_app
170
170
  @failure_app.call(env).to_a
171
171
  end
172
172
  end # call_failure_app
@@ -1,3 +1,3 @@
1
1
  module Warden
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{warden}
8
- s.version = "0.6.1"
8
+ s.version = "0.6.2"
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-17}
12
+ s.date = %q{2009-11-19}
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/warden_spec.rb",
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/request_helper.rb",
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/proxy_spec.rb",
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.1
4
+ version: 0.6.2
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-17 00:00:00 -02:00
12
+ date: 2009-11-19 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/warden_spec.rb
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/request_helper.rb
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/proxy_spec.rb
120
+ - spec/warden/strategies/base_spec.rb
122
121
  - spec/warden/strategies_spec.rb
122
+ - spec/warden_spec.rb