diff --git a/lib/generators/redmine_plugin/redmine_plugin_generator.rb b/lib/generators/redmine_plugin/redmine_plugin_generator.rb index 666386abd..bd161a5d7 100644 --- a/lib/generators/redmine_plugin/redmine_plugin_generator.rb +++ b/lib/generators/redmine_plugin/redmine_plugin_generator.rb @@ -22,10 +22,10 @@ class RedminePluginGenerator < Rails::Generator::NamedBase m.directory "#{plugin_path}/lang" m.directory "#{plugin_path}/test" - m.template 'README', "#{plugin_path}/README" - m.template 'init.rb', "#{plugin_path}/init.rb" + m.template 'README.rdoc', "#{plugin_path}/README.rdoc" + m.template 'init.rb.erb', "#{plugin_path}/init.rb" m.template 'en.yml', "#{plugin_path}/lang/en.yml" - m.template 'test_helper.rb', "#{plugin_path}/test/test_helper.rb" + m.template 'test_helper.rb.erb', "#{plugin_path}/test/test_helper.rb" end end end diff --git a/lib/generators/redmine_plugin/templates/README b/lib/generators/redmine_plugin/templates/README.rdoc similarity index 100% rename from lib/generators/redmine_plugin/templates/README rename to lib/generators/redmine_plugin/templates/README.rdoc diff --git a/lib/generators/redmine_plugin/templates/init.rb b/lib/generators/redmine_plugin/templates/init.rb.erb similarity index 100% rename from lib/generators/redmine_plugin/templates/init.rb rename to lib/generators/redmine_plugin/templates/init.rb.erb diff --git a/lib/generators/redmine_plugin/templates/test_helper.rb b/lib/generators/redmine_plugin/templates/test_helper.rb.erb similarity index 100% rename from lib/generators/redmine_plugin/templates/test_helper.rb rename to lib/generators/redmine_plugin/templates/test_helper.rb.erb