require 'rubygems' require 'hoe' Hoe.new("plugin_test_generator", '0.0.2') do |p| p.summary = "Generates files for testing Rails plugins with Test/Unit." p.description = "Generates files for testing Rails plugins with Test/Unit." p.rubyforge_name = 'seattlerb' p.author = 'Geoffrey Grosenbach' p.email = 'boss AT topfunky.com' p.url = "http://rubyforge.org/projects/seattlerb" p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n") p.clean_globs = ['templates', 'plugin_test_generator.rb'] # Remove this directory on "rake clean" end # HACK Convert plugin to be packageable as a gem desc "Copy files to Rails-friendly locations and release" task :release_gem => [:copy_files_to_root, :release] desc "Copy files to Rails-friendly locations before packaging as gem" task :package_gem => [:copy_files_to_root, :package] task :copy_files_to_root do cp "generators/plugin_test/plugin_test_generator.rb", "plugin_test_generator.rb" mkdir "templates" Dir['generators/plugin_test/templates/*'].each do |filename| cp filename, filename.gsub(/^generators\/plugin_test\//, '') end end