lockdown 0.5.21 → 0.5.22

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.5.22 2008-09-14
2
+ * Update: Add test for future deprecation: Dependencies to be ActiveSupport::Dependencies
3
+
1
4
  == 0.5.21 2008-09-12
2
5
  * Updated lockdown to abide by config.active_record.timestamped_migrations introduced in Rails 2.1.1
3
6
  * Fixed: schlick fixed an issue with the user_groups edit.html.erb. thanks Michael!
@@ -258,8 +258,10 @@ module Lockdown
258
258
  end
259
259
  end
260
260
 
261
- if Lockdown.rails_app?
262
- unless ENV['RAILS_ENV'] == 'production'
261
+ if Lockdown.rails_app? && ENV['RAILS_ENV'] != 'production'
262
+ if ActiveSupport.const_defined?("Dependencies")
263
+ ActiveSupport::Dependencies.clear
264
+ else
263
265
  Dependencies.clear
264
266
  end
265
267
  end
@@ -279,7 +281,11 @@ module Lockdown
279
281
 
280
282
  def maybe_load_framework_controller_parent
281
283
  if Lockdown.rails_app?
282
- Dependencies.require_or_load("application.rb")
284
+ if ActiveSupport.const_defined?("Dependencies")
285
+ ActiveSupport::Dependencies.require_or_load("application.rb")
286
+ else
287
+ Dependencies.require_or_load("application.rb")
288
+ end
283
289
  else
284
290
  load("application.rb") unless const_defined?("Application")
285
291
  end
@@ -288,7 +294,11 @@ module Lockdown
288
294
  def lockdown_load(file)
289
295
  klass = lockdown_class_name_from_file(file)
290
296
  if Lockdown.rails_app?
291
- Dependencies.require_or_load(file)
297
+ if ActiveSupport.const_defined?("Dependencies")
298
+ ActiveSupport::Dependencies.require_or_load(file)
299
+ else
300
+ Dependencies.require_or_load(file)
301
+ end
292
302
  else
293
303
  load(file) unless qualified_const_defined?(klass)
294
304
  end
@@ -2,7 +2,7 @@ module Lockdown #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 21
5
+ TINY = 22
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>Lockdown</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/lockdown"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.21</a>
36
+ <a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.22</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
  <p>Lockdown is a authentication/authorization system for RubyOnRails (ver 2.x). While Merb functionality is in place, it is not complete. There will be a release solely focused on getting the Merb functionality up to par with Rails.</p>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.21
4
+ version: 0.5.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-12 00:00:00 -04:00
12
+ date: 2008-09-14 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency