dust-generators 0.0.1.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +13 -0
- data/Gemfile.lock +38 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +19 -0
- data/Rakefile +54 -0
- data/lib/dust/version.rb +10 -0
- data/lib/generators/dust/config/USAGE +23 -0
- data/lib/generators/dust/config/config_generator.rb +24 -0
- data/lib/generators/dust/config/templates/config.yml +8 -0
- data/lib/generators/dust/config/templates/load_config.rb +2 -0
- data/lib/generators/dust/scaffold/USAGE +51 -0
- data/lib/generators/dust/scaffold/scaffold_generator.rb +249 -0
- data/lib/generators/dust/scaffold/templates/actions/create.rb +9 -0
- data/lib/generators/dust/scaffold/templates/actions/destroy.rb +6 -0
- data/lib/generators/dust/scaffold/templates/actions/edit.rb +3 -0
- data/lib/generators/dust/scaffold/templates/actions/index.rb +3 -0
- data/lib/generators/dust/scaffold/templates/actions/new.rb +3 -0
- data/lib/generators/dust/scaffold/templates/actions/show.rb +3 -0
- data/lib/generators/dust/scaffold/templates/actions/update.rb +9 -0
- data/lib/generators/dust/scaffold/templates/controller.rb +3 -0
- data/lib/generators/dust/scaffold/templates/fixtures.yml +9 -0
- data/lib/generators/dust/scaffold/templates/helper.rb +2 -0
- data/lib/generators/dust/scaffold/templates/migration.rb +16 -0
- data/lib/generators/dust/scaffold/templates/model.rb +15 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/actions/create.rb +11 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/actions/index.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/actions/new.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/actions/show.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/actions/update.rb +11 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/controller.rb +8 -0
- data/lib/generators/dust/scaffold/templates/tests/rspec/model.rb +7 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/controller.rb +5 -0
- data/lib/generators/dust/scaffold/templates/tests/shoulda/model.rb +7 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/actions/create.rb +11 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/actions/index.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/actions/new.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/actions/show.rb +4 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/actions/update.rb +11 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/controller.rb +5 -0
- data/lib/generators/dust/scaffold/templates/tests/testunit/model.rb +7 -0
- data/lib/generators/dust/scaffold/templates/views/erb/_form.html.erb +16 -0
- data/lib/generators/dust/scaffold/templates/views/erb/_search.html.erb +6 -0
- data/lib/generators/dust/scaffold/templates/views/erb/edit.html.erb +4 -0
- data/lib/generators/dust/scaffold/templates/views/erb/index.html.erb +24 -0
- data/lib/generators/dust/scaffold/templates/views/erb/new.html.erb +5 -0
- data/lib/generators/dust/scaffold/templates/views/erb/show.html.erb +22 -0
- data/lib/generators/dust/scaffold/templates/views/haml/_form.html.haml +10 -0
- data/lib/generators/dust/scaffold/templates/views/haml/edit.html.haml +14 -0
- data/lib/generators/dust/scaffold/templates/views/haml/index.html.haml +25 -0
- data/lib/generators/dust/scaffold/templates/views/haml/new.html.haml +7 -0
- data/lib/generators/dust/scaffold/templates/views/haml/show.html.haml +20 -0
- data/lib/generators/dust.rb +15 -0
- data/test/helper.rb +18 -0
- data/test/test_dust-generators.rb +7 -0
- metadata +202 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
it "update action should render edit template when model is invalid" do
|
2
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
3
|
+
put :update, :id => <%= class_name %>.first
|
4
|
+
response.should render_template(:edit)
|
5
|
+
end
|
6
|
+
|
7
|
+
it "update action should redirect when model is valid" do
|
8
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
9
|
+
put :update, :id => <%= class_name %>.first
|
10
|
+
response.should redirect_to(<%= item_path_for_spec('url') %>)
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
context "create action" do
|
2
|
+
should "render new template when model is invalid" do
|
3
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
4
|
+
post :create
|
5
|
+
assert_template 'new'
|
6
|
+
end
|
7
|
+
|
8
|
+
should "redirect when model is valid" do
|
9
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
10
|
+
post :create
|
11
|
+
assert_redirected_to <%= item_path_for_test('url') %>
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
context "destroy action" do
|
2
|
+
should "destroy model and redirect to index action" do
|
3
|
+
<%= singular_name %> = <%= class_name %>.first
|
4
|
+
delete :destroy, :id => <%= singular_name %>
|
5
|
+
assert_redirected_to <%= items_path('url') %>
|
6
|
+
assert !<%= class_name %>.exists?(<%= singular_name %>.id)
|
7
|
+
end
|
8
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
context "update action" do
|
2
|
+
should "render edit template when model is invalid" do
|
3
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
4
|
+
put :update, :id => <%= class_name %>.first
|
5
|
+
assert_template 'edit'
|
6
|
+
end
|
7
|
+
|
8
|
+
should "redirect when model is valid" do
|
9
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
10
|
+
put :update, :id => <%= class_name %>.first
|
11
|
+
assert_redirected_to <%= item_path_for_test('url') %>
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
def test_create_invalid
|
2
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
3
|
+
post :create
|
4
|
+
assert_template 'new'
|
5
|
+
end
|
6
|
+
|
7
|
+
def test_create_valid
|
8
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
9
|
+
post :create
|
10
|
+
assert_redirected_to <%= item_path_for_test('url') %>
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
def test_update_invalid
|
2
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
3
|
+
put :update, :id => <%= class_name %>.first
|
4
|
+
assert_template 'edit'
|
5
|
+
end
|
6
|
+
|
7
|
+
def test_update_valid
|
8
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
9
|
+
put :update, :id => <%= class_name %>.first
|
10
|
+
assert_redirected_to <%= item_path_for_test('url') %>
|
11
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<%= content_for :head do -%>
|
2
|
+
<%= javascript_include_tag :ckeditor %>
|
3
|
+
<% end -%>
|
4
|
+
|
5
|
+
<%%= form_for @<%= singular_name %>, :validations => true do |f| %>
|
6
|
+
<%%= f.error_messages %>
|
7
|
+
<%- for attribute in model_attributes -%>
|
8
|
+
<div class="item">
|
9
|
+
<%%= f.label :<%= attribute.name %> %><br />
|
10
|
+
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
|
11
|
+
</div>
|
12
|
+
<%- end -%>
|
13
|
+
<div class="item">
|
14
|
+
<p><%%= f.submit %></p>
|
15
|
+
</div>
|
16
|
+
<%% end %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div id="searchbox">
|
2
|
+
<%%= form_tag <%= plural_name %>_path, :method => 'get' do %>
|
3
|
+
<%%= text_field_tag :search, params[:search], :class => "input-text", :placeholder => 'Search <%= singular_name.capitalize %>' %>
|
4
|
+
<%%= image_submit_tag "admin/blank.png", :class => "image-submit"%>
|
5
|
+
<%% end %>
|
6
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<%% title "<%= plural_name.titleize %>" %>
|
2
|
+
|
3
|
+
<div class="button_bar">
|
4
|
+
<%%= render :partial => 'search' %>
|
5
|
+
<%%=link_to('new page', new_<%= singular_name %>_path, :class => 'newfile tip', :title => "New <%= singular_name.capitalize %>")%>
|
6
|
+
</div>
|
7
|
+
|
8
|
+
<%%= will_paginate @<%= plural_name %> %>
|
9
|
+
|
10
|
+
<%% @<%= plural_name %>.each do |<%= singular_name %>| %>
|
11
|
+
<div class="item">
|
12
|
+
<div style='float:right'>
|
13
|
+
<%%=link_to('', edit_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit tip', :title => "Edit This Item" )%>
|
14
|
+
<%%=link_to "", <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy tip', :title => "Destroy This Item" %>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<h3><%%= link_to <%= singular_name %>.<%= model_attributes.first %>, <%= singular_name %> %></h3>
|
18
|
+
<p>
|
19
|
+
<%%= link_to "Preview <%= singular_name.capitalize %>", <%= singular_name %>, :class => 'remote_iframe' %>
|
20
|
+
</p>
|
21
|
+
</div>
|
22
|
+
<%% end -%>
|
23
|
+
|
24
|
+
<%%= will_paginate @<%= plural_name %> %>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<%% title "<%= singular_name.titleize %>" %>
|
2
|
+
|
3
|
+
<div class="item">
|
4
|
+
<div style='float:right'>
|
5
|
+
<%- if action? :edit -%>
|
6
|
+
<%%=link_to '', edit_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit tip', :title => "Edit This Item" %>
|
7
|
+
<%- end -%>
|
8
|
+
<%- if action? :destroy -%>
|
9
|
+
<%%=link_to "", <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy tip', :title => "Destroy This Item" %>
|
10
|
+
<%- end -%>
|
11
|
+
</div>
|
12
|
+
<h3><%%= link_to <%= singular_name %>.<%= model_attributes.first %>, <%= singular_name %>.menu_item.url %></h3>
|
13
|
+
<p>
|
14
|
+
<%%= link_to "Preview <%= singular_name.titleize %>", <%= singular_name %>.filename, :class => 'remote_iframe' %>
|
15
|
+
</p>
|
16
|
+
<%- for attribute in model_attributes -%>
|
17
|
+
<p>
|
18
|
+
<strong><%= attribute.human_name.titleize %>:</strong>
|
19
|
+
<%%= @<%= singular_name %>.<%= attribute.name %> %>
|
20
|
+
</p>
|
21
|
+
<%- end -%>
|
22
|
+
</div>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
- title "Edit <%= singular_name.titleize %>"
|
2
|
+
|
3
|
+
<%= render_form %>
|
4
|
+
|
5
|
+
<%- if actions? :show, :index -%>
|
6
|
+
%p
|
7
|
+
<%- if action? :show -%>
|
8
|
+
= link_to "Show", <%= singular_name %>_path(@<%= singular_name %>)
|
9
|
+
|
|
10
|
+
<%- end -%>
|
11
|
+
<%- if action? :index -%>
|
12
|
+
= link_to "View All", <%= plural_name %>_path
|
13
|
+
<%- end -%>
|
14
|
+
<%- end -%>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
- title "<%= plural_name.titleize %>"
|
2
|
+
|
3
|
+
%table
|
4
|
+
%tr
|
5
|
+
<%- for attribute in model_attributes -%>
|
6
|
+
%th <%= attribute.human_name %>
|
7
|
+
<%- end -%>
|
8
|
+
- for <%= singular_name %> in @<%= plural_name %>
|
9
|
+
%tr
|
10
|
+
<%- for attribute in model_attributes -%>
|
11
|
+
%td= <%= singular_name %>.<%= attribute.name %>
|
12
|
+
<%- end -%>
|
13
|
+
<%- if action? :show -%>
|
14
|
+
%td= link_to 'Show', <%= singular_name %>
|
15
|
+
<%- end -%>
|
16
|
+
<%- if action? :edit -%>
|
17
|
+
%td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>)
|
18
|
+
<%- end -%>
|
19
|
+
<%- if action? :destroy -%>
|
20
|
+
%td= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
|
21
|
+
<%- end -%>
|
22
|
+
|
23
|
+
<%- if actions? :new -%>
|
24
|
+
%p= link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path
|
25
|
+
<%- end -%>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
- title "<%= singular_name.titleize %>"
|
2
|
+
|
3
|
+
<%- for attribute in model_attributes -%>
|
4
|
+
%p
|
5
|
+
%strong <%= attribute.human_name.titleize %>:
|
6
|
+
= @<%= singular_name %>.<%= attribute.name %>
|
7
|
+
<%- end -%>
|
8
|
+
|
9
|
+
%p
|
10
|
+
<%- if action? :edit -%>
|
11
|
+
= link_to "Edit", edit_<%= singular_name %>_path(@<%= singular_name %>)
|
12
|
+
|
|
13
|
+
<%- end -%>
|
14
|
+
<%- if action? :destroy -%>
|
15
|
+
= link_to "Destroy", @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
|
16
|
+
|
|
17
|
+
<%- end -%>
|
18
|
+
<%- if action? :index -%>
|
19
|
+
= link_to "View All", <%= plural_name %>_path
|
20
|
+
<%- end -%>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
|
3
|
+
module Dust
|
4
|
+
module Generators
|
5
|
+
class Base < Rails::Generators::Base #:nodoc:
|
6
|
+
def self.source_root
|
7
|
+
@_dust_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'dust', generator_name, 'templates'))
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.banner
|
11
|
+
"#{$0} dust:#{generator_name} #{self.arguments.map{ |a| a.usage }.join(' ')} [options]"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'dust-generators'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dust-generators
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: true
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- pre2
|
10
|
+
version: 0.0.1.pre2
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- rossnelson
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-02-25 00:00:00 -06:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: paperclip
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :runtime
|
32
|
+
prerelease: false
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: shoulda
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *id002
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
segments:
|
55
|
+
- 1
|
56
|
+
- 0
|
57
|
+
- 0
|
58
|
+
version: 1.0.0
|
59
|
+
type: :development
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: jeweler
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 1
|
71
|
+
- 5
|
72
|
+
- 2
|
73
|
+
version: 1.5.2
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: rcov
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
version: "0"
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: *id005
|
90
|
+
description: Generators such as Uploadify Albums and Photos, and Location or facilities
|
91
|
+
email: axcess1@me.com
|
92
|
+
executables: []
|
93
|
+
|
94
|
+
extensions: []
|
95
|
+
|
96
|
+
extra_rdoc_files:
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.rdoc
|
99
|
+
files:
|
100
|
+
- Gemfile
|
101
|
+
- Gemfile.lock
|
102
|
+
- LICENSE.txt
|
103
|
+
- README.rdoc
|
104
|
+
- Rakefile
|
105
|
+
- lib/dust/version.rb
|
106
|
+
- lib/generators/dust.rb
|
107
|
+
- lib/generators/dust/config/USAGE
|
108
|
+
- lib/generators/dust/config/config_generator.rb
|
109
|
+
- lib/generators/dust/config/templates/config.yml
|
110
|
+
- lib/generators/dust/config/templates/load_config.rb
|
111
|
+
- lib/generators/dust/scaffold/USAGE
|
112
|
+
- lib/generators/dust/scaffold/scaffold_generator.rb
|
113
|
+
- lib/generators/dust/scaffold/templates/actions/create.rb
|
114
|
+
- lib/generators/dust/scaffold/templates/actions/destroy.rb
|
115
|
+
- lib/generators/dust/scaffold/templates/actions/edit.rb
|
116
|
+
- lib/generators/dust/scaffold/templates/actions/index.rb
|
117
|
+
- lib/generators/dust/scaffold/templates/actions/new.rb
|
118
|
+
- lib/generators/dust/scaffold/templates/actions/show.rb
|
119
|
+
- lib/generators/dust/scaffold/templates/actions/update.rb
|
120
|
+
- lib/generators/dust/scaffold/templates/controller.rb
|
121
|
+
- lib/generators/dust/scaffold/templates/fixtures.yml
|
122
|
+
- lib/generators/dust/scaffold/templates/helper.rb
|
123
|
+
- lib/generators/dust/scaffold/templates/migration.rb
|
124
|
+
- lib/generators/dust/scaffold/templates/model.rb
|
125
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/actions/create.rb
|
126
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/actions/destroy.rb
|
127
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/actions/edit.rb
|
128
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/actions/index.rb
|
129
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/actions/new.rb
|
130
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/actions/show.rb
|
131
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/actions/update.rb
|
132
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/controller.rb
|
133
|
+
- lib/generators/dust/scaffold/templates/tests/rspec/model.rb
|
134
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/actions/create.rb
|
135
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/actions/destroy.rb
|
136
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/actions/edit.rb
|
137
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/actions/index.rb
|
138
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/actions/new.rb
|
139
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/actions/show.rb
|
140
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/actions/update.rb
|
141
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/controller.rb
|
142
|
+
- lib/generators/dust/scaffold/templates/tests/shoulda/model.rb
|
143
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/actions/create.rb
|
144
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/actions/destroy.rb
|
145
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/actions/edit.rb
|
146
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/actions/index.rb
|
147
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/actions/new.rb
|
148
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/actions/show.rb
|
149
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/actions/update.rb
|
150
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/controller.rb
|
151
|
+
- lib/generators/dust/scaffold/templates/tests/testunit/model.rb
|
152
|
+
- lib/generators/dust/scaffold/templates/views/erb/_form.html.erb
|
153
|
+
- lib/generators/dust/scaffold/templates/views/erb/_search.html.erb
|
154
|
+
- lib/generators/dust/scaffold/templates/views/erb/edit.html.erb
|
155
|
+
- lib/generators/dust/scaffold/templates/views/erb/index.html.erb
|
156
|
+
- lib/generators/dust/scaffold/templates/views/erb/new.html.erb
|
157
|
+
- lib/generators/dust/scaffold/templates/views/erb/show.html.erb
|
158
|
+
- lib/generators/dust/scaffold/templates/views/haml/_form.html.haml
|
159
|
+
- lib/generators/dust/scaffold/templates/views/haml/edit.html.haml
|
160
|
+
- lib/generators/dust/scaffold/templates/views/haml/index.html.haml
|
161
|
+
- lib/generators/dust/scaffold/templates/views/haml/new.html.haml
|
162
|
+
- lib/generators/dust/scaffold/templates/views/haml/show.html.haml
|
163
|
+
- test/helper.rb
|
164
|
+
- test/test_dust-generators.rb
|
165
|
+
has_rdoc: true
|
166
|
+
homepage: http://github.com/rossnelson/dust-generators
|
167
|
+
licenses:
|
168
|
+
- MIT
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
|
172
|
+
require_paths:
|
173
|
+
- lib
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
none: false
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
hash: 3449952017661859374
|
180
|
+
segments:
|
181
|
+
- 0
|
182
|
+
version: "0"
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
none: false
|
185
|
+
requirements:
|
186
|
+
- - ">"
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
segments:
|
189
|
+
- 1
|
190
|
+
- 3
|
191
|
+
- 1
|
192
|
+
version: 1.3.1
|
193
|
+
requirements: []
|
194
|
+
|
195
|
+
rubyforge_project:
|
196
|
+
rubygems_version: 1.3.7
|
197
|
+
signing_key:
|
198
|
+
specification_version: 3
|
199
|
+
summary: Generators for DustCMS
|
200
|
+
test_files:
|
201
|
+
- test/helper.rb
|
202
|
+
- test/test_dust-generators.rb
|