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 +3 -0
- data/lib/lockdown/system.rb +14 -4
- data/lib/lockdown/version.rb +1 -1
- data/website/index.html +1 -1
- metadata +2 -2
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!
|
data/lib/lockdown/system.rb
CHANGED
@@ -258,8 +258,10 @@ module Lockdown
|
|
258
258
|
end
|
259
259
|
end
|
260
260
|
|
261
|
-
if Lockdown.rails_app?
|
262
|
-
|
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
|
-
|
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
|
-
|
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
|
data/lib/lockdown/version.rb
CHANGED
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.
|
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.
|
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
|
+
date: 2008-09-14 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|