Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

Commit

Permalink
move yard options into :yardoc task
Browse files Browse the repository at this point in the history
  • Loading branch information
semmons99 committed Sep 14, 2010
1 parent dc63915 commit 4216e21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .yardopts

This file was deleted.

8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ task :default => :spec

begin
require 'yard'
YARD::Rake::YardocTask.new
rescue LoadError
task :yardoc do
abort 'YARD is not available. In order to run yardoc, you must: sudo gem install yard'\
YARD::Rake::YardocTask.new do |t|
t.options << "--files" << "CHANGELOG,LICENSE"
end
rescue LoadError
task(:yardoc){abort "`gem install yard` to generate documentation"}
end

0 comments on commit 4216e21

Please sign in to comment.