warden 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == Version 1.0.1
2
+ * Bug fix on strategies errors handler
3
+
1
4
  == Version 1.0.0
2
5
  * Bump!
3
6
  * Allow strategies to configure if user should be stored or not
@@ -83,7 +83,7 @@ module Warden
83
83
  # Access to the errors object.
84
84
  # :api: public
85
85
  def errors
86
- @env['warden.errors']
86
+ @env['warden'].errors
87
87
  end
88
88
 
89
89
  # Cause the processing of the strategies to stop and cascade no further
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Warden
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  end
@@ -84,7 +84,7 @@ describe Warden::Strategies::Base do
84
84
  end
85
85
  end
86
86
  env = env_with_params
87
- env['warden.errors'] = Warden::Proxy::Errors.new
87
+ env['warden'] = Warden::Proxy.new(env, Warden::Manager.new({}))
88
88
  strategy = RAS[:foobar].new(env)
89
89
  strategy._run!
90
90
  strategy.errors.on(:foo).should == ["foo has an error"]
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 = "1.0.0"
8
+ s.version = "1.0.1"
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{2010-09-24}
12
+ s.date = %q{2010-10-12}
13
13
  s.email = %q{has.sox@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Neighman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-24 00:00:00 +10:00
18
+ date: 2010-10-12 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency