From 00c75f0a43f87a66441dd83db9202731feeb5d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20H=C3=B6rberg?= Date: Sun, 24 Mar 2024 22:14:08 +0100 Subject: [PATCH] rake yard task to generate docs --- Gemfile | 4 +++- Rakefile | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 9d10310..b9c47e4 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,8 @@ gem "minitest", "~> 5.0" gem "rubocop", "~> 1.7" +gem "rubocop-minitest", require: false + gem "yard", require: false -gem "rubocop-minitest", require: false +gem "redcarpet", require: false, platforms: :ruby diff --git a/Rakefile b/Rakefile index 72ec42a..bd3faab 100644 --- a/Rakefile +++ b/Rakefile @@ -22,4 +22,8 @@ RuboCop::RakeTask.new do |task| task.requires << "rubocop-minitest" end +require "yard" + +YARD::Rake::YardocTask.new + task default: [:test, *(:rubocop if RUBY_ENGINE == "ruby")]