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 +3 -0
- data/lib/lockdown/version.rb +1 -1
- data/rails_generators/lockdown/lockdown_generator.rb +4 -5
- data/website/index.html +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/lockdown/version.rb
CHANGED
@@ -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[:
|
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 --
|
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("--
|
199
|
-
"Skip migrations installation") { |v| options[:
|
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.
|
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.
|
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-
|
12
|
+
date: 2008-07-18 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|