lockdown 0.5.13 → 0.5.14

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.14 2008-07-xx
2
+ * Change: option no_migration to skip-migrations to mimick other generator options
3
+
1
4
  == 0.5.13 2008-07-10
2
5
  * Add: Support for --namespace option on generator. Use as ./script generate lockdown --all --namespace=admin
3
6
 
@@ -2,7 +2,7 @@ module Lockdown #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- TINY = 13
5
+ TINY = 14
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -83,7 +83,6 @@ class LockdownGenerator < Rails::Generator::Base
83
83
  end
84
84
 
85
85
  def add_login
86
- @m.directory "app/controllers/sessions"
87
86
  @m.directory "app/views/sessions"
88
87
 
89
88
  @m.template "app/controllers/sessions_controller.rb",
@@ -104,7 +103,7 @@ class LockdownGenerator < Rails::Generator::Base
104
103
  write_model("user_group")
105
104
  write_model("profile")
106
105
 
107
- unless options[:no_migrations]
106
+ unless options[:skip_migrations]
108
107
  write_migration("create_profiles")
109
108
  write_migration("create_users")
110
109
  write_migration("create_user_groups")
@@ -190,13 +189,13 @@ EOS
190
189
  opt.on("--namespace namespace",
191
190
  "Install lockdown templates with a namespace") { |v| options[:namespace] = v }
192
191
  opt.on("--models",
193
- "Install only models and migrations (skip migrations by --no_migrations).") { |v| options[:models] = v }
192
+ "Install only models and migrations (skip migrations by --skip-migrations).") { |v| options[:models] = v }
194
193
  opt.on("--management",
195
194
  "Install management functionality. Which is --all minus --login. All models (migrations) included. ") { |v| options[:management] = v }
196
195
  opt.on("--login",
197
196
  "Install login functionality. Which is --all minus --management. All models (migrations) included. ") { |v| options[:login] = v }
198
- opt.on("--no_migrations",
199
- "Skip migrations installation") { |v| options[:no_migrations] = v }
197
+ opt.on("--skip-migrations",
198
+ "Skip migrations installation") { |v| options[:skip_migrations] = v }
200
199
  end
201
200
 
202
201
  def write_migration(str)
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.13</a>
36
+ <a href="http://rubyforge.org/projects/lockdown" class="numbers">0.5.14</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
 
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.13
4
+ version: 0.5.14
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-10 00:00:00 -04:00
12
+ date: 2008-07-18 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency