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:
parent
ab546a14cb
commit
7a3dcdc67f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue