Rakefile.rb 490 B

12345678910111213141516171819202122232425
  1. # Rakefile for managing chess-data project
  2. #
  3. # Copyright (c) Peter Lane, 2013-20.
  4. require 'rake/testtask'
  5. Rake::TestTask.new do |t|
  6. t.libs.push "lib"
  7. t.test_files = FileList['test/*_test.rb']
  8. t.verbose = true
  9. end
  10. directory 'release'
  11. desc 'build gem: keeps generated gems in release/'
  12. task :build_gem => 'release' do
  13. sh "gem build chess-data.gemspec"
  14. sh "mv *.gem release"
  15. end
  16. desc 'build documentation'
  17. task :doc do
  18. sh "rdoc lib LICENSE.txt README.rdoc -m README.rdoc"
  19. end