Rakefile in rscm-0.3.16 vs Rakefile in rscm-0.4.0

- old
+ new

@@ -5,14 +5,15 @@ require 'rake/packagetask' require 'rake/gempackagetask' require 'rake/contrib/sshpublisher' require 'rake/contrib/rubyforgepublisher' require 'meta_project' +require 'lib/rscm/version' PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = 'rscm' -PKG_VERSION = '0.3.16' + PKG_BUILD +PKG_VERSION = RSCM::VERSION::STRING + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" desc "Default Task" task :default => [:test, :gem] #task :gem => [:test] @@ -30,9 +31,12 @@ fl.exclude('test/**/starteam*.rb') # Too bloody hard to test without a StarTeam server license! Tested ad-hoc. Rake::TestTask.new { |t| t.libs << "test" t.test_files = fl t.verbose = true + + # turn on code coverage + #t.ruby_opts << "-rcoverage/coverage" } rd = Rake::RDocTask.new { |rdoc| rdoc.title = 'RSCM - Ruby Source Control Management API' rdoc.options << '--line-numbers' << '--inline-source'