summaryrefslogtreecommitdiffstats
path: root/lib/tasks/yardoc.rake
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-07 15:11:15 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-07 15:11:15 +0000
commit7a3dcdc67f79c0c703cb6340547a218b29d0c8b5 (patch)
treee965dba9555ed35f4fe1d8fd7fcd7e0d583500db /lib/tasks/yardoc.rake
parentab546a14cb9f3e40b29df0fda5c82c8d779be843 (diff)
downloadredmine-7a3dcdc67f79c0c703cb6340547a218b29d0c8b5.tar.gz
redmine-7a3dcdc67f79c0c703cb6340547a218b29d0c8b5.zip
Exclude test files from YARD.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3920 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/yardoc.rake')
-rw-r--r--lib/tasks/yardoc.rake4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tasks/yardoc.rake b/lib/tasks/yardoc.rake
index c98f3bd4f..761065df8 100644
--- a/lib/tasks/yardoc.rake
+++ b/lib/tasks/yardoc.rake
@@ -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