From 70dbde66577a0f88178a7a8a2686161bc1a6978c Mon Sep 17 00:00:00 2001 From: Louis T Date: Sat, 19 Jun 2010 23:43:47 -0400 Subject: [PATCH] update Readme and add note to gem install to iform people to check the wiki, http://wiki.github.com/indirect/rails3-generators/, for information about recent changes to the project. --- README.rdoc | 20 +++++++++- Rakefile | 16 +++++++- rails3-generators.gemspec | 80 ++++++++++++++++++++++++++++++++++++--- 3 files changed, 108 insertions(+), 8 deletions(-) diff --git a/README.rdoc b/README.rdoc index 8099242..e0beb98 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,6 +1,22 @@ = rails3-generators -Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm +Generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm + +== install + + gem install rails3-generators + +and add the following to your project's Gemfile + + gem 'rails3-generators' + +== notes + +To avoid overriding the rails built-in Erb template generators this project uses the namespace Erubis for *.erb templates + + config.generators do |g| + g.template_engine :erubis + end == Note on Patches/Pull Requests @@ -29,3 +45,5 @@ Machinist: Darcy Laycock Shoulda: Peter Haza SimpleForm: Peter Gumeson + +and more[http://github.com/indirect/rails3-generators/contributors] \ No newline at end of file diff --git a/Rakefile b/Rakefile index 57cb85d..cfcbd8b 100644 --- a/Rakefile +++ b/Rakefile @@ -3,14 +3,28 @@ require 'rake' begin require 'jeweler' + Jeweler::Tasks.new do |gem| + version = File.exist?('VERSION') ? File.read('VERSION') : "" + gem.name = "rails3-generators" gem.summary = %Q{Rails 3 compatible generators} gem.description = %Q{Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm} gem.email = "andre@arko.net" gem.homepage = "http://github.com/indirect/rails3-generators" gem.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Peter Haza", "Peter Gumeson"] - gem.add_development_dependency "rspec", ">= 1.2.9" + # gem.add_development_dependency "rspec", ">= 1.2.9" + gem.post_install_message = +%Q{ +rails3-generators-#{version} +Be sure to check out the wiki, http://wiki.github.com/indirect/rails3-generators/, +for information about recent changes to this project. + +note: if you use erb templates add the follow to your generators block to take full advantage of this gem. +g.template_engine :erubis + +} + end Jeweler::GemcutterTasks.new rescue LoadError diff --git a/rails3-generators.gemspec b/rails3-generators.gemspec index 5b8e09b..c01eb37 100644 --- a/rails3-generators.gemspec +++ b/rails3-generators.gemspec @@ -5,11 +5,11 @@ Gem::Specification.new do |s| s.name = %q{rails3-generators} - s.version = "0.8.2" + s.version = "0.9.0" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Peter Haza", "Peter Gumeson"] - s.date = %q{2010-06-16} + s.date = %q{2010-06-19} s.description = %q{Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm} s.email = %q{andre@arko.net} s.extra_rdoc_files = [ @@ -17,6 +17,7 @@ Gem::Specification.new do |s| ] s.files = [ ".gitignore", + "Gemfile", "README.rdoc", "Rakefile", "VERSION", @@ -31,13 +32,33 @@ Gem::Specification.new do |s| "lib/generators/datamapper/model/templates/model.rb", "lib/generators/datamapper/observer/observer_generator.rb", "lib/generators/datamapper/observer/templates/observer.rb", + "lib/generators/erubis.rb", + "lib/generators/erubis/controller/controller_generator.rb", + "lib/generators/erubis/controller/templates/view.html.erb", + "lib/generators/erubis/scaffold/scaffold_generator.rb", + "lib/generators/erubis/scaffold/templates/_form.html.erb", + "lib/generators/erubis/scaffold/templates/edit.html.erb", + "lib/generators/erubis/scaffold/templates/index.html.erb", + "lib/generators/erubis/scaffold/templates/new.html.erb", + "lib/generators/erubis/scaffold/templates/show.html.erb", "lib/generators/factory_girl.rb", "lib/generators/factory_girl/model/model_generator.rb", "lib/generators/factory_girl/model/templates/fixtures.rb", + "lib/generators/formtastic.rb", + "lib/generators/formtastic/scaffold/scaffold_generator.rb", + "lib/generators/formtastic/scaffold/templates/_form.html.erb.erb", + "lib/generators/formtastic/scaffold/templates/_form.html.haml.erb", "lib/generators/haml.rb", "lib/generators/haml/controller/controller_generator.rb", "lib/generators/haml/controller/templates/view.html.haml", + "lib/generators/haml/install/install_generator.rb", + "lib/generators/haml/install/templates/config/initializers/haml.rb.tt", "lib/generators/haml/scaffold/scaffold_generator.rb", + "lib/generators/haml/scaffold/templates/_form.html.haml.erb", + "lib/generators/haml/scaffold/templates/edit.html.haml.erb", + "lib/generators/haml/scaffold/templates/index.html.haml.erb", + "lib/generators/haml/scaffold/templates/new.html.haml.erb", + "lib/generators/haml/scaffold/templates/show.html.haml.erb", "lib/generators/machinist.rb", "lib/generators/machinist/model/model_generator.rb", "lib/generators/machinist/model/templates/blueprint.rb", @@ -51,26 +72,73 @@ Gem::Specification.new do |s| "lib/generators/shoulda/controller/templates/controller.rb", "lib/generators/shoulda/model/model_generator.rb", "lib/generators/shoulda/model/templates/model.rb", + "lib/generators/simple_form.rb", + "lib/generators/simple_form/scaffold/scaffold_generator.rb", + "lib/generators/simple_form/scaffold/templates/_form.html.erb.erb", + "lib/generators/simple_form/scaffold/templates/_form.html.haml.erb", "lib/rails3-generators.rb", - "rails3-generators.gemspec" + "rails3-generators.gemspec", + "test/fixtures/routes.rb", + "test/lib/generators/authlogic/session_generator_test.rb", + "test/lib/generators/datamapper/migration_generator_test.rb", + "test/lib/generators/datamapper/model_generator_test.rb", + "test/lib/generators/datamapper/observer_generator_test.rb", + "test/lib/generators/erubis/controller_generator_test.rb", + "test/lib/generators/erubis/scaffold_generator_test.rb", + "test/lib/generators/factory_girl/model_generator_test.rb", + "test/lib/generators/formtastic/scaffold_generators_test.rb", + "test/lib/generators/haml/controller_generator_test.rb", + "test/lib/generators/haml/install_generator_test.rb", + "test/lib/generators/haml/scaffold_generator_test.rb", + "test/lib/generators/machinist/model_generator_test.rb", + "test/lib/generators/mongomapper/model_generator_test.rb", + "test/lib/generators/mongomapper/observer_generator_test.rb", + "test/lib/generators/simple_form/scaffold_generators_test.rb", + "test/test_helper.rb" ] s.homepage = %q{http://github.com/indirect/rails3-generators} + s.post_install_message = %q{ +rails3-generators-0.9.0 + +Be sure to check out the wiki, http://wiki.github.com/indirect/rails3-generators/, +for information about recent changes to this project. + +note: if you use erb templates add the follow to your generators block take full advantage of this gem. +g.template_engine :erubis + +} s.rdoc_options = ["--charset=UTF-8"] s.require_paths = ["lib"] s.rubygems_version = %q{1.3.7} s.summary = %q{Rails 3 compatible generators} + s.test_files = [ + "test/fixtures/routes.rb", + "test/lib/generators/authlogic/session_generator_test.rb", + "test/lib/generators/datamapper/migration_generator_test.rb", + "test/lib/generators/datamapper/model_generator_test.rb", + "test/lib/generators/datamapper/observer_generator_test.rb", + "test/lib/generators/erubis/controller_generator_test.rb", + "test/lib/generators/erubis/scaffold_generator_test.rb", + "test/lib/generators/factory_girl/model_generator_test.rb", + "test/lib/generators/formtastic/scaffold_generators_test.rb", + "test/lib/generators/haml/controller_generator_test.rb", + "test/lib/generators/haml/install_generator_test.rb", + "test/lib/generators/haml/scaffold_generator_test.rb", + "test/lib/generators/machinist/model_generator_test.rb", + "test/lib/generators/mongomapper/model_generator_test.rb", + "test/lib/generators/mongomapper/observer_generator_test.rb", + "test/lib/generators/simple_form/scaffold_generators_test.rb", + "test/test_helper.rb" + ] if s.respond_to? :specification_version then current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 3 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q, [">= 1.2.9"]) else - s.add_dependency(%q, [">= 1.2.9"]) end else - s.add_dependency(%q, [">= 1.2.9"]) end end