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 CHANGED
@@ -1,3 +1,5 @@
1
+ == 0.5.18 2008-07-23
2
+ * Changed the generator options to simplify things. The default now is to generate all templates.
1
3
  == 0.5.17 2008-07-21
2
4
  * Updated included classy inheritance library 0.6.1.
3
5
  == 0.5.16 2008-07-18
@@ -2,7 +2,7 @@ module Lockdown #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 17
5
+ TINY = 18
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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[:all]
45
- options[:management] = true
46
- options[:login] = true
44
+ if options[:basics]
45
+ options[:skip_management] = true
46
+ options[:skip_login] = true
47
47
  end
48
48
 
49
- add_management if options[:management]
49
+ add_management unless options[:skip_management]
50
50
 
51
- add_login if options[: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("--all",
188
- "Install all Lockdown templates") { |v| options[:all] = v }
189
- opt.on("--namespace namespace",
190
- "Install lockdown templates with a namespace") { |v| options[:namespace] = v }
191
- opt.on("--models",
192
- "Install only models and migrations (skip migrations by --skip-migrations).") { |v| options[:models] = v }
193
- opt.on("--management",
194
- "Install management functionality. Which is --all minus --login. All models (migrations) included. ") { |v| options[:management] = v }
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.17</a>
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
- <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>
42
-
43
-
44
- <h2>New Home</h2>
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&#8217;m giving <a href="http://redmine.org">Redmine</a> a shot a running everything for me. I&#8217;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&#8217;m giving <a href="http://redmine.org">Redmine</a> a shot a running everything for me. I&#8217;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.17
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-21 00:00:00 -04:00
12
+ date: 2008-07-23 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency