Sha256: 61e11276f25e666c51599ad828d67106cf2548773ea7720c1ea4a3b17a08a6bc
Contents?: true
Size: 663 Bytes
Versions: 5
Compression:
Stored size: 663 Bytes
Contents
begin require 'yard' task :ycov => ['.yardoc'] do YARD::Registry.load_yardoc code_objects = YARD::Registry.paths.map{|path| YARD::Registry.at(path) } without_doc, with_doc = code_objects.partition{|obj| obj.docstring.empty? } documented = with_doc.size undocumented = without_doc.size total = documented + undocumented percentage = (documented / 0.01) / total puts "Documentation coverage is %d/%d (%3.1f%%)" % [documented, total, percentage] end file '.yardoc' => FileList['lib/**/*.rb'] do files = ['lib/**/*.rb'] options = ['--no-output', '--private'] YARD::CLI::Yardoc.run(*(options + files)) end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
manveru-makura-2009.05.27 | tasks/ycov.rake |
makura-2011.01.21 | tasks/ycov.rake |
makura-2010.08.26 | tasks/ycov.rake |
makura-2010.08 | tasks/ycov.rake |
makura-2009.05.27 | tasks/ycov.rake |