Cleanup rakefile
This commit is contained in:
parent
1052448108
commit
9dea239b9e
1 changed files with 5 additions and 3 deletions
|
@ -1,13 +1,15 @@
|
||||||
$:.unshift File.expand_path('../lib', __FILE__)
|
$:.unshift File.expand_path('../lib', __FILE__)
|
||||||
require 'rake'
|
require 'rake'
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
require 'rake/rdoctask'
|
require 'rdoc/task'
|
||||||
require 'rake/gempackagetask'
|
require 'rubygems/package_task'
|
||||||
require 'yaml'
|
require 'yaml'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'holidays'
|
require 'holidays'
|
||||||
require File.expand_path('data/build_defs')
|
require File.expand_path('data/build_defs')
|
||||||
|
|
||||||
|
task :default => :test
|
||||||
|
|
||||||
desc 'Run all tests'
|
desc 'Run all tests'
|
||||||
task :test => ["test:lib", "test:defs"]
|
task :test => ["test:lib", "test:defs"]
|
||||||
|
|
||||||
|
@ -30,7 +32,7 @@ end
|
||||||
task :doc => ["defs:manifest", :rdoc]
|
task :doc => ["defs:manifest", :rdoc]
|
||||||
|
|
||||||
desc 'Generate documentation.'
|
desc 'Generate documentation.'
|
||||||
Rake::RDocTask.new(:rdoc) do |rdoc|
|
RDoc::Task.new do |rdoc|
|
||||||
rdoc.rdoc_dir = 'doc'
|
rdoc.rdoc_dir = 'doc'
|
||||||
rdoc.title = 'Ruby Holidays Gem'
|
rdoc.title = 'Ruby Holidays Gem'
|
||||||
rdoc.options << '--all' << '--inline-source' << '--line-numbers'
|
rdoc.options << '--all' << '--inline-source' << '--line-numbers'
|
||||||
|
|
Loading…
Add table
Reference in a new issue