2008-06-20 20:54:25 +02:00
|
|
|
require 'rake'
|
2008-09-12 07:21:16 +02:00
|
|
|
require "rake/rdoctask"
|
2008-06-20 20:54:25 +02:00
|
|
|
require 'spec/rake/spectask'
|
|
|
|
|
|
|
|
desc "Run all specs"
|
|
|
|
Spec::Rake::SpecTask.new('spec') do |t|
|
|
|
|
t.spec_files = FileList['spec/*_spec.rb']
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "Print specdocs"
|
|
|
|
Spec::Rake::SpecTask.new(:doc) do |t|
|
|
|
|
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
|
|
|
t.spec_files = FileList['spec/*_spec.rb']
|
|
|
|
end
|
|
|
|
|
2008-09-12 07:21:16 +02:00
|
|
|
desc "Generate the rdoc"
|
|
|
|
Rake::RDocTask.new do |rdoc|
|
|
|
|
files = ["README.rdoc", "LICENSE", "lib/**/*.rb"]
|
|
|
|
rdoc.rdoc_files.add(files)
|
|
|
|
rdoc.main = "README.rdoc"
|
|
|
|
rdoc.title = "CouchRest: Ruby CouchDB, close to the metal"
|
|
|
|
# rdoc.rdoc_dir = "doc/rdoc"
|
|
|
|
# rdoc.options << "--line-numbers" << "--inline-source"
|
|
|
|
end
|
|
|
|
|
2008-06-21 00:06:11 +02:00
|
|
|
task :default => :spec
|