Rakefile
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yard'
import 'tasks/readme.rake'
task default: %i[readme rubocop spec]
RuboCop::RakeTask.new(:rubocop) do |task|
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb', 'bin/*']
end
RSpec::Core::RakeTask.new(:spec) do |task|
task.pattern = './spec/**/*_spec.rb'
task.rspec_opts = ['--color', '--require spec_helper', '--order rand']
end
YARD::Rake::YardocTask.new(:doc) do |t|
t.files = Dir['lib/**/*.rb']
t.stats_options = ['--list-undoc']
end