require ‘rake’ require ‘rake/testtask’ require ‘rake/rdoctask‘

desc ‘Default: run unit tests.’ task :default => :test

desc ‘Test the Annotations plugin.’ Rake::TestTask.new(:test) do |t|

  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true

end

desc ‘Generate documentation for the Annotations plugin.’ Rake::RDocTask.new do |rdoc|

  rdoc.rdoc_dir = 'doc'
  rdoc.title    = "Annotations Plugin"
  rdoc.main     = 'README.rdoc'

  rdoc.rdoc_files << "LICENSE"
  rdoc.rdoc_files << "**/*.rdoc"
  rdoc.rdoc_files << "lib/**/*.rb"

  rdoc.options << '-SHNU'
  rdoc.options << '-w 2'
  rdoc.options << '-f darkfish'

end

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.