Rakefile 557 B

123456789101112131415161718192021222324
  1. # encoding: UTF-8
  2. require 'rake'
  3. require 'rake/testtask'
  4. require 'rdoc/task'
  5. desc 'Default: run unit tests.'
  6. task :default => :test
  7. desc 'Test HasScope'
  8. Rake::TestTask.new(:test) do |t|
  9. t.libs << 'lib'
  10. t.libs << 'test'
  11. t.pattern = 'test/**/*_test.rb'
  12. t.verbose = true
  13. end
  14. desc 'Generate documentation for HasScope'
  15. Rake::RDocTask.new(:rdoc) do |rdoc|
  16. rdoc.rdoc_dir = 'rdoc'
  17. rdoc.title = 'HasScope'
  18. rdoc.options << '--line-numbers' << '--inline-source'
  19. rdoc.rdoc_files.include('README.rdoc')
  20. rdoc.rdoc_files.include('lib/**/*.rb')
  21. end