Rakefile 634 B

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