class GemOf::YardStickTasks
a class to hold the yardstick provided yarddoc tasks
Public Class Methods
new()
click to toggle source
rubocop:disable Metrics/MethodLength instance yardstick tasks in namespace :docs @api public @example YardStackTasks.new
# File lib/gem_of/rake_tasks.rb, line 52 def initialize namespace :docs do desc "Measure YARD coverage. see yardstick/report.txt for output" require "yardstick/rake/measurement" Yardstick::Rake::Measurement.new(:measure) do |measurement| measurement.output = "yardstick/report.txt" end desc "Verify YARD coverage" require "yardstick/rake/verify" config = { "require_exact_threshold" => false } Yardstick::Rake::Verify.new(:verify, config) do |verify| verify.threshold = 80 end end end