Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 2013010901
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (39 sloc) 1.289 kb
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'yard'
task :default => :spec
namespace :yard do
yard_files = [
# Ruby source files first
# Anything after '-' is a normal documentation, not source
yard_options = [
# include documentation for protected methods for developers extending the code.
] do |t|
t.files = yard_files
# --no-stats here as 'stats' task called after will print fuller stats
t.options = yard_options + ['--no-stats']
t.after = {
desc "Shows stats for YARD Documentation including listing undocumented modules, classes, constants, and methods"
task :stats => :environment do
stats =
yard_arguments = yard_options + ['--compact', '--list-undoc'] + yard_files*yard_arguments)
# @todo Figure out how to just clone description from yard:doc
desc "Generate YARD documentation"
# allow calling namespace to as a task that goes to default task for namespace
task :yard => ['yard:doc']
Jump to Line
Something went wrong with that request. Please try again.