Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 383 Bytes
require 'rubygems'
require 'rake/gempackagetask'
spec = eval(File.read('merb_has_rails_plugins.gemspec'))
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
task :install => [:package] do
sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
end
task :release => :package do
sh %{rubyforge add_release merb-plugins #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
end