Exclude test files from YARD.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3920 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis 2010-08-07 15:11:15 +00:00
parent ab546a14cb
commit 7a3dcdc67f
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@ begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'app/**/*.rb', 'vendor/plugins/**/*.rb']
files = ['lib/**/*.rb', 'app/**/*.rb']
files << Dir['vendor/plugins/**/*.rb'].reject {|f| f.match(/test/) } # Exclude test files
t.files = files
end
rescue LoadError