From 9dea239b9eef10d0f2585be27bc6520b733ed588 Mon Sep 17 00:00:00 2001 From: Alex Dunae Date: Wed, 14 Sep 2011 10:45:31 -0700 Subject: [PATCH] Cleanup rakefile --- rakefile.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rakefile.rb b/rakefile.rb index 1e3dca9..bce74f6 100644 --- a/rakefile.rb +++ b/rakefile.rb @@ -1,13 +1,15 @@ $:.unshift File.expand_path('../lib', __FILE__) require 'rake' require 'rake/testtask' -require 'rake/rdoctask' -require 'rake/gempackagetask' +require 'rdoc/task' +require 'rubygems/package_task' require 'yaml' require 'fileutils' require 'holidays' require File.expand_path('data/build_defs') +task :default => :test + desc 'Run all tests' task :test => ["test:lib", "test:defs"] @@ -30,7 +32,7 @@ end task :doc => ["defs:manifest", :rdoc] desc 'Generate documentation.' -Rake::RDocTask.new(:rdoc) do |rdoc| +RDoc::Task.new do |rdoc| rdoc.rdoc_dir = 'doc' rdoc.title = 'Ruby Holidays Gem' rdoc.options << '--all' << '--inline-source' << '--line-numbers'