rails_warden 0.5.4 → 0.5.5

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_warden (0.5.3)
4
+ rails_warden (0.5.4)
5
5
  warden (>= 1.0.0)
6
6
 
7
7
  GEM
@@ -86,7 +86,7 @@ if !defined?(Rails::Railtie)
86
86
  end
87
87
  else
88
88
  class RailsWarden::Railtie < Rails::Railtie
89
- initializer :warden do
89
+ include_block = lambda do
90
90
  ::ActionController::Base.class_eval do
91
91
  include RailsWarden::Mixins::HelperMethods
92
92
  include RailsWarden::Mixins::ControllerOnlyMethods
@@ -96,6 +96,14 @@ else
96
96
  include RailsWarden::Mixins::HelperMethods
97
97
  end
98
98
  end
99
+
100
+ if respond_to?(:initializer)
101
+ initializer :warden, &include_block
102
+ elsif respond_to?(:config) && config.respond_to?(:before_initialize)
103
+ config.before_initialize(&include_block)
104
+ else
105
+ Rails.configuration.after_initialize &include_block
106
+ end
99
107
  end
100
108
  end
101
109
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{rails_warden}
3
- s.version = "0.5.4"
3
+ s.version = "0.5.5"
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 4
10
- version: 0.5.4
9
+ - 5
10
+ version: 0.5.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Neighman
@@ -53,10 +53,6 @@ files:
53
53
  - lib/rails_warden/rails_settings.rb
54
54
  - lib/rails_warden.rb
55
55
  - LICENSE
56
- - rails_warden-0.5.0.gem
57
- - rails_warden-0.5.1.gem
58
- - rails_warden-0.5.2.gem
59
- - rails_warden-0.5.3.gem
60
56
  - rails_warden.gemspec
61
57
  - Rakefile
62
58
  - README.textile
@@ -97,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
93
  requirements: []
98
94
 
99
95
  rubyforge_project: warden
100
- rubygems_version: 1.6.2
96
+ rubygems_version: 1.4.2
101
97
  signing_key:
102
98
  specification_version: 3
103
99
  summary: A gem that provides authenitcation via the Warden framework
Binary file
Binary file
Binary file
Binary file