mongo-ruby-driver/Rakefile

16 lines
364 B
Ruby
Raw Normal View History

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|
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')
system "rdoc --main README.rdoc --inline-source --quiet README.rdoc `find lib -name '*.rb'`"
2008-12-04 21:38:04 +00:00
end