rails_warden 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_warden (0.5.4)
4
+ rails_warden (0.5.6)
5
5
  warden (>= 1.0.0)
6
6
 
7
7
  GEM
@@ -78,8 +78,8 @@ GEM
78
78
  treetop (1.4.9)
79
79
  polyglot (>= 0.3.1)
80
80
  tzinfo (0.3.26)
81
- warden (1.0.3)
82
- rack (>= 1.0.0)
81
+ warden (1.0.5)
82
+ rack (>= 1.0)
83
83
 
84
84
  PLATFORMS
85
85
  ruby
@@ -86,7 +86,7 @@ if !defined?(Rails::Railtie)
86
86
  end
87
87
  else
88
88
  class RailsWarden::Railtie < Rails::Railtie
89
- include_block = lambda do
89
+ include_block = Proc.new {
90
90
  ::ActionController::Base.class_eval do
91
91
  include RailsWarden::Mixins::HelperMethods
92
92
  include RailsWarden::Mixins::ControllerOnlyMethods
@@ -95,7 +95,7 @@ else
95
95
  ::ActionView::Base.class_eval do
96
96
  include RailsWarden::Mixins::HelperMethods
97
97
  end
98
- end
98
+ }
99
99
 
100
100
  if respond_to?(:initializer)
101
101
  initializer :warden, &include_block
@@ -45,6 +45,12 @@ module RailsWarden
45
45
  # Proxy to the authenticate method on warden
46
46
  # :api: public
47
47
  def authenticate!(*args)
48
+ defaults = {:action => RailsWarden.unauthenticated_action}
49
+ if args.last.is_a? Hash
50
+ args[-1] = defaults.merge(args.last)
51
+ else
52
+ args << defaults
53
+ end
48
54
  warden.authenticate!(*args)
49
55
  end
50
56
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{rails_warden}
3
- s.version = "0.5.5"
3
+ s.version = "0.5.6"
4
4
  s.authors = ["Daniel Neighman"]
5
5
  s.date = %q{2010-05-14}
6
6
  s.summary = %q{A gem that provides authenitcation via the Warden framework}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_warden
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 5
10
- version: 0.5.5
9
+ - 6
10
+ version: 0.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Neighman
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-14 00:00:00 +10:00
19
- default_executable:
18
+ date: 2010-05-14 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: warden
@@ -63,7 +62,6 @@ files:
63
62
  - spec/spec_helper.rb
64
63
  - TODO
65
64
  - VERSION
66
- has_rdoc: true
67
65
  homepage: http://github.com/hassox/rails_warden
68
66
  licenses: []
69
67
 
@@ -93,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
91
  requirements: []
94
92
 
95
93
  rubyforge_project: warden
96
- rubygems_version: 1.4.2
94
+ rubygems_version: 1.8.6
97
95
  signing_key:
98
96
  specification_version: 3
99
97
  summary: A gem that provides authenitcation via the Warden framework