summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@debian.org>2013-08-12 14:18:20 +0200
committerAntonio Terceiro <terceiro@softwarelivre.org>2013-08-13 01:38:12 +0200
commit268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7 (patch)
tree66e4d053dd0adeab0ef1402543280e2371fc7905 /Rakefile
parentc8c32eea5d329773bda8ce0a073266ab498507c5 (diff)
downloadfeed2imap-268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7.tar.gz
feed2imap-268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7.tar.bz2
feed2imap-268026c0f075ca6023e8c5e0fa1b4b3e1559ddf7.zip
Make `rake` work under Ruby 1.9
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 493792c..8870942 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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