1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

#2261 was supposed to have been closed as wontfix, not sure why it wasn't,

sorry.  We discussed this on IRC and reached the conclusion that it was
an undesirable addition.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2377 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Scott Barron 2005-09-27 23:31:32 +00:00
parent 5217b90909
commit e1024e50cf
2 changed files with 1 additions and 3 deletions

View file

@ -1,7 +1,5 @@
*SVN* *SVN*
* Include lib/tasks/*.rake in rake stats. #2261 [Thomas Fuchs <thomas@fesch.at>]
* Clearly label functional and unit tests in rake stats output. #2297 [lasse.koskela@gmail.com] * Clearly label functional and unit tests in rake stats output. #2297 [lasse.koskela@gmail.com]
* Make the migration generator only check files ending in *.rb when calculating the next file name #2317 [Chad Fowler] * Make the migration generator only check files ending in *.rb when calculating the next file name #2317 [Chad Fowler]

View file

@ -26,7 +26,7 @@ class CodeStatistics
@pairs.inject({}) { |stats, pair| stats[pair.first] = calculate_directory_statistics(pair.last); stats } @pairs.inject({}) { |stats, pair| stats[pair.first] = calculate_directory_statistics(pair.last); stats }
end end
def calculate_directory_statistics(directory, pattern = /.*\.r(b|ake)$/) def calculate_directory_statistics(directory, pattern = /.*\.rb$/)
stats = { "lines" => 0, "codelines" => 0, "classes" => 0, "methods" => 0 } stats = { "lines" => 0, "codelines" => 0, "classes" => 0, "methods" => 0 }
Dir.foreach(directory) do |file_name| Dir.foreach(directory) do |file_name|