Rakefile in rscm-0.4.3 vs Rakefile in rscm-0.4.4

- old
+ new

@@ -4,11 +4,10 @@ require 'rake/rdoctask' 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 = RSCM::VERSION::STRING + PKG_BUILD @@ -24,10 +23,12 @@ fl = FileList.new('test/**/*_test.rb') fl.exclude('test/**/mooky*.rb') fl.exclude('test/**/monotone*.rb') # Incomplete/unsupported for now - reactivate when more complete! fl.exclude('test/**/clearcase*.rb') # Incomplete/unsupported for now - reactivate when more complete! fl.exclude('test/**/darcs*.rb') # Incomplete/unsupported for now - reactivate when more complete! +#fl.exclude('test/**/cvs*.rb') # Incomplete/unsupported for now - reactivate when more complete! +#fl.exclude('test/**/subversion*.rb') # Incomplete/unsupported for now - reactivate when more complete! fl.exclude('test/**/perforce*.rb') # Incomplete/unsupported for now - reactivate when more complete! fl.exclude('test/**/p4client*.rb') # Incomplete/unsupported for now - reactivate when more complete! 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" @@ -122,10 +123,11 @@ raise "RUBYFORGE_PASSWORD environment variable not set!" unless ENV['RUBYFORGE_PASSWORD'] end desc "Release files on RubyForge" task :release_files => [:gem] do + require 'meta_project' release_files = FileList[ "pkg/#{PKG_FILE_NAME}.gem" ] Rake::XForge::Release.new(MetaProject::Project::XForge::RubyForge.new(PKG_NAME)) do |release| @@ -138,15 +140,17 @@ end end desc "Publish docs/website" task :publish_doc => [:rdoc] do + require 'meta_project' publisher = Rake::RubyForgePublisher.new(PKG_NAME, ENV['RUBYFORGE_USER']) publisher.upload end desc "Publish news on RubyForge" task :publish_news => [:gem] do + require 'meta_project' release_files = FileList[ "pkg/#{PKG_FILE_NAME}.gem" ] Rake::XForge::NewsPublisher.new(MetaProject::Project::XForge::RubyForge.new(PKG_NAME)) do |news|