Rakefile in roo-0.7.0 vs Rakefile in roo-0.8.0

- old
+ new

@@ -12,11 +12,11 @@ include FileUtils require File.join(File.dirname(__FILE__), 'lib', 'roo', 'version') AUTHOR = 'Thomas Preymesser' # can also be an array of Authors EMAIL = "thopre@gmail.com" -DESCRIPTION = "roo can access the contents of OpenOffice-Spreadsheets and Excel-Spreadsheets" +DESCRIPTION = "roo can access the contents of OpenOffice-, Excel- or Google-Spreadsheets" GEM_NAME = 'roo' # what ppl will type to install your gem @config_file = "~/.rubyforge/user-config.yml" @config = nil def rubyforge_username @@ -105,17 +105,27 @@ desc 'Generate and upload website files' task :website => [:website_generate, :website_upload] desc 'Release the website and new gem version' -task :deploy => [:check_version, :website, :release] do +task :deploy => [:check_log_params, :check_version, :website, :release ] do puts "Remember to create SVN tag:" puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " + "svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} " puts "Suggested comment:" puts "Tagging release #{CHANGES}" end +desc 'Check to ensure the LOG_* constant in Test are set off' +task :check_log_params do + require 'test/test_roo' + if DISPLAY_LOG + raise 'please turn off the DISPLAY_LOG constant for deployment!' + end + if DB_LOG + raise 'please turn off the DB_LOG constant for deployment!' + end +end desc 'Runs tasks website_generate and install_gem as a local deployment of the gem' task :local_deploy => [:website_generate, :install_gem] task :check_version do unless ENV['VERSION']