lockdown 0.5.17 → 0.5.18
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -0
- data/lib/lockdown/version.rb +1 -1
- data/rails_generators/lockdown/lockdown_generator.rb +15 -15
- data/website/index.html +8 -22
- metadata +2 -2
data/History.txt
CHANGED
data/lib/lockdown/version.rb
CHANGED
@@ -41,14 +41,14 @@ class LockdownGenerator < Rails::Generator::Base
|
|
41
41
|
@m.directory @controller_path
|
42
42
|
@m.directory @helper_path
|
43
43
|
|
44
|
-
if options[:
|
45
|
-
options[:
|
46
|
-
options[:
|
44
|
+
if options[:basics]
|
45
|
+
options[:skip_management] = true
|
46
|
+
options[:skip_login] = true
|
47
47
|
end
|
48
48
|
|
49
|
-
add_management
|
49
|
+
add_management unless options[:skip_management]
|
50
50
|
|
51
|
-
add_login
|
51
|
+
add_login unless options[:skip_login]
|
52
52
|
|
53
53
|
add_models
|
54
54
|
end #record do |m|
|
@@ -177,6 +177,8 @@ class LockdownGenerator < Rails::Generator::Base
|
|
177
177
|
Installs the lockdown framework to managing users user_groups
|
178
178
|
and viewing permissions. Also includes a login screen.
|
179
179
|
|
180
|
+
By default the entire set of stubs are installed. Please use the appropriate options to customize your install.
|
181
|
+
|
180
182
|
USAGE: #{$0} #{spec.name}
|
181
183
|
EOS
|
182
184
|
end
|
@@ -184,16 +186,14 @@ EOS
|
|
184
186
|
def add_options!(opt)
|
185
187
|
opt.separator ''
|
186
188
|
opt.separator 'Options:'
|
187
|
-
opt.on("--
|
188
|
-
"Install
|
189
|
-
opt.on("--
|
190
|
-
"
|
191
|
-
opt.on("--
|
192
|
-
"
|
193
|
-
opt.on("--
|
194
|
-
"Install
|
195
|
-
opt.on("--login",
|
196
|
-
"Install login functionality. Which is --all minus --management. All models (migrations) included. ") { |v| options[:login] = v }
|
189
|
+
opt.on("--namespace=admin",
|
190
|
+
"Install lockdown templates with a namespace, in this example 'admin'.") { |v| options[:namespace] = v }
|
191
|
+
opt.on("--skip-management",
|
192
|
+
"Generate everything but management screens. (controllers, helpers and views for users, permissions and user_groups are not generated). Renders namespace option meaningless.") { |v| options[:skip_management] = v }
|
193
|
+
opt.on("--skip-login",
|
194
|
+
"Generate everything but login (sessions controller and sessions view dir).") { |v| options[:skip_login] = v }
|
195
|
+
opt.on("--basics",
|
196
|
+
"Install only models and migrations. Equivalent to skip-management and skip-login.") { |v| options[:basics] = v }
|
197
197
|
opt.on("--skip-migrations",
|
198
198
|
"Skip migrations installation") { |v| options[:skip_migrations] = v }
|
199
199
|
end
|
data/website/index.html
CHANGED
@@ -33,30 +33,16 @@
|
|
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.18</a>
|
37
37
|
</div>
|
38
38
|
<h2>What</h2>
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<p>Maintaining this page, the wiki at GitHub, the Google Group and no issue tracker is not an ideal setup. So, everything is moving to <a href="http://stonean.com">stonean.com</a> where I’m giving <a href="http://redmine.org">Redmine</a> a shot a running everything for me. I’ll be posting release announcements to the news feed for each project and keeping the docs up-to-date. Hopefully this will be better for everyone.</p>
|
48
|
-
|
49
|
-
|
50
|
-
<h2>Quick links</h2>
|
51
|
-
|
52
|
-
|
53
|
-
<p><a href="http://stonean.com/wiki/lockdown">Wiki</a></p>
|
54
|
-
|
55
|
-
|
56
|
-
<p><a href="http://stonean.com/projects/lockdown/boards">Forum</a></p>
|
57
|
-
|
58
|
-
|
59
|
-
<p>Thanks for your interest in Lockdown,<br/>
|
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>
|
40
|
+
<h2>New Home</h2>
|
41
|
+
<p>Maintaining this page, the wiki at GitHub, the Google Group and no issue tracker is not an ideal setup. So, everything is moving to <a href="http://stonean.com">stonean.com</a> where I’m giving <a href="http://redmine.org">Redmine</a> a shot a running everything for me. I’ll be posting release announcements to the news feed for each project and keeping the docs up-to-date. Hopefully this will be better for everyone.</p>
|
42
|
+
<h2>Quick links</h2>
|
43
|
+
<p><a href="http://stonean.com/wiki/lockdown">Wiki</a></p>
|
44
|
+
<p><a href="http://stonean.com/projects/lockdown/boards">Forum</a></p>
|
45
|
+
<p>Thanks for your interest in Lockdown,<br/><br />
|
60
46
|
-andy</p>
|
61
47
|
<p class="coda">
|
62
48
|
10th July 2008<br/>
|
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.18
|
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-07-
|
12
|
+
date: 2008-07-23 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|