Sha256: b0afd63ba4c399c4534841040ccfd1069605beeeda98cd2b14b76fcee5a1fe5c
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
# Installs a rake task to generate API documentation using yard. # # This file installs the 'rake yard' task. It is automatically generated by Noe from # your .noespec file, and should therefore be configured there, under the # variables/rake_tasks/yard entry, as illustrated below: # # variables: # rake_tasks: # yard: # files: lib/**/*.rb # options: [] # ... # # If you have specific needs requiring manual intervention on this file, # don't forget to set safe-override to false in your noe specification: # # template-info: # manifest: # tasks/yard.rake: # safe-override: false # # This file has been written to conform to yard v0.6.4. More information about # yard and the rake task installed below can be found on http://yardoc.org/ # begin require "yard" desc "Generate yard documentation" YARD::Rake::YardocTask.new(:yard) do |t| # Array of options passed to yardoc commandline. See 'yardoc --help' about this t.options = +{rake_tasks.yard.options} # Array of ruby source files (and any extra documentation files # separated by '-') t.files = +{rake_tasks.yard.files} # A proc to call before running the task # t.before = proc{ } # A proc to call after running the task # r.after = proc{ } # An optional lambda to run against all objects being generated. # Any object that the lambda returns false for will be excluded # from documentation. # t.verifier = lambda{|obj| true} end rescue LoadError task :yard do abort 'yard is not available. In order to run yard, you must: gem install yard' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
noe-1.5.0 | templates/ruby/src/tasks/yard.rake |
noe-1.4.0 | templates/ruby/src/tasks/yard.rake |
noe-1.3.0 | templates/ruby/src/tasks/yard.rake |
noe-1.2.0 | ./templates/ruby/src/tasks/yard.rake |