1 desc 'Release the website and new gem version'
2 task :deploy => [:check_version, :website, :release] do
3 puts "Remember to create SVN tag:"
4 puts "svn copy svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/trunk " +
5 "svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
6 puts "Suggested comment:"
7 puts "Tagging release #{CHANGES}"
10 desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
11 task :local_deploy => [:website_generate, :install_gem]
13 task :check_version do
15 puts 'Must pass a VERSION=x.y.z release version'
18 unless ENV['VERSION'] == VERS
19 puts "Please update your version.rb to match the release version, currently #{VERS}"