2019-04-01 18:20:41 +02:00
|
|
|
require "bundler/gem_tasks"
|
|
|
|
require "rake/testtask"
|
|
|
|
require "standard/rake"
|
2022-06-08 12:26:06 -07:00
|
|
|
|
2022-06-15 08:15:22 -07:00
|
|
|
# If you want to generate API docs:
|
|
|
|
# gem install yard && yard && open doc/index.html
|
|
|
|
# YARD readme: https://rubydoc.info/gems/yard/file/README.md
|
|
|
|
# YARD tags: https://www.rubydoc.info/gems/yard/file/docs/Tags.md
|
|
|
|
# YARD cheatsheet: https://gist.github.com/phansch/db18a595d2f5f1ef16646af72fe1fb0e
|
2018-12-07 17:59:42 +01:00
|
|
|
|
2022-08-03 09:45:06 -07:00
|
|
|
# To check code coverage, include simplecov in the Gemfile and
|
|
|
|
# run `COVERAGE=1 bundle exec rake`
|
|
|
|
|
2012-01-21 16:42:21 -08:00
|
|
|
Rake::TestTask.new(:test) do |test|
|
2016-11-23 14:50:11 -08:00
|
|
|
test.warning = true
|
2022-08-25 10:15:11 -07:00
|
|
|
test.pattern = "test/**/*.rb"
|
2012-01-21 16:42:21 -08:00
|
|
|
end
|
|
|
|
|
2022-05-11 12:40:19 -07:00
|
|
|
task default: [:standard, :test]
|