Index: plist-3.1.0/Rakefile =================================================================== --- plist-3.1.0.orig/Rakefile +++ plist-3.1.0/Rakefile @@ -15,7 +15,13 @@ require 'rake/testtask' require 'rake/packagetask' require 'rake/gempackagetask' require 'rake/contrib/rubyforgepublisher' -require 'rdoc/task' +begin + require 'rdoc/task' + doctask = RDoc::Task +rescue LoadError + require 'rake/rdoctask' + doctask = Rake::RDocTask +end $:.unshift(File.dirname(__FILE__) + "/lib") require 'plist' @@ -104,7 +110,7 @@ task :update_rdoc => [ :rdoc ] do end # Genereate the RDoc documentation -RDoc::Task.new do |rdoc| +doctask.new do |rdoc| rdoc.title = "All-purpose Property List manipulation library" rdoc.main = "README.rdoc"