app_generators/newgem/newgem_generator.rb in newgem-0.23.1 vs app_generators/newgem/newgem_generator.rb in newgem-0.24.0

- old
+ new

@@ -50,24 +50,23 @@ # Root m.template_copy_each %w( History.txt License.txt Rakefile README.txt PostInstall.txt ) m.file_copy_each %w( setup.rb ) # Default module for app - m.template "module.rb", "lib/#{gem_name}.rb" - m.template "version.rb", "lib/#{gem_name}/version.rb" + m.template "lib/module.rb", "lib/#{gem_name}.rb" + m.template "lib/version.rb", "lib/#{gem_name}/version.rb" # Config m.template_copy_each %w( hoe.rb requirements.rb ), "config" # Tasks m.file_copy_each %w( deployment.rake environment.rake website.rake ), "tasks" # Selecting a test framework case test_framework when "test::unit" - m.template "test_helper.rb", "test/test_helper.rb" - m.template "test.rb", "test/test_#{gem_name}.rb" + m.dependency "install_test_unit", [gem_name], :destination => destination_root, :collision => :force when "rspec" m.dependency "install_rspec", [gem_name], :destination => destination_root, :collision => :force end # Website @@ -164,9 +163,7 @@ config doc lib script tasks - test - tmp ) end