forked from jmcnevin/rubypants
/
Rakefile
33 lines (24 loc) · 789 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Rakefile for rubypants -*-ruby-*-
require 'rake/rdoctask'
require 'rake/testtask'
require 'rake/gempackagetask'
desc "Run all the tests"
task :default => [:test]
desc "Do predistribution stuff"
task :predist => [:doc]
Rake::TestTask.new(:test) do |t|
t.pattern = "#{File.dirname(__FILE__)}/test/all.rb"
t.verbose = true
end
Rake::Task['test'].comment = "Run all rubypants tests"
desc "Make an archive as .tar.gz"
task :dist => :test do
system "darcs dist -d rubypants#{get_darcs_tree_version}"
end
desc "Generate RDoc documentation"
Rake::RDocTask.new(:doc) do |rdoc|
rdoc.options += %w(--line-numbers --inline-source --all)
rdoc.rdoc_files.include 'README'
rdoc.rdoc_files.include 'lib'
end
Rake::GemPackageTask.new(eval(File.read("rubypants.gemspec"))) { |pkg| }