diff options
author | Antonio Terceiro <terceiro@debian.org> | 2013-08-12 14:18:20 +0200 |
---|---|---|
committer | Antonio Terceiro <terceiro@softwarelivre.org> | 2013-08-13 01:38:12 +0200 |
commit | 268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7 (patch) | |
tree | 66e4d053dd0adeab0ef1402543280e2371fc7905 /Rakefile | |
parent | c8c32eea5d329773bda8ce0a073266ab498507c5 (diff) | |
download | feed2imap-268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7.tar.gz feed2imap-268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7.tar.bz2 feed2imap-268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7.zip |
Make `rake` work under Ruby 1.9
Diffstat (limited to '')
-rw-r--r-- | Rakefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ require 'rake/testtask' -require 'rake/rdoctask' +require 'rdoc/task' require 'rake/packagetask' require 'rake' require 'find' @@ -22,7 +22,7 @@ Rake::TestTask.new do |t| t.test_files = FileList['test/tc_*.rb'] end -Rake::RDocTask.new do |rd| +RDoc::Task.new do |rd| rd.main = 'README' rd.rdoc_files.include('lib/*.rb', 'lib/feed2imap/*.rb') rd.options << '--all' @@ -41,7 +41,7 @@ end # "Gem" part of the Rakefile begin - require 'rake/gempackagetask' + require 'rubygems/package_task' spec = Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY @@ -57,7 +57,7 @@ begin s.description = "RSS/Atom feed aggregator" end - Rake::GemPackageTask.new(spec) do |pkg| + Gem::PackageTask.new(spec) do |pkg| pkg.need_zip = true pkg.need_tar = true end |