Rakefile 561 B

123456789101112131415161718192021
  1. # encoding: UTF-8
  2. require 'bundler/gem_tasks'
  3. require 'rake/testtask'
  4. require 'rdoc/task'
  5. desc 'Run tests for InheritedResources.'
  6. Rake::TestTask.new(:test) do |t|
  7. t.pattern = 'test/**/*_test.rb'
  8. t.verbose = true
  9. end
  10. desc 'Generate documentation for InheritedResources.'
  11. Rake::RDocTask.new(:rdoc) do |rdoc|
  12. rdoc.rdoc_dir = 'rdoc'
  13. rdoc.title = 'InheritedResources'
  14. rdoc.options << '--line-numbers' << '--inline-source'
  15. rdoc.rdoc_files.include('README.rdoc')
  16. rdoc.rdoc_files.include('MIT-LICENSE')
  17. rdoc.rdoc_files.include('lib/**/*.rb')
  18. end