While Ruby 1.9 now includes rake, it does not include popular rake/contrib addons. The solution to that turns out to be quite simple. Package up just those files into a separate gem:
svn checkout http://rake.rubyforge.org/svn/trunk/ rake
cat <<'EOG' >rake-contrib.gemspec
Gem::Specification.new do |s|
s.name = 'rake-contrib'
if `ruby -Ilib ./bin/rake --version` =~ /rake, version ([0-9.]+)$/
s.version = $1
s.version = "0.0.0"
s.summary = "Contrib files from Rake"
s.description = <<-EOF
Contrib files from Rake which are not included in Ruby 1.9,
but are widely depended upon.
s.files = Dir[ 'lib/rake/contrib/*.rb' ]
s.require_path = 'lib'
s.has_rdoc = true
s.author = "Jim Weirich"
s.email = "firstname.lastname@example.org"
s.homepage = "http://rake.rubyforge.org"
s.rubyforge_project = "rake"
gem build rake-contrib.gemspec
Ruby 1.9 includes rake, but not rake/contrib. For the moment I've moved the sshpublisher require into the only rake task that needs it, so that I can at least run the tests in Ruby 1.9. It looks like I will need to build a rake/contrib gem or similar to get this working properly - http://intertwingly.net/blog/2008/01/07/Rake-Contrib-for-1-9
m Rakefile Ruby 1.9 includes rake, but not rake/contrib. For the moment I’ve moved the sshpublisher require into the only rake task that needs it, so that I can at least run the tests in Ruby 1.9. It looks like I will need to build a rake/contrib...
Ruby 1.9 Compatibility Note that Mocha should be compatible with Ruby 1.9.1 using MiniTest or Test::Unit . However, if you want to use Test::Unit , you will need to install the test-unit gem . Release Notes Fixed Lighthouse bug #32 –...