diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-09-27 22:57:05 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-09-27 22:57:05 +0000 |
commit | 5217b90909ef2d48bb708161a7b2f34826e62cd4 (patch) | |
tree | be0b4c0d7e284d1292adb99787198b8ba2b6a695 /railties/lib | |
parent | 17d2732b1cc50fd97685417080beb72d00609daf (diff) | |
download | rails-5217b90909ef2d48bb708161a7b2f34826e62cd4.tar.gz rails-5217b90909ef2d48bb708161a7b2f34826e62cd4.tar.bz2 rails-5217b90909ef2d48bb708161a7b2f34826e62cd4.zip |
Ticket 2261 - Include lib/tasks/*.rake in rake stats
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2376 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/code_statistics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/code_statistics.rb b/railties/lib/code_statistics.rb index 75334c4610..203a91f323 100644 --- a/railties/lib/code_statistics.rb +++ b/railties/lib/code_statistics.rb @@ -26,7 +26,7 @@ class CodeStatistics @pairs.inject({}) { |stats, pair| stats[pair.first] = calculate_directory_statistics(pair.last); stats } end - def calculate_directory_statistics(directory, pattern = /.*\.rb$/) + def calculate_directory_statistics(directory, pattern = /.*\.r(b|ake)$/) stats = { "lines" => 0, "codelines" => 0, "classes" => 0, "methods" => 0 } Dir.foreach(directory) do |file_name| |