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