aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-13 18:43:23 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-13 18:43:23 +0000
commit0f8a3a31a7a673837e414d363aa166dfc66809a9 (patch)
tree8cb40932d3b681ffb97df47d53fef57651b44b2a
parentc9c0d74b5db845963c5c1748668d7049313c103b (diff)
downloadrails-0f8a3a31a7a673837e414d363aa166dfc66809a9.tar.gz
rails-0f8a3a31a7a673837e414d363aa166dfc66809a9.tar.bz2
rails-0f8a3a31a7a673837e414d363aa166dfc66809a9.zip
Only include dirs that exists in the stats
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--railties/lib/tasks/statistics.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/tasks/statistics.rake b/railties/lib/tasks/statistics.rake
index fccb71b311..d97daa0a03 100644
--- a/railties/lib/tasks/statistics.rake
+++ b/railties/lib/tasks/statistics.rake
@@ -6,7 +6,7 @@ STATS_DIRECTORIES = [
%w(Functionals test/functional),
%w(Models app/models),
%w(Units test/unit)
-]
+].collect { |name, dir| [ name, "#{RAILS_ROOT}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
desc "Report code statistics (KLOCs, etc) from the application"
task :stats do