Rakefile 609 B

12345678910111213141516171819202122232425262728293031
  1. # frozen_string_literal: true
  2. begin
  3. require "bundler/setup"
  4. rescue LoadError
  5. puts "You must `gem install bundler` and `bundle install` to run rake tasks"
  6. end
  7. require "rdoc/task"
  8. RDoc::Task.new(:rdoc) do |rdoc|
  9. rdoc.rdoc_dir = "rdoc"
  10. rdoc.title = "Rails Settings Cached"
  11. rdoc.options << "--line-numbers"
  12. rdoc.rdoc_files.include("README.md")
  13. rdoc.rdoc_files.include("lib/**/*.rb")
  14. end
  15. require "bundler/gem_tasks"
  16. require "rake/testtask"
  17. Rake::TestTask.new(:test) do |t|
  18. t.libs << "test"
  19. t.pattern = "test/**/*_test.rb"
  20. t.verbose = false
  21. t.warning = false
  22. end
  23. task default: :test