2019-04-01 16:20:41 +00:00
|
|
|
require "bundler/gem_tasks"
|
|
|
|
require "rake/testtask"
|
|
|
|
require "standard/rake"
|
2022-06-08 19:26:06 +00:00
|
|
|
|
2022-06-15 15:15:22 +00: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 16:59:42 +00:00
|
|
|
|
2022-08-03 16:45:06 +00:00
|
|
|
# To check code coverage, include simplecov in the Gemfile and
|
|
|
|
# run `COVERAGE=1 bundle exec rake`
|
|
|
|
|
2012-01-22 00:42:21 +00:00
|
|
|
Rake::TestTask.new(:test) do |test|
|
2016-11-23 22:50:11 +00:00
|
|
|
test.warning = true
|
2022-08-25 17:15:11 +00:00
|
|
|
test.pattern = "test/**/*.rb"
|
2012-01-22 00:42:21 +00:00
|
|
|
end
|
|
|
|
|
2022-05-11 19:40:19 +00:00
|
|
|
task default: [:standard, :test]
|