From f7acdd1afde3018a9f7c0a7dc3b6bd97a65670a2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 5 Sep 2008 10:31:06 +0000 Subject: Merged hooks branch @ r1785 into trunk. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1786 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/generators/redmine_plugin/templates/README | 3 +++ lib/generators/redmine_plugin/templates/en.yml | 2 ++ lib/generators/redmine_plugin/templates/init.rb | 8 ++++++++ lib/generators/redmine_plugin/templates/test_helper.rb | 5 +++++ 4 files changed, 18 insertions(+) create mode 100644 lib/generators/redmine_plugin/templates/README create mode 100644 lib/generators/redmine_plugin/templates/en.yml create mode 100644 lib/generators/redmine_plugin/templates/init.rb create mode 100644 lib/generators/redmine_plugin/templates/test_helper.rb (limited to 'lib/generators/redmine_plugin/templates') diff --git a/lib/generators/redmine_plugin/templates/README b/lib/generators/redmine_plugin/templates/README new file mode 100644 index 000000000..7a31a890e --- /dev/null +++ b/lib/generators/redmine_plugin/templates/README @@ -0,0 +1,3 @@ += <%= file_name %> + +Description goes here diff --git a/lib/generators/redmine_plugin/templates/en.yml b/lib/generators/redmine_plugin/templates/en.yml new file mode 100644 index 000000000..e338591ef --- /dev/null +++ b/lib/generators/redmine_plugin/templates/en.yml @@ -0,0 +1,2 @@ +# English strings go here +my_label: "My label" diff --git a/lib/generators/redmine_plugin/templates/init.rb b/lib/generators/redmine_plugin/templates/init.rb new file mode 100644 index 000000000..1ffcd7bb8 --- /dev/null +++ b/lib/generators/redmine_plugin/templates/init.rb @@ -0,0 +1,8 @@ +require 'redmine' + +Redmine::Plugin.register :<%= plugin_name %> do + name '<%= plugin_pretty_name %> plugin' + author 'Author name' + description 'This is a plugin for Redmine' + version '0.0.1' +end diff --git a/lib/generators/redmine_plugin/templates/test_helper.rb b/lib/generators/redmine_plugin/templates/test_helper.rb new file mode 100644 index 000000000..bd1ed0c5d --- /dev/null +++ b/lib/generators/redmine_plugin/templates/test_helper.rb @@ -0,0 +1,5 @@ +# Load the normal Rails helper +require File.expand_path(File.dirname(__FILE__) + '/../../../../test/test_helper') + +# Ensure that we are using the temporary fixture path +Engines::Testing.set_fixture_path -- cgit v1.2.3