lib/hajimeru/generator/groonga_plugin.rb in hajimeru-0.1.2 vs lib/hajimeru/generator/groonga_plugin.rb in hajimeru-0.1.3

- old
+ new

@@ -18,11 +18,14 @@ plugin_name: name, author: (git_user_name || "TODO: YOUR NAME"), email: (git_user_email || "TODO: YOUR EMAIL"), } [ + ".gitignore", + "LICENSE", "Makefile.am.tt", + "README.md.tt", "autogen.sh", "configure.ac.tt", "plugin_name/Makefile.am.tt", "plugin_name/plugin_name.c.tt", "plugin_name/sources.am.tt", @@ -31,12 +34,12 @@ "test/suite/register.expected.tt", "test/suite/register.test.tt", ].each do |path| output_path = path.gsub(/plugin_name/, config[:plugin_name]) output_path = output_path.gsub(/\.tt\z/, "") - template(path, "#{name}/#{output_path}", config) + template(path, "groonga-plugin-#{name}/#{output_path}", config) if /\.sh\z/ =~ output_path - File.chmod(0755, "#{name}/#{output_path}") + File.chmod(0755, "groonga-plugin-#{name}/#{output_path}") end end end end end