zoo-generators 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +198 -0
- data/Gemfile +2 -0
- data/LICENSE +20 -0
- data/README.rdoc +96 -0
- data/Rakefile +10 -0
- data/features/step_definitions/common_steps.rb +62 -0
- data/features/step_definitions/rails_setup_steps.rb +6 -0
- data/features/support/env.rb +6 -0
- data/features/support/matchers.rb +7 -0
- data/features/zoo_authentication.feature +83 -0
- data/features/zoo_config.feature +17 -0
- data/features/zoo_layout.feature +13 -0
- data/features/zoo_scaffold.feature +84 -0
- data/lib/generators/zoo.rb +28 -0
- data/lib/generators/zoo/authentication/USAGE +46 -0
- data/lib/generators/zoo/authentication/authentication_generator.rb +151 -0
- data/lib/generators/zoo/authentication/templates/controller_authentication.rb +48 -0
- data/lib/generators/zoo/authentication/templates/factory.rb +6 -0
- data/lib/generators/zoo/authentication/templates/fixtures.yml +12 -0
- data/lib/generators/zoo/authentication/templates/migration.rb +15 -0
- data/lib/generators/zoo/authentication/templates/sessions_controller.rb +20 -0
- data/lib/generators/zoo/authentication/templates/sessions_helper.rb +2 -0
- data/lib/generators/zoo/authentication/templates/tests/rspec/sessions_controller.rb +26 -0
- data/lib/generators/zoo/authentication/templates/tests/rspec/user.rb +81 -0
- data/lib/generators/zoo/authentication/templates/tests/rspec/users_controller.rb +54 -0
- data/lib/generators/zoo/authentication/templates/tests/shoulda/sessions_controller.rb +26 -0
- data/lib/generators/zoo/authentication/templates/tests/shoulda/user.rb +83 -0
- data/lib/generators/zoo/authentication/templates/tests/shoulda/users_controller.rb +59 -0
- data/lib/generators/zoo/authentication/templates/tests/testunit/sessions_controller.rb +22 -0
- data/lib/generators/zoo/authentication/templates/tests/testunit/user.rb +87 -0
- data/lib/generators/zoo/authentication/templates/tests/testunit/users_controller.rb +51 -0
- data/lib/generators/zoo/authentication/templates/user.rb +35 -0
- data/lib/generators/zoo/authentication/templates/users_controller.rb +30 -0
- data/lib/generators/zoo/authentication/templates/users_helper.rb +2 -0
- data/lib/generators/zoo/authentication/templates/views/haml/_form.html.haml +16 -0
- data/lib/generators/zoo/authentication/templates/views/haml/edit.html.haml +3 -0
- data/lib/generators/zoo/authentication/templates/views/haml/login.html.haml +13 -0
- data/lib/generators/zoo/authentication/templates/views/haml/signup.html.haml +5 -0
- data/lib/generators/zoo/config/USAGE +23 -0
- data/lib/generators/zoo/config/config_generator.rb +24 -0
- data/lib/generators/zoo/config/templates/config.yml +8 -0
- data/lib/generators/zoo/config/templates/load_config.rb +2 -0
- data/lib/generators/zoo/layout/USAGE +25 -0
- data/lib/generators/zoo/layout/layout_generator.rb +26 -0
- data/lib/generators/zoo/layout/templates/error_messages_helper.rb +23 -0
- data/lib/generators/zoo/layout/templates/layout.html.erb +19 -0
- data/lib/generators/zoo/layout/templates/layout.html.haml +21 -0
- data/lib/generators/zoo/layout/templates/layout_helper.rb +22 -0
- data/lib/generators/zoo/layout/templates/stylesheet.css +83 -0
- data/lib/generators/zoo/layout/templates/stylesheet.sass +73 -0
- data/lib/generators/zoo/scaffold/USAGE +51 -0
- data/lib/generators/zoo/scaffold/scaffold_generator.rb +316 -0
- data/lib/generators/zoo/scaffold/templates/actions/create.rb +8 -0
- data/lib/generators/zoo/scaffold/templates/actions/destroy.rb +5 -0
- data/lib/generators/zoo/scaffold/templates/actions/edit.rb +3 -0
- data/lib/generators/zoo/scaffold/templates/actions/index.rb +3 -0
- data/lib/generators/zoo/scaffold/templates/actions/new.rb +3 -0
- data/lib/generators/zoo/scaffold/templates/actions/show.rb +3 -0
- data/lib/generators/zoo/scaffold/templates/actions/update.rb +8 -0
- data/lib/generators/zoo/scaffold/templates/controller.rb +3 -0
- data/lib/generators/zoo/scaffold/templates/factory.rb +5 -0
- data/lib/generators/zoo/scaffold/templates/fixtures.yml +9 -0
- data/lib/generators/zoo/scaffold/templates/helper.rb +2 -0
- data/lib/generators/zoo/scaffold/templates/migration.rb +16 -0
- data/lib/generators/zoo/scaffold/templates/model.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/actions/create.rb +11 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/actions/index.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/actions/new.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/actions/show.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/actions/update.rb +11 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/controller.rb +8 -0
- data/lib/generators/zoo/scaffold/templates/tests/rspec/model.rb +7 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/controller.rb +5 -0
- data/lib/generators/zoo/scaffold/templates/tests/shoulda/model.rb +7 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/actions/create.rb +11 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/actions/index.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/actions/new.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/actions/show.rb +4 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/actions/update.rb +11 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/controller.rb +5 -0
- data/lib/generators/zoo/scaffold/templates/tests/testunit/model.rb +7 -0
- data/lib/generators/zoo/scaffold/templates/views/haml/_form.html.haml +9 -0
- data/lib/generators/zoo/scaffold/templates/views/haml/edit.html.haml +14 -0
- data/lib/generators/zoo/scaffold/templates/views/haml/index.html.haml +25 -0
- data/lib/generators/zoo/scaffold/templates/views/haml/new.html.haml +7 -0
- data/lib/generators/zoo/scaffold/templates/views/haml/show.html.haml +20 -0
- metadata +243 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
def update
|
2
|
+
@<%= instance_name %> = <%= class_name %>.find(params[:id])
|
3
|
+
if @<%= instance_name %>.update_attributes(params[:<%= instance_name %>])
|
4
|
+
redirect_to <%= item_url %>, :notice => "Successfully updated <%= class_name.underscore.humanize.downcase %>."
|
5
|
+
else
|
6
|
+
render :edit
|
7
|
+
end
|
8
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Create<%= class_name.pluralize.delete('::') %> < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :<%= table_name || plural_name.split('/').last %> do |t|
|
4
|
+
<%- for attribute in model_attributes -%>
|
5
|
+
t.<%= attribute.type %> :<%= attribute.name %>
|
6
|
+
<%- end -%>
|
7
|
+
<%- unless options[:skip_timestamps] -%>
|
8
|
+
t.timestamps
|
9
|
+
<%- end -%>
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.down
|
14
|
+
drop_table :<%= table_name || plural_name.split('/').last %>
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
it "create action should render new template when model is invalid" do
|
2
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
3
|
+
post :create
|
4
|
+
response.should render_template(:new)
|
5
|
+
end
|
6
|
+
|
7
|
+
it "create action should redirect when model is valid" do
|
8
|
+
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
9
|
+
post :create
|
10
|
+
response.should redirect_to(<%= item_path_for_spec('url') %>)
|
11
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
it "destroy action should destroy model and redirect to index action" do
|
2
|
+
<%= instance_name %> = <%= class_name %>.first
|
3
|
+
delete :destroy, :id => <%= instance_name %>
|
4
|
+
response.should redirect_to(<%= items_url %>)
|
5
|
+
<%= class_name %>.exists?(<%= instance_name %>.id).should be_false
|
6
|
+
end
|
@@ -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
|
+
<%= instance_name %> = <%= class_name %>.first
|
4
|
+
delete :destroy, :id => <%= instance_name %>
|
5
|
+
assert_redirected_to <%= items_url %>
|
6
|
+
assert !<%= class_name %>.exists?(<%= instance_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,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", <%= item_path :instance_variable => true %>
|
9
|
+
|
|
10
|
+
<%- end -%>
|
11
|
+
<%- if action? :index -%>
|
12
|
+
= link_to "View All", <%= items_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 <%= instance_name %> in @<%= instances_name %>
|
9
|
+
%tr
|
10
|
+
<%- for attribute in model_attributes -%>
|
11
|
+
%td= <%= instance_name %>.<%= attribute.name %>
|
12
|
+
<%- end -%>
|
13
|
+
<%- if action? :show -%>
|
14
|
+
%td= link_to 'Show', <%= item_path %>
|
15
|
+
<%- end -%>
|
16
|
+
<%- if action? :edit -%>
|
17
|
+
%td= link_to 'Edit', <%= item_path :action => :edit %>
|
18
|
+
<%- end -%>
|
19
|
+
<%- if action? :destroy -%>
|
20
|
+
%td= link_to 'Destroy', <%= item_path %>, :confirm => 'Are you sure?', :method => :delete
|
21
|
+
<%- end -%>
|
22
|
+
|
23
|
+
<%- if actions? :new -%>
|
24
|
+
%p= link_to "New <%= singular_name.titleize %>", <%= item_path :action => :new %>
|
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
|
+
= @<%= instance_name %>.<%= attribute.name %>
|
7
|
+
<%- end -%>
|
8
|
+
|
9
|
+
%p
|
10
|
+
<%- if action? :edit -%>
|
11
|
+
= link_to "Edit", <%= item_path :action => :edit, :instance_variable => true %>
|
12
|
+
|
|
13
|
+
<%- end -%>
|
14
|
+
<%- if action? :destroy -%>
|
15
|
+
= link_to "Destroy", <%= item_path :instance_variable => true %>, :confirm => 'Are you sure?', :method => :delete
|
16
|
+
|
|
17
|
+
<%- end -%>
|
18
|
+
<%- if action? :index -%>
|
19
|
+
= link_to "View All", <%= items_path %>
|
20
|
+
<%- end -%>
|
metadata
ADDED
@@ -0,0 +1,243 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zoo-generators
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.1.0
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mikael Henriksson
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-05-07 00:00:00 +02:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rspec-rails
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
type: :development
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cucumber
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: "0"
|
36
|
+
type: :development
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rails
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: "0"
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: mocha
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
58
|
+
type: :development
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: bcrypt-ruby
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: "0"
|
69
|
+
type: :development
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: sqlite3-ruby
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: "0"
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: haml-rails
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: "0"
|
91
|
+
type: :development
|
92
|
+
version_requirements: *id007
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: formtastic
|
95
|
+
prerelease: false
|
96
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: "0"
|
102
|
+
type: :development
|
103
|
+
version_requirements: *id008
|
104
|
+
description: |-
|
105
|
+
A collection of useful Rails generator scripts for scaffolding, layout files, authentication, and more.
|
106
|
+
|
107
|
+
I shamelessly stole this whole project from Ryan Bates nifty generators and default everything to haml,
|
108
|
+
added factory_girl factories and formtastic. I also deleted the Rails 2 generators because I will never use that.
|
109
|
+
email: mikael@zoolutions.se
|
110
|
+
executables: []
|
111
|
+
|
112
|
+
extensions: []
|
113
|
+
|
114
|
+
extra_rdoc_files: []
|
115
|
+
|
116
|
+
files:
|
117
|
+
- lib/generators/zoo/authentication/authentication_generator.rb
|
118
|
+
- lib/generators/zoo/authentication/templates/controller_authentication.rb
|
119
|
+
- lib/generators/zoo/authentication/templates/factory.rb
|
120
|
+
- lib/generators/zoo/authentication/templates/fixtures.yml
|
121
|
+
- lib/generators/zoo/authentication/templates/migration.rb
|
122
|
+
- lib/generators/zoo/authentication/templates/sessions_controller.rb
|
123
|
+
- lib/generators/zoo/authentication/templates/sessions_helper.rb
|
124
|
+
- lib/generators/zoo/authentication/templates/tests/rspec/sessions_controller.rb
|
125
|
+
- lib/generators/zoo/authentication/templates/tests/rspec/user.rb
|
126
|
+
- lib/generators/zoo/authentication/templates/tests/rspec/users_controller.rb
|
127
|
+
- lib/generators/zoo/authentication/templates/tests/shoulda/sessions_controller.rb
|
128
|
+
- lib/generators/zoo/authentication/templates/tests/shoulda/user.rb
|
129
|
+
- lib/generators/zoo/authentication/templates/tests/shoulda/users_controller.rb
|
130
|
+
- lib/generators/zoo/authentication/templates/tests/testunit/sessions_controller.rb
|
131
|
+
- lib/generators/zoo/authentication/templates/tests/testunit/user.rb
|
132
|
+
- lib/generators/zoo/authentication/templates/tests/testunit/users_controller.rb
|
133
|
+
- lib/generators/zoo/authentication/templates/user.rb
|
134
|
+
- lib/generators/zoo/authentication/templates/users_controller.rb
|
135
|
+
- lib/generators/zoo/authentication/templates/users_helper.rb
|
136
|
+
- lib/generators/zoo/authentication/templates/views/haml/_form.html.haml
|
137
|
+
- lib/generators/zoo/authentication/templates/views/haml/edit.html.haml
|
138
|
+
- lib/generators/zoo/authentication/templates/views/haml/login.html.haml
|
139
|
+
- lib/generators/zoo/authentication/templates/views/haml/signup.html.haml
|
140
|
+
- lib/generators/zoo/authentication/USAGE
|
141
|
+
- lib/generators/zoo/config/config_generator.rb
|
142
|
+
- lib/generators/zoo/config/templates/config.yml
|
143
|
+
- lib/generators/zoo/config/templates/load_config.rb
|
144
|
+
- lib/generators/zoo/config/USAGE
|
145
|
+
- lib/generators/zoo/layout/layout_generator.rb
|
146
|
+
- lib/generators/zoo/layout/templates/error_messages_helper.rb
|
147
|
+
- lib/generators/zoo/layout/templates/layout.html.erb
|
148
|
+
- lib/generators/zoo/layout/templates/layout.html.haml
|
149
|
+
- lib/generators/zoo/layout/templates/layout_helper.rb
|
150
|
+
- lib/generators/zoo/layout/templates/stylesheet.css
|
151
|
+
- lib/generators/zoo/layout/templates/stylesheet.sass
|
152
|
+
- lib/generators/zoo/layout/USAGE
|
153
|
+
- lib/generators/zoo/scaffold/scaffold_generator.rb
|
154
|
+
- lib/generators/zoo/scaffold/templates/actions/create.rb
|
155
|
+
- lib/generators/zoo/scaffold/templates/actions/destroy.rb
|
156
|
+
- lib/generators/zoo/scaffold/templates/actions/edit.rb
|
157
|
+
- lib/generators/zoo/scaffold/templates/actions/index.rb
|
158
|
+
- lib/generators/zoo/scaffold/templates/actions/new.rb
|
159
|
+
- lib/generators/zoo/scaffold/templates/actions/show.rb
|
160
|
+
- lib/generators/zoo/scaffold/templates/actions/update.rb
|
161
|
+
- lib/generators/zoo/scaffold/templates/controller.rb
|
162
|
+
- lib/generators/zoo/scaffold/templates/factory.rb
|
163
|
+
- lib/generators/zoo/scaffold/templates/fixtures.yml
|
164
|
+
- lib/generators/zoo/scaffold/templates/helper.rb
|
165
|
+
- lib/generators/zoo/scaffold/templates/migration.rb
|
166
|
+
- lib/generators/zoo/scaffold/templates/model.rb
|
167
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/actions/create.rb
|
168
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/actions/destroy.rb
|
169
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/actions/edit.rb
|
170
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/actions/index.rb
|
171
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/actions/new.rb
|
172
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/actions/show.rb
|
173
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/actions/update.rb
|
174
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/controller.rb
|
175
|
+
- lib/generators/zoo/scaffold/templates/tests/rspec/model.rb
|
176
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/actions/create.rb
|
177
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/actions/destroy.rb
|
178
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/actions/edit.rb
|
179
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/actions/index.rb
|
180
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/actions/new.rb
|
181
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/actions/show.rb
|
182
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/actions/update.rb
|
183
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/controller.rb
|
184
|
+
- lib/generators/zoo/scaffold/templates/tests/shoulda/model.rb
|
185
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/actions/create.rb
|
186
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/actions/destroy.rb
|
187
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/actions/edit.rb
|
188
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/actions/index.rb
|
189
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/actions/new.rb
|
190
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/actions/show.rb
|
191
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/actions/update.rb
|
192
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/controller.rb
|
193
|
+
- lib/generators/zoo/scaffold/templates/tests/testunit/model.rb
|
194
|
+
- lib/generators/zoo/scaffold/templates/views/haml/_form.html.haml
|
195
|
+
- lib/generators/zoo/scaffold/templates/views/haml/edit.html.haml
|
196
|
+
- lib/generators/zoo/scaffold/templates/views/haml/index.html.haml
|
197
|
+
- lib/generators/zoo/scaffold/templates/views/haml/new.html.haml
|
198
|
+
- lib/generators/zoo/scaffold/templates/views/haml/show.html.haml
|
199
|
+
- lib/generators/zoo/scaffold/USAGE
|
200
|
+
- lib/generators/zoo.rb
|
201
|
+
- features/step_definitions/common_steps.rb
|
202
|
+
- features/step_definitions/rails_setup_steps.rb
|
203
|
+
- features/support/env.rb
|
204
|
+
- features/support/matchers.rb
|
205
|
+
- features/zoo_authentication.feature
|
206
|
+
- features/zoo_config.feature
|
207
|
+
- features/zoo_layout.feature
|
208
|
+
- features/zoo_scaffold.feature
|
209
|
+
- CHANGELOG
|
210
|
+
- Gemfile
|
211
|
+
- LICENSE
|
212
|
+
- Rakefile
|
213
|
+
- README.rdoc
|
214
|
+
has_rdoc: true
|
215
|
+
homepage: http://github.com/mhenrixon/zoo-generators
|
216
|
+
licenses: []
|
217
|
+
|
218
|
+
post_install_message:
|
219
|
+
rdoc_options: []
|
220
|
+
|
221
|
+
require_paths:
|
222
|
+
- lib
|
223
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
224
|
+
none: false
|
225
|
+
requirements:
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: "0"
|
229
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
|
+
none: false
|
231
|
+
requirements:
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: 1.3.4
|
235
|
+
requirements: []
|
236
|
+
|
237
|
+
rubyforge_project: zoo-generators
|
238
|
+
rubygems_version: 1.6.2
|
239
|
+
signing_key:
|
240
|
+
specification_version: 3
|
241
|
+
summary: A collection of useful Rails generator scripts.
|
242
|
+
test_files: []
|
243
|
+
|