2008-12-04 21:38:04 +00:00
|
|
|
require 'fileutils'
|
2008-11-22 01:00:51 +00:00
|
|
|
require 'rake/testtask'
|
|
|
|
|
|
|
|
task :default => [:test]
|
|
|
|
|
|
|
|
# NOTE: some of the tests assume Mongo is running
|
|
|
|
Rake::TestTask.new do |t|
|
2008-12-02 00:36:20 +00:00
|
|
|
t.test_files = FileList['tests/test*.rb']
|
2008-11-22 01:00:51 +00:00
|
|
|
end
|
2008-12-04 21:38:04 +00:00
|
|
|
|
2008-12-04 21:44:21 +00:00
|
|
|
desc "Generate documentation"
|
2008-12-04 21:38:04 +00:00
|
|
|
task :rdoc do
|
|
|
|
FileUtils.rm_rf('doc')
|
2008-12-17 16:02:53 +00:00
|
|
|
system "rdoc --main README.rdoc --inline-source --quiet README.rdoc `find lib -name '*.rb'`"
|
2008-12-04 21:38:04 +00:00
|
|
|
end
|