kjohnston-lean_scaffold 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/MIT-LICENSE +20 -0
- data/Manifest.txt +26 -0
- data/PostInstall.txt +1 -0
- data/README.textile +81 -0
- data/Rakefile +26 -0
- data/generators/lean_scaffold/lean_scaffold_generator.rb +99 -0
- data/generators/lean_scaffold/templates/controller.rb +43 -0
- data/generators/lean_scaffold/templates/functional_test.rb +44 -0
- data/generators/lean_scaffold/templates/helper.rb +5 -0
- data/generators/lean_scaffold/templates/partial_form.html.erb +10 -0
- data/generators/lean_scaffold/templates/view_edit.html.erb +3 -0
- data/generators/lean_scaffold/templates/view_index.html.erb +21 -0
- data/generators/lean_scaffold/templates/view_new.html.erb +3 -0
- data/generators/lean_scaffold/templates/view_show.html.erb +6 -0
- data/init.rb +4 -0
- data/install.rb +1 -0
- data/lib/lean_scaffold.rb +6 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/tasks/lean_scaffold_tasks.rake +4 -0
- data/test/lean_scaffold_test.rb +8 -0
- data/test/test_helper.rb +3 -0
- data/test/test_lean_scaffold.rb +11 -0
- data/uninstall.rb +1 -0
- metadata +91 -0
data/History.txt
ADDED
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Kenny Johnston
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
History.txt
|
2
|
+
MIT-LICENSE
|
3
|
+
Manifest.txt
|
4
|
+
PostInstall.txt
|
5
|
+
README.textile
|
6
|
+
Rakefile
|
7
|
+
generators/lean_scaffold/lean_scaffold_generator.rb
|
8
|
+
generators/lean_scaffold/templates/controller.rb
|
9
|
+
generators/lean_scaffold/templates/functional_test.rb
|
10
|
+
generators/lean_scaffold/templates/helper.rb
|
11
|
+
generators/lean_scaffold/templates/view_edit.html.erb
|
12
|
+
generators/lean_scaffold/templates/view_index.html.erb
|
13
|
+
generators/lean_scaffold/templates/view_new.html.erb
|
14
|
+
generators/lean_scaffold/templates/view_show.html.erb
|
15
|
+
init.rb
|
16
|
+
install.rb
|
17
|
+
lib/lean_scaffold.rb
|
18
|
+
lib/lean_scaffold_helper.rb
|
19
|
+
script/console
|
20
|
+
script/destroy
|
21
|
+
script/generate
|
22
|
+
tasks/lean_scaffold_tasks.rake
|
23
|
+
test/lean_scaffold_test.rb
|
24
|
+
test/test_helper.rb
|
25
|
+
test/test_lean_scaffold.rb
|
26
|
+
uninstall.rb
|
data/PostInstall.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
For more information on lean_scaffold, see http://github.com/kjohnston/lean_scaffold
|
data/README.textile
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
h1. LeanScaffold
|
2
|
+
|
3
|
+
LeanScaffold can be installed as a plugin (recommended your first time) or as a gem. It allows you to generate a scaffold much like the regular Rails scaffold generator... but leaner... and, well - cooler.
|
4
|
+
|
5
|
+
h2. Features
|
6
|
+
|
7
|
+
|
8
|
+
* Generates a low fat model, controller and set of views
|
9
|
+
* Generates a migration and form fields (including the attributes you pass in)
|
10
|
+
* Doesn't include all that other jazz you don't need (particularly in the controller)
|
11
|
+
* Generates a fixture and functional and unit tests (like the normal Rails scaffold generator)
|
12
|
+
* Automates the use of a spinner image that swaps itself in place of a form's submit button upon submission
|
13
|
+
|
14
|
+
|
15
|
+
h2. Usage
|
16
|
+
|
17
|
+
script/generate lean_scaffold widget name:string description:text
|
18
|
+
|
19
|
+
Attributes and their data types are optional, but will result in populated migrations and generated form fields if provided.
|
20
|
+
|
21
|
+
|
22
|
+
h2. Prerequisites
|
23
|
+
|
24
|
+
|
25
|
+
* restful_authentication (just becuase it adds 'before_filter :login_required' to the controllers, which you can manually remove)
|
26
|
+
* Grab a spinner image from http://www.ajaxload.info, name it spinner.gif and drop it in public/images. This image will appear in place of the submit button when you submit a form.
|
27
|
+
* Add the following JavaScript to your app:
|
28
|
+
|
29
|
+
function spin(){
|
30
|
+
Element.toggle('processing');
|
31
|
+
Element.toggle('submit');
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
h2. After setup
|
36
|
+
|
37
|
+
|
38
|
+
* Add some CSS for the spinner image that appears when you submit a form, just align the image - pretty straightforward.
|
39
|
+
|
40
|
+
|
41
|
+
h2. Assumptions
|
42
|
+
|
43
|
+
What's a Rails plugin without some assumptions? Well you may notice that this plugin has made some judgement calls for you. For example, links such as "New Widget" and headers such as "Listing Widgets" have been omitted. I use other frameworks/helpers that auto-populate these things, so I intentionally left them out of this generator since we don't want to add stuff to our views that we just have to immediately strip out do we?
|
44
|
+
|
45
|
+
|
46
|
+
h2. Using the Gem
|
47
|
+
|
48
|
+
|
49
|
+
* Place the methods located in lib/lean_scaffold_helper.rb in a helper in your application.
|
50
|
+
* You do not need to have the plugin installed.
|
51
|
+
|
52
|
+
|
53
|
+
h2. Generated tests
|
54
|
+
|
55
|
+
Currently you'll get (virtually) the same fixtures and functional and unit tests as you would from the normal scaffold generator. Later I'd like to move this to Shoulda and Factory Girl.
|
56
|
+
|
57
|
+
|
58
|
+
h2. License
|
59
|
+
|
60
|
+
(The MIT License)
|
61
|
+
|
62
|
+
Copyright (c) 2009 Kenny Johnston
|
63
|
+
|
64
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
65
|
+
a copy of this software and associated documentation files (the
|
66
|
+
'Software'), to deal in the Software without restriction, including
|
67
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
68
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
69
|
+
permit persons to whom the Software is furnished to do so, subject to
|
70
|
+
the following conditions:
|
71
|
+
|
72
|
+
The above copyright notice and this permission notice shall be
|
73
|
+
included in all copies or substantial portions of the Software.
|
74
|
+
|
75
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
76
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
77
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
78
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
79
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
80
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
81
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
gem 'hoe', '>= 2.1.0'
|
3
|
+
require 'hoe'
|
4
|
+
require 'fileutils'
|
5
|
+
require './lib/lean_scaffold'
|
6
|
+
|
7
|
+
Hoe.plugin :newgem
|
8
|
+
# Hoe.plugin :website
|
9
|
+
# Hoe.plugin :cucumberfeatures
|
10
|
+
|
11
|
+
# Generate all the Rake tasks
|
12
|
+
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
|
+
$hoe = Hoe.spec 'lean_scaffold' do
|
14
|
+
self.developer 'FIXME full name', 'FIXME email'
|
15
|
+
self.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
|
16
|
+
self.rubyforge_name = self.name # TODO this is default value
|
17
|
+
# self.extra_deps = [['activesupport','>= 2.0.2']]
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
require 'newgem/tasks'
|
22
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
23
|
+
|
24
|
+
# TODO - want other tests/tasks run by default? Add them to the list
|
25
|
+
# remove_task :default
|
26
|
+
# task :default => [:spec, :features]
|
@@ -0,0 +1,99 @@
|
|
1
|
+
class LeanScaffoldGenerator < Rails::Generator::NamedBase
|
2
|
+
default_options :skip_timestamps => false, :skip_migration => false, :force_plural => false
|
3
|
+
|
4
|
+
attr_reader :controller_name,
|
5
|
+
:controller_class_path,
|
6
|
+
:controller_file_path,
|
7
|
+
:controller_class_nesting,
|
8
|
+
:controller_class_nesting_depth,
|
9
|
+
:controller_class_name,
|
10
|
+
:controller_underscore_name,
|
11
|
+
:controller_singular_name,
|
12
|
+
:controller_plural_name
|
13
|
+
alias_method :controller_file_name, :controller_underscore_name
|
14
|
+
alias_method :controller_table_name, :controller_plural_name
|
15
|
+
|
16
|
+
def initialize(runtime_args, runtime_options = {})
|
17
|
+
super
|
18
|
+
|
19
|
+
if @name == @name.pluralize && !options[:force_plural]
|
20
|
+
logger.warning "Plural version of the model detected, using singularized version. Override with --force-plural."
|
21
|
+
@name = @name.singularize
|
22
|
+
end
|
23
|
+
|
24
|
+
@controller_name = @name.pluralize
|
25
|
+
|
26
|
+
base_name, @controller_class_path, @controller_file_path, @controller_class_nesting, @controller_class_nesting_depth = extract_modules(@controller_name)
|
27
|
+
@controller_class_name_without_nesting, @controller_underscore_name, @controller_plural_name = inflect_names(base_name)
|
28
|
+
@controller_singular_name=base_name.singularize
|
29
|
+
if @controller_class_nesting.empty?
|
30
|
+
@controller_class_name = @controller_class_name_without_nesting
|
31
|
+
else
|
32
|
+
@controller_class_name = "#{@controller_class_nesting}::#{@controller_class_name_without_nesting}"
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def manifest
|
37
|
+
record do |m|
|
38
|
+
# Check for class naming collisions.
|
39
|
+
m.class_collisions("#{controller_class_name}Controller", "#{controller_class_name}Helper")
|
40
|
+
m.class_collisions(class_name)
|
41
|
+
|
42
|
+
# Controller, helper, views, test and stylesheets directories.
|
43
|
+
m.directory(File.join('app/models', class_path))
|
44
|
+
m.directory(File.join('app/controllers', controller_class_path))
|
45
|
+
m.directory(File.join('app/helpers', controller_class_path))
|
46
|
+
m.directory(File.join('app/views', controller_class_path, controller_file_name))
|
47
|
+
m.directory(File.join('app/views/layouts', controller_class_path))
|
48
|
+
m.directory(File.join('test/functional', controller_class_path))
|
49
|
+
m.directory(File.join('test/unit', class_path))
|
50
|
+
m.directory(File.join('test/unit/helpers', class_path))
|
51
|
+
m.directory(File.join('public/stylesheets', class_path))
|
52
|
+
|
53
|
+
for action in scaffold_views
|
54
|
+
m.template(
|
55
|
+
"view_#{action}.html.erb",
|
56
|
+
File.join('app/views', controller_class_path, controller_file_name, "#{action}.html.erb")
|
57
|
+
)
|
58
|
+
end
|
59
|
+
|
60
|
+
m.template("partial_form.html.erb", File.join('app/views', controller_class_path, controller_file_name, '_form.html.erb'))
|
61
|
+
|
62
|
+
m.template(
|
63
|
+
'controller.rb', File.join('app/controllers', controller_class_path, "#{controller_file_name}_controller.rb")
|
64
|
+
)
|
65
|
+
|
66
|
+
m.template('functional_test.rb', File.join('test/functional', controller_class_path, "#{controller_file_name}_controller_test.rb"))
|
67
|
+
m.template('helper.rb', File.join('app/helpers', controller_class_path, "#{controller_file_name}_helper.rb"))
|
68
|
+
|
69
|
+
m.route_resources controller_file_name
|
70
|
+
|
71
|
+
m.dependency 'model', [name] + @args, :collision => :skip
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
protected
|
76
|
+
# Override with your own usage banner.
|
77
|
+
def banner
|
78
|
+
"Usage: #{$0} scaffold ModelName [field:type, field:type]"
|
79
|
+
end
|
80
|
+
|
81
|
+
def add_options!(opt)
|
82
|
+
opt.separator ''
|
83
|
+
opt.separator 'Options:'
|
84
|
+
opt.on("--skip-timestamps",
|
85
|
+
"Don't add timestamps to the migration file for this model") { |v| options[:skip_timestamps] = v }
|
86
|
+
opt.on("--skip-migration",
|
87
|
+
"Don't generate a migration file for this model") { |v| options[:skip_migration] = v }
|
88
|
+
opt.on("--force-plural",
|
89
|
+
"Forces the generation of a plural ModelName") { |v| options[:force_plural] = v }
|
90
|
+
end
|
91
|
+
|
92
|
+
def scaffold_views
|
93
|
+
%w[ index show new edit ]
|
94
|
+
end
|
95
|
+
|
96
|
+
def model_name
|
97
|
+
class_name.demodulize
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
class <%= controller_class_name %>Controller < ApplicationController
|
2
|
+
|
3
|
+
before_filter :login_required
|
4
|
+
before_filter :find_<%= file_name %>, :only => [:destroy, :edit, :show, :update]
|
5
|
+
|
6
|
+
def index
|
7
|
+
@<%= table_name %> = <%= class_name %>.find(:all)
|
8
|
+
end
|
9
|
+
|
10
|
+
def show
|
11
|
+
end
|
12
|
+
|
13
|
+
def new
|
14
|
+
@<%= file_name %> = <%= class_name %>.new
|
15
|
+
end
|
16
|
+
|
17
|
+
def edit
|
18
|
+
end
|
19
|
+
|
20
|
+
def create
|
21
|
+
@<%= file_name %> = <%= class_name %>.new(params[:<%= file_name %>])
|
22
|
+
flash[:notice] = '<%= class_name %> was successfully created.' and redirect_to <%= table_name %>_path and return if @<%= file_name %>.save
|
23
|
+
render :action => 'new'
|
24
|
+
end
|
25
|
+
|
26
|
+
def update
|
27
|
+
flash[:notice] = '<%= class_name %> was successfully updated.' and redirect_to <%= table_name %>_path and return if @<%= file_name %>.update_attributes(params[:<%= file_name %>])
|
28
|
+
render :action => 'edit'
|
29
|
+
end
|
30
|
+
|
31
|
+
def destroy
|
32
|
+
flash[:notice] = '<%= class_name %> was successfully updated.' if @<%= file_name %>.destroy
|
33
|
+
redirect_to <%= table_name %>_path
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
private
|
38
|
+
|
39
|
+
def find_<%= file_name %>
|
40
|
+
@<%= file_name %> = <%= class_name %>.find(params[:id])
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class <%= controller_class_name %>ControllerTest < ActionController::TestCase
|
4
|
+
test "should get index" do
|
5
|
+
get :index
|
6
|
+
assert_response :success
|
7
|
+
assert_not_nil assigns(:<%= table_name %>)
|
8
|
+
end
|
9
|
+
|
10
|
+
test "should get new" do
|
11
|
+
get :new
|
12
|
+
assert_response :success
|
13
|
+
end
|
14
|
+
|
15
|
+
test "should create <%= file_name %>" do
|
16
|
+
assert_difference('<%= class_name %>.count') do
|
17
|
+
post :create, :<%= file_name %> => { }
|
18
|
+
end
|
19
|
+
assert_redirected_to <%= table_name %>_path
|
20
|
+
end
|
21
|
+
|
22
|
+
test "should show <%= file_name %>" do
|
23
|
+
get :show, :id => <%= table_name %>(:one).to_param
|
24
|
+
assert_response :success
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should get edit" do
|
28
|
+
get :edit, :id => <%= table_name %>(:one).to_param
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should update <%= file_name %>" do
|
33
|
+
put :update, :id => <%= table_name %>(:one).to_param, :<%= file_name %> => { }
|
34
|
+
assert_redirected_to <%= table_name %>_path
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should destroy <%= file_name %>" do
|
38
|
+
assert_difference('<%= class_name %>.count', -1) do
|
39
|
+
delete :destroy, :id => <%= table_name %>(:one).to_param
|
40
|
+
end
|
41
|
+
|
42
|
+
assert_redirected_to <%= table_name %>_path
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<table>
|
2
|
+
<tr>
|
3
|
+
<% for attribute in attributes -%>
|
4
|
+
<th><%= attribute.column.human_name %></th>
|
5
|
+
<% end -%>
|
6
|
+
<th> </th>
|
7
|
+
</tr>
|
8
|
+
|
9
|
+
<%% @<%= plural_name %>.each do |<%= singular_name %>| %>
|
10
|
+
<tr>
|
11
|
+
<% for attribute in attributes -%>
|
12
|
+
<td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
|
13
|
+
<% end -%>
|
14
|
+
<td>
|
15
|
+
<%%= link_to 'Show', <%= singular_name %> %>
|
16
|
+
<%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %>
|
17
|
+
<%%= delete_link(<%= singular_name %>) %>
|
18
|
+
</td>
|
19
|
+
</tr>
|
20
|
+
<%% end %>
|
21
|
+
</table>
|
data/init.rb
ADDED
data/install.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Install hook code here
|
data/script/console
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# File: script/console
|
3
|
+
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
+
|
5
|
+
libs = " -r irb/completion"
|
6
|
+
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
+
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
+
libs << " -r #{File.dirname(__FILE__) + '/../lib/lean_scaffold.rb'}"
|
9
|
+
puts "Loading lean_scaffold gem"
|
10
|
+
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/destroy'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
+
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/generate'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
+
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/test/test_helper.rb
ADDED
data/uninstall.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Uninstall hook code here
|
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: kjohnston-lean_scaffold
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kenny Johnston
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-07-25 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.3.2
|
24
|
+
version:
|
25
|
+
description: LeanScaffold can be installed as a plugin (recommended your first time) or as a gem. It allows you to generate a scaffold much like the regular Rails scaffold generator... but leaner... and, well - cooler.
|
26
|
+
email:
|
27
|
+
- info@appcreations.com
|
28
|
+
executables: []
|
29
|
+
|
30
|
+
extensions: []
|
31
|
+
|
32
|
+
extra_rdoc_files:
|
33
|
+
- History.txt
|
34
|
+
- Manifest.txt
|
35
|
+
- PostInstall.txt
|
36
|
+
files:
|
37
|
+
- History.txt
|
38
|
+
- MIT-LICENSE
|
39
|
+
- Manifest.txt
|
40
|
+
- PostInstall.txt
|
41
|
+
- README.textile
|
42
|
+
- Rakefile
|
43
|
+
- generators/lean_scaffold/lean_scaffold_generator.rb
|
44
|
+
- generators/lean_scaffold/templates/controller.rb
|
45
|
+
- generators/lean_scaffold/templates/functional_test.rb
|
46
|
+
- generators/lean_scaffold/templates/helper.rb
|
47
|
+
- generators/lean_scaffold/templates/partial_form.html.erb
|
48
|
+
- generators/lean_scaffold/templates/view_edit.html.erb
|
49
|
+
- generators/lean_scaffold/templates/view_index.html.erb
|
50
|
+
- generators/lean_scaffold/templates/view_new.html.erb
|
51
|
+
- generators/lean_scaffold/templates/view_show.html.erb
|
52
|
+
- init.rb
|
53
|
+
- install.rb
|
54
|
+
- lib/lean_scaffold.rb
|
55
|
+
- script/console
|
56
|
+
- script/destroy
|
57
|
+
- script/generate
|
58
|
+
- tasks/lean_scaffold_tasks.rake
|
59
|
+
- test/lean_scaffold_test.rb
|
60
|
+
- test/test_helper.rb
|
61
|
+
- test/test_lean_scaffold.rb
|
62
|
+
- uninstall.rb
|
63
|
+
has_rdoc: true
|
64
|
+
homepage: http://github.com/kjohnston/lean_scaffold
|
65
|
+
post_install_message: PostInstall.txt
|
66
|
+
rdoc_options: []
|
67
|
+
|
68
|
+
require_paths:
|
69
|
+
- lib
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: "0"
|
75
|
+
version:
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: "0"
|
81
|
+
version:
|
82
|
+
requirements: []
|
83
|
+
|
84
|
+
rubyforge_project: lean_scaffold
|
85
|
+
rubygems_version: 1.2.0
|
86
|
+
signing_key:
|
87
|
+
specification_version: 2
|
88
|
+
summary: LeanScaffold can be installed as a plugin (recommended your first time) or as a gem. It allows you to generate a scaffold much like the regular Rails scaffold generator... but leaner... and, well - cooler.
|
89
|
+
test_files:
|
90
|
+
- test/test_helper.rb
|
91
|
+
- test/test_lean_scaffold.rb
|