It’s just data

Rake Contrib for 1.9

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
  else
    s.version = "0.0.0"
  end

  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.
  EOF

  s.files = Dir[ 'lib/rake/contrib/*.rb' ]
  s.require_path = 'lib'
  s.has_rdoc = true

  s.author = "Jim Weirich"
  s.email = "jim@weirichhouse.org"
  s.homepage = "http://rake.rubyforge.org"
  s.rubyforge_project = "rake"
end
EOG

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...

Excerpt from Recent Commits to mocha:ca229583b25c295983cf93b70f168ced9a9fb341 at

Mocha Release 0.9.5

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 –...

Excerpt from Floehopper: Mocha Release 0.9.5 at

Add your comment