rails3-generators 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +4 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/generators/formtastic_erb/controller/controller_generator.rb +3 -3
- data/lib/generators/formtastic_erb/controller/templates/view.html.erb +1 -0
- data/lib/generators/formtastic_erb/scaffold/scaffold_generator.rb +7 -9
- data/lib/generators/formtastic_haml/controller/controller_generator.rb +2 -2
- data/lib/generators/formtastic_haml/controller/templates/view.haml.erb +1 -0
- data/lib/generators/formtastic_haml/scaffold/scaffold_generator.rb +8 -6
- data/lib/generators/formtastic_haml/scaffold/templates/_form.haml.erb +3 -2
- data/lib/generators/simple_form_erb/USAGE +20 -0
- data/lib/generators/simple_form_erb/controller/controller_generator.rb +24 -0
- data/lib/generators/{formtastic_haml/controller/templates/view.html.haml → simple_form_erb/controller/templates/view.html.erb} +0 -0
- data/lib/generators/simple_form_erb/scaffold/scaffold_generator.rb +32 -0
- data/lib/generators/simple_form_erb/scaffold/templates/_form.html.erb +11 -0
- data/lib/generators/simple_form_erb/scaffold/templates/_form_errors.html.erb +10 -0
- data/lib/generators/simple_form_erb/scaffold/templates/edit.html.erb +6 -0
- data/lib/generators/simple_form_erb/scaffold/templates/index.html.erb +27 -0
- data/lib/generators/simple_form_erb/scaffold/templates/layout.html.erb +16 -0
- data/lib/generators/simple_form_erb/scaffold/templates/new.html.erb +5 -0
- data/lib/generators/simple_form_erb/scaffold/templates/show.html.erb +10 -0
- data/lib/generators/simple_form_erb.rb +9 -0
- data/lib/generators/simple_form_haml/USAGE +20 -0
- data/lib/generators/simple_form_haml/controller/controller_generator.rb +24 -0
- data/lib/generators/simple_form_haml/controller/templates/view.html.haml +0 -0
- data/lib/generators/simple_form_haml/scaffold/scaffold_generator.rb +31 -0
- data/lib/generators/simple_form_haml/scaffold/templates/_form.haml.erb +9 -0
- data/lib/generators/simple_form_haml/scaffold/templates/_form_errors.haml.erb +6 -0
- data/lib/generators/simple_form_haml/scaffold/templates/edit.haml.erb +7 -0
- data/lib/generators/simple_form_haml/scaffold/templates/index.haml.erb +23 -0
- data/lib/generators/simple_form_haml/scaffold/templates/layout.haml.erb +9 -0
- data/lib/generators/simple_form_haml/scaffold/templates/new.haml.erb +5 -0
- data/lib/generators/simple_form_haml/scaffold/templates/show.haml.erb +10 -0
- data/lib/generators/simple_form_haml.rb +9 -0
- data/rails3-generators.gemspec +31 -7
- metadata +32 -10
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= rails3-generators
|
2
2
|
|
3
|
-
Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, and
|
3
|
+
Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm
|
4
4
|
|
5
5
|
== Note on Patches/Pull Requests
|
6
6
|
|
@@ -21,3 +21,6 @@ MongoMapper: Jai-Gouk Kim
|
|
21
21
|
Machinist: Darcy Laycock
|
22
22
|
|
23
23
|
Shoulda: Peter Haza
|
24
|
+
|
25
|
+
SimpleForm: Peter Gumeson
|
26
|
+
|
data/Rakefile
CHANGED
@@ -6,10 +6,10 @@ begin
|
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "rails3-generators"
|
8
8
|
gem.summary = %Q{Rails 3 compatible generators}
|
9
|
-
gem.description = %Q{Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, and
|
9
|
+
gem.description = %Q{Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm}
|
10
10
|
gem.email = "andre@arko.net"
|
11
11
|
gem.homepage = "http://github.com/indirect/rails3-generators"
|
12
|
-
gem.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Peter Haza"]
|
12
|
+
gem.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Peter Haza", "Peter Gumeson"]
|
13
13
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
14
14
|
end
|
15
15
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'generators/
|
1
|
+
require 'generators/formtastic_erb'
|
2
2
|
require 'rails/generators/named_base'
|
3
3
|
|
4
4
|
module FormtasticErb
|
@@ -14,9 +14,9 @@ module FormtasticErb
|
|
14
14
|
|
15
15
|
actions.each do |action|
|
16
16
|
@action = action
|
17
|
-
@path = File.join(base_path, "#{action}.html.
|
17
|
+
@path = File.join(base_path, "#{action}.html.erb")
|
18
18
|
|
19
|
-
template 'view.html.
|
19
|
+
template 'view.html.erb', @path
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
View for <%= singular_name %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'generators/formtastic_erb'
|
2
|
-
require 'generators/erb/scaffold/scaffold_generator'
|
2
|
+
require 'rails/generators/erb/scaffold/scaffold_generator'
|
3
3
|
|
4
4
|
module FormtasticErb
|
5
5
|
module Generators
|
@@ -8,20 +8,18 @@ module FormtasticErb
|
|
8
8
|
|
9
9
|
def copy_layout_file
|
10
10
|
return unless options[:layout]
|
11
|
-
template "layout.
|
11
|
+
template "layout.haml.erb",
|
12
12
|
File.join("app/views/layouts", controller_class_path, "#{controller_file_name}.html.erb")
|
13
13
|
end
|
14
|
+
|
15
|
+
def copy_view_files
|
16
|
+
views = available_views
|
17
|
+
views.delete("index") if options[:singleton]
|
14
18
|
|
15
|
-
|
16
|
-
|
17
|
-
def copy_view(view)
|
18
|
-
if view =~ /^_.*/
|
19
|
+
views.each do |view|
|
19
20
|
template "#{view}.html.erb", File.join("app/views", controller_file_path, "#{view}.html.erb")
|
20
|
-
else
|
21
|
-
super view
|
22
21
|
end
|
23
22
|
end
|
24
|
-
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'generators/
|
1
|
+
require 'generators/formtastic_haml'
|
2
2
|
require 'rails/generators/named_base'
|
3
3
|
|
4
4
|
module FormtasticHaml
|
@@ -16,7 +16,7 @@ module FormtasticHaml
|
|
16
16
|
@action = action
|
17
17
|
@path = File.join(base_path, "#{action}.html.haml")
|
18
18
|
|
19
|
-
template 'view.
|
19
|
+
template 'view.haml.erb', @path
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
View for <%= singular_name %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'generators/formtastic_haml'
|
2
|
-
require 'generators/erb/scaffold/scaffold_generator'
|
2
|
+
require 'rails/generators/erb/scaffold/scaffold_generator'
|
3
3
|
|
4
4
|
module FormtasticHaml
|
5
5
|
module Generators
|
@@ -11,13 +11,15 @@ module FormtasticHaml
|
|
11
11
|
template "layout.haml.erb",
|
12
12
|
File.join("app/views/layouts", controller_class_path, "#{controller_file_name}.html.haml")
|
13
13
|
end
|
14
|
+
|
15
|
+
def copy_view_files
|
16
|
+
views = available_views
|
17
|
+
views.delete("index") if options[:singleton]
|
14
18
|
|
15
|
-
|
16
|
-
|
17
|
-
def copy_view(view)
|
19
|
+
views.each do |view|
|
18
20
|
template "#{view}.haml.erb", File.join("app/views", controller_file_path, "#{view}.html.haml")
|
19
21
|
end
|
20
|
-
|
22
|
+
end
|
21
23
|
end
|
22
24
|
end
|
23
|
-
end
|
25
|
+
end
|
@@ -1,9 +1,10 @@
|
|
1
1
|
- semantic_form_for @<%= singular_name %> do |form|
|
2
2
|
<%- if attributes.empty? -%>
|
3
|
-
|
3
|
+
= form.inputs
|
4
4
|
<%- else -%>
|
5
|
+
- form.inputs do
|
5
6
|
<%- for attribute in attributes -%>
|
6
|
-
|
7
|
+
= form.input :<%= attribute.name.gsub(/_id$/, '') %>, :label => '<%= attribute.name.titleize %>'
|
7
8
|
<%- end -%>
|
8
9
|
<%- end -%>
|
9
10
|
= form.buttons
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Description:
|
2
|
+
This generator creates erb views for use with the simple_form gem
|
3
|
+
by Plataforma Tec. It also uses the show_for gem for displaying
|
4
|
+
model attributes in the show.html.erb that it generates.
|
5
|
+
|
6
|
+
Before you can use this generator you need to install both gems:
|
7
|
+
|
8
|
+
gem install simple_form
|
9
|
+
gem install show_for
|
10
|
+
|
11
|
+
Example:
|
12
|
+
rails generate simple_form_erb:scaffold Thing
|
13
|
+
|
14
|
+
This will create:
|
15
|
+
app/views/things/index.html.erb
|
16
|
+
app/views/things/edit.html.erb
|
17
|
+
app/views/things/show.html.erb
|
18
|
+
app/views/things/new.html.erb
|
19
|
+
app/views/things/_form.html.erb
|
20
|
+
app/views/shared/_form_errors.html.erb
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'generators/simple_form'
|
2
|
+
require 'rails/generators/named_base'
|
3
|
+
|
4
|
+
module SimpleFormErb
|
5
|
+
module Generators
|
6
|
+
class ControllerGenerator < Rails::Generators::NamedBase
|
7
|
+
extend TemplatePath
|
8
|
+
|
9
|
+
argument :actions, :type => :array, :default => [], :banner => "action action"
|
10
|
+
|
11
|
+
def create_view_files
|
12
|
+
base_path = File.join("app/views", class_path, file_name)
|
13
|
+
empty_directory base_path
|
14
|
+
|
15
|
+
actions.each do |action|
|
16
|
+
@action = action
|
17
|
+
@path = File.join(base_path, "#{action}.html.erb")
|
18
|
+
|
19
|
+
template 'view.html.erb', @path
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
File without changes
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'generators/simple_form_erb'
|
2
|
+
require 'rails/generators/erb/scaffold/scaffold_generator'
|
3
|
+
|
4
|
+
module SimpleFormErb
|
5
|
+
module Generators
|
6
|
+
class ScaffoldGenerator < Erb::Generators::ScaffoldGenerator
|
7
|
+
extend TemplatePath
|
8
|
+
|
9
|
+
def copy_layout_file
|
10
|
+
return unless options[:layout]
|
11
|
+
template "layout.html.erb",
|
12
|
+
File.join("app/views/layouts", controller_class_path, "#{controller_file_name}.html.erb")
|
13
|
+
end
|
14
|
+
|
15
|
+
def copy_shared_files
|
16
|
+
template "_form_errors.html.erb",
|
17
|
+
File.join("app/views/shared", "_form_errors.html.erb")
|
18
|
+
end
|
19
|
+
|
20
|
+
protected
|
21
|
+
|
22
|
+
def copy_view(view)
|
23
|
+
if view =~ /^_.*/
|
24
|
+
template "#{view}.html.erb", File.join("app/views", controller_file_path, "#{view}.html.erb")
|
25
|
+
else
|
26
|
+
super view
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<%% simple_form_for @<%= singular_name %> do |form| %>
|
2
|
+
<%%= render :partial => 'shared/form_errors', :locals => { :resource => @<%= singular_name %> } %>
|
3
|
+
|
4
|
+
<%- for attribute in attributes -%>
|
5
|
+
<%%= form.input :<%= attribute.name %>, :label => '<%= attribute.name.titleize %>' %>
|
6
|
+
<%- end -%>
|
7
|
+
|
8
|
+
<div class="actions">
|
9
|
+
<%%= form.button :submit %>
|
10
|
+
</div>
|
11
|
+
<%% end %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%% if resource.errors.any? -%>
|
2
|
+
<div id="errorExplanation">
|
3
|
+
<h2><%%= "#{pluralize(resource.errors.count, "error")} prohibited this #{resource.class.name.titleize} from being saved:" %></h2>
|
4
|
+
<ul>
|
5
|
+
<%%- resource.errors.full_messages.each do |msg| -%>
|
6
|
+
<li><%%= msg %></li>
|
7
|
+
<%%- end -%>
|
8
|
+
</ul>
|
9
|
+
</div>
|
10
|
+
<%% end -%>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<h1>Listing <%= plural_name %></h1>
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<tr>
|
5
|
+
<% for attribute in attributes -%>
|
6
|
+
<th><%= attribute.human_name %></th>
|
7
|
+
<% end -%>
|
8
|
+
<th></th>
|
9
|
+
<th></th>
|
10
|
+
<th></th>
|
11
|
+
</tr>
|
12
|
+
|
13
|
+
<%% @<%= plural_name %>.each do |<%= singular_name %>| %>
|
14
|
+
<tr>
|
15
|
+
<% for attribute in attributes -%>
|
16
|
+
<td><%%= <%= singular_name %>.<%= attribute.name %> %></td>
|
17
|
+
<% end -%>
|
18
|
+
<td><%%= link_to 'Show', <%= singular_name %> %></td>
|
19
|
+
<td><%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %></td>
|
20
|
+
<td><%%= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %></td>
|
21
|
+
</tr>
|
22
|
+
<%% end %>
|
23
|
+
</table>
|
24
|
+
|
25
|
+
<br />
|
26
|
+
|
27
|
+
<%%= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title><%= controller_class_name %>: <%%= controller.action_name %></title>
|
5
|
+
<%%= stylesheet_link_tag 'scaffold' %>
|
6
|
+
<%%= javascript_include_tag :defaults %>
|
7
|
+
<%%= csrf_meta_tag %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<p class="notice"><%%= notice %></p>
|
12
|
+
|
13
|
+
<%%= yield %>
|
14
|
+
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<h1><%= singular_name %></h1>
|
2
|
+
|
3
|
+
<%% show_for @<%= singular_name %> do |a| %>
|
4
|
+
<%- for attribute in attributes -%>
|
5
|
+
<%%= a.attribute :<%= attribute.name %> %>
|
6
|
+
<%- end -%>
|
7
|
+
<%% end -%>
|
8
|
+
|
9
|
+
<%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
|
10
|
+
<%%= link_to 'Back', <%= plural_name %>_path %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Description:
|
2
|
+
This generator creates haml views for use with the simple_form gem
|
3
|
+
by Plataforma Tec. It also uses the show_for gem for displaying
|
4
|
+
model attributes in the show.html.haml that it generates.
|
5
|
+
|
6
|
+
Before you can use this generator you need to install both gems:
|
7
|
+
|
8
|
+
gem install simple_form
|
9
|
+
gem install show_for
|
10
|
+
|
11
|
+
Example:
|
12
|
+
rails generate simple_form_haml:scaffold Thing
|
13
|
+
|
14
|
+
This will create:
|
15
|
+
app/views/things/index.html.haml
|
16
|
+
app/views/things/edit.html.haml
|
17
|
+
app/views/things/show.html.haml
|
18
|
+
app/views/things/new.html.haml
|
19
|
+
app/views/things/_form.html.haml
|
20
|
+
app/views/shared/_form_errors.html.haml
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'generators/simple_form'
|
2
|
+
require 'rails/generators/named_base'
|
3
|
+
|
4
|
+
module SimpleFormHaml
|
5
|
+
module Generators
|
6
|
+
class ControllerGenerator < Rails::Generators::NamedBase
|
7
|
+
extend TemplatePath
|
8
|
+
|
9
|
+
argument :actions, :type => :array, :default => [], :banner => "action action"
|
10
|
+
|
11
|
+
def create_view_files
|
12
|
+
base_path = File.join("app/views", class_path, file_name)
|
13
|
+
empty_directory base_path
|
14
|
+
|
15
|
+
actions.each do |action|
|
16
|
+
@action = action
|
17
|
+
@path = File.join(base_path, "#{action}.html.haml")
|
18
|
+
|
19
|
+
template 'view.html.haml', @path
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
File without changes
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'generators/simple_form_haml'
|
2
|
+
require 'rails/generators/erb/scaffold/scaffold_generator'
|
3
|
+
|
4
|
+
module SimpleFormHaml
|
5
|
+
module Generators
|
6
|
+
class ScaffoldGenerator < Erb::Generators::ScaffoldGenerator
|
7
|
+
extend TemplatePath
|
8
|
+
|
9
|
+
def copy_layout_file
|
10
|
+
return unless options[:layout]
|
11
|
+
template "layout.haml.erb",
|
12
|
+
File.join("app/views/layouts", controller_class_path, "#{controller_file_name}.html.haml")
|
13
|
+
end
|
14
|
+
|
15
|
+
def copy_shared_files
|
16
|
+
template "_form_errors.haml.erb",
|
17
|
+
File.join("app/views/shared", "_form_errors.html.haml")
|
18
|
+
end
|
19
|
+
|
20
|
+
def copy_view_files
|
21
|
+
views = available_views
|
22
|
+
views.delete("index") if options[:singleton]
|
23
|
+
|
24
|
+
views.each do |view|
|
25
|
+
template "#{view}.haml.erb", File.join("app/views", controller_file_path, "#{view}.html.haml")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
- simple_form_for @<%= singular_name %> do |form|
|
2
|
+
= render :partial => 'shared/form_errors', :locals => { :resource => @<%= singular_name %> }
|
3
|
+
|
4
|
+
<%- for attribute in attributes -%>
|
5
|
+
= form.input :<%= attribute.name %>, :label => '<%= attribute.name.titleize %>'
|
6
|
+
<%- end -%>
|
7
|
+
|
8
|
+
.actions
|
9
|
+
= form.button :submit
|
@@ -0,0 +1,23 @@
|
|
1
|
+
%h1 Listing <%= plural_name %>
|
2
|
+
|
3
|
+
%table
|
4
|
+
%tr
|
5
|
+
<% for attribute in attributes -%>
|
6
|
+
%th <%= attribute.human_name %>
|
7
|
+
<% end -%>
|
8
|
+
%th
|
9
|
+
%th
|
10
|
+
%th
|
11
|
+
|
12
|
+
- @<%= plural_name %>.each do |<%= singular_name %>|
|
13
|
+
%tr
|
14
|
+
<% for attribute in attributes -%>
|
15
|
+
%td= <%= singular_name %>.<%= attribute.name %>
|
16
|
+
<% end -%>
|
17
|
+
%td= link_to 'Show', <%= singular_name %>
|
18
|
+
%td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>)
|
19
|
+
%td= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
|
20
|
+
|
21
|
+
%br
|
22
|
+
|
23
|
+
= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path
|
@@ -0,0 +1,10 @@
|
|
1
|
+
%h1 <%= singular_name %>
|
2
|
+
|
3
|
+
- show_for @<%= singular_name %> do |a|
|
4
|
+
<%- for attribute in attributes -%>
|
5
|
+
= a.attribute :<%= attribute.name %>
|
6
|
+
<%- end -%>
|
7
|
+
|
8
|
+
= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>)
|
9
|
+
\|
|
10
|
+
= link_to 'Back', <%= plural_name %>_path
|
data/rails3-generators.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rails3-generators}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.8.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Peter Haza"]
|
12
|
-
s.date = %q{2010-05-
|
13
|
-
s.description = %q{Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, and
|
11
|
+
s.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Peter Haza", "Peter Gumeson"]
|
12
|
+
s.date = %q{2010-05-14}
|
13
|
+
s.description = %q{Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm}
|
14
14
|
s.email = %q{andre@arko.net}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"README.rdoc"
|
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
|
|
48
48
|
"lib/generators/formtastic_haml.rb",
|
49
49
|
"lib/generators/formtastic_haml/USAGE",
|
50
50
|
"lib/generators/formtastic_haml/controller/controller_generator.rb",
|
51
|
-
"lib/generators/formtastic_haml/controller/templates/view.
|
51
|
+
"lib/generators/formtastic_haml/controller/templates/view.haml.erb",
|
52
52
|
"lib/generators/formtastic_haml/scaffold/scaffold_generator.rb",
|
53
53
|
"lib/generators/formtastic_haml/scaffold/templates/_form.haml.erb",
|
54
54
|
"lib/generators/formtastic_haml/scaffold/templates/edit.haml.erb",
|
@@ -79,20 +79,44 @@ Gem::Specification.new do |s|
|
|
79
79
|
"lib/generators/shoulda/controller/templates/controller.rb",
|
80
80
|
"lib/generators/shoulda/model/model_generator.rb",
|
81
81
|
"lib/generators/shoulda/model/templates/model.rb",
|
82
|
+
"lib/generators/simple_form_erb.rb",
|
83
|
+
"lib/generators/simple_form_erb/USAGE",
|
84
|
+
"lib/generators/simple_form_erb/controller/controller_generator.rb",
|
85
|
+
"lib/generators/simple_form_erb/controller/templates/view.html.erb",
|
86
|
+
"lib/generators/simple_form_erb/scaffold/scaffold_generator.rb",
|
87
|
+
"lib/generators/simple_form_erb/scaffold/templates/_form.html.erb",
|
88
|
+
"lib/generators/simple_form_erb/scaffold/templates/_form_errors.html.erb",
|
89
|
+
"lib/generators/simple_form_erb/scaffold/templates/edit.html.erb",
|
90
|
+
"lib/generators/simple_form_erb/scaffold/templates/index.html.erb",
|
91
|
+
"lib/generators/simple_form_erb/scaffold/templates/layout.html.erb",
|
92
|
+
"lib/generators/simple_form_erb/scaffold/templates/new.html.erb",
|
93
|
+
"lib/generators/simple_form_erb/scaffold/templates/show.html.erb",
|
94
|
+
"lib/generators/simple_form_haml.rb",
|
95
|
+
"lib/generators/simple_form_haml/USAGE",
|
96
|
+
"lib/generators/simple_form_haml/controller/controller_generator.rb",
|
97
|
+
"lib/generators/simple_form_haml/controller/templates/view.html.haml",
|
98
|
+
"lib/generators/simple_form_haml/scaffold/scaffold_generator.rb",
|
99
|
+
"lib/generators/simple_form_haml/scaffold/templates/_form.haml.erb",
|
100
|
+
"lib/generators/simple_form_haml/scaffold/templates/_form_errors.haml.erb",
|
101
|
+
"lib/generators/simple_form_haml/scaffold/templates/edit.haml.erb",
|
102
|
+
"lib/generators/simple_form_haml/scaffold/templates/index.haml.erb",
|
103
|
+
"lib/generators/simple_form_haml/scaffold/templates/layout.haml.erb",
|
104
|
+
"lib/generators/simple_form_haml/scaffold/templates/new.haml.erb",
|
105
|
+
"lib/generators/simple_form_haml/scaffold/templates/show.haml.erb",
|
82
106
|
"lib/rails3-generators.rb",
|
83
107
|
"rails3-generators.gemspec"
|
84
108
|
]
|
85
109
|
s.homepage = %q{http://github.com/indirect/rails3-generators}
|
86
110
|
s.rdoc_options = ["--charset=UTF-8"]
|
87
111
|
s.require_paths = ["lib"]
|
88
|
-
s.rubygems_version = %q{1.3.
|
112
|
+
s.rubygems_version = %q{1.3.6}
|
89
113
|
s.summary = %q{Rails 3 compatible generators}
|
90
114
|
|
91
115
|
if s.respond_to? :specification_version then
|
92
116
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
93
117
|
s.specification_version = 3
|
94
118
|
|
95
|
-
if Gem::Version.new(Gem::
|
119
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
96
120
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
97
121
|
else
|
98
122
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 8
|
8
|
+
- 0
|
9
|
+
version: 0.8.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jose Valim
|
@@ -17,18 +17,18 @@ authors:
|
|
17
17
|
- Jai-Gouk Kim
|
18
18
|
- Darcy Laycock
|
19
19
|
- Peter Haza
|
20
|
+
- Peter Gumeson
|
20
21
|
autorequire:
|
21
22
|
bindir: bin
|
22
23
|
cert_chain: []
|
23
24
|
|
24
|
-
date: 2010-05-
|
25
|
+
date: 2010-05-14 00:00:00 -04:00
|
25
26
|
default_executable:
|
26
27
|
dependencies:
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: rspec
|
29
30
|
prerelease: false
|
30
31
|
requirement: &id001 !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
32
|
requirements:
|
33
33
|
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 1.2.9
|
40
40
|
type: :development
|
41
41
|
version_requirements: *id001
|
42
|
-
description: Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, and
|
42
|
+
description: Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm
|
43
43
|
email: andre@arko.net
|
44
44
|
executables: []
|
45
45
|
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- lib/generators/formtastic_haml.rb
|
81
81
|
- lib/generators/formtastic_haml/USAGE
|
82
82
|
- lib/generators/formtastic_haml/controller/controller_generator.rb
|
83
|
-
- lib/generators/formtastic_haml/controller/templates/view.
|
83
|
+
- lib/generators/formtastic_haml/controller/templates/view.haml.erb
|
84
84
|
- lib/generators/formtastic_haml/scaffold/scaffold_generator.rb
|
85
85
|
- lib/generators/formtastic_haml/scaffold/templates/_form.haml.erb
|
86
86
|
- lib/generators/formtastic_haml/scaffold/templates/edit.haml.erb
|
@@ -111,6 +111,30 @@ files:
|
|
111
111
|
- lib/generators/shoulda/controller/templates/controller.rb
|
112
112
|
- lib/generators/shoulda/model/model_generator.rb
|
113
113
|
- lib/generators/shoulda/model/templates/model.rb
|
114
|
+
- lib/generators/simple_form_erb.rb
|
115
|
+
- lib/generators/simple_form_erb/USAGE
|
116
|
+
- lib/generators/simple_form_erb/controller/controller_generator.rb
|
117
|
+
- lib/generators/simple_form_erb/controller/templates/view.html.erb
|
118
|
+
- lib/generators/simple_form_erb/scaffold/scaffold_generator.rb
|
119
|
+
- lib/generators/simple_form_erb/scaffold/templates/_form.html.erb
|
120
|
+
- lib/generators/simple_form_erb/scaffold/templates/_form_errors.html.erb
|
121
|
+
- lib/generators/simple_form_erb/scaffold/templates/edit.html.erb
|
122
|
+
- lib/generators/simple_form_erb/scaffold/templates/index.html.erb
|
123
|
+
- lib/generators/simple_form_erb/scaffold/templates/layout.html.erb
|
124
|
+
- lib/generators/simple_form_erb/scaffold/templates/new.html.erb
|
125
|
+
- lib/generators/simple_form_erb/scaffold/templates/show.html.erb
|
126
|
+
- lib/generators/simple_form_haml.rb
|
127
|
+
- lib/generators/simple_form_haml/USAGE
|
128
|
+
- lib/generators/simple_form_haml/controller/controller_generator.rb
|
129
|
+
- lib/generators/simple_form_haml/controller/templates/view.html.haml
|
130
|
+
- lib/generators/simple_form_haml/scaffold/scaffold_generator.rb
|
131
|
+
- lib/generators/simple_form_haml/scaffold/templates/_form.haml.erb
|
132
|
+
- lib/generators/simple_form_haml/scaffold/templates/_form_errors.haml.erb
|
133
|
+
- lib/generators/simple_form_haml/scaffold/templates/edit.haml.erb
|
134
|
+
- lib/generators/simple_form_haml/scaffold/templates/index.haml.erb
|
135
|
+
- lib/generators/simple_form_haml/scaffold/templates/layout.haml.erb
|
136
|
+
- lib/generators/simple_form_haml/scaffold/templates/new.haml.erb
|
137
|
+
- lib/generators/simple_form_haml/scaffold/templates/show.haml.erb
|
114
138
|
- lib/rails3-generators.rb
|
115
139
|
- rails3-generators.gemspec
|
116
140
|
has_rdoc: true
|
@@ -123,7 +147,6 @@ rdoc_options:
|
|
123
147
|
require_paths:
|
124
148
|
- lib
|
125
149
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
150
|
requirements:
|
128
151
|
- - ">="
|
129
152
|
- !ruby/object:Gem::Version
|
@@ -131,7 +154,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
154
|
- 0
|
132
155
|
version: "0"
|
133
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
157
|
requirements:
|
136
158
|
- - ">="
|
137
159
|
- !ruby/object:Gem::Version
|
@@ -141,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
163
|
requirements: []
|
142
164
|
|
143
165
|
rubyforge_project:
|
144
|
-
rubygems_version: 1.3.
|
166
|
+
rubygems_version: 1.3.6
|
145
167
|
signing_key:
|
146
168
|
specification_version: 3
|
147
169
|
summary: Rails 3 compatible generators
|