Browse Source

Renamed the .rb files in the plugin_generator to end in .erb. The .rb was

causing rdoc to try to document them and fail.

* Updated the generator's manifest to use the new files
* Renamed template README to README.rdoc

  #2011


git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1949 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.8.0-RC1
Eric Davis 15 years ago
parent
commit
bcde2f4dce

+ 3
- 3
lib/generators/redmine_plugin/redmine_plugin_generator.rb View File

@@ -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

lib/generators/redmine_plugin/templates/README → lib/generators/redmine_plugin/templates/README.rdoc View File


lib/generators/redmine_plugin/templates/init.rb → lib/generators/redmine_plugin/templates/init.rb.erb View File


lib/generators/redmine_plugin/templates/test_helper.rb → lib/generators/redmine_plugin/templates/test_helper.rb.erb View File


Loading…
Cancel
Save