Skip to content

Commit

Permalink
#2261 was supposed to have been closed as wontfix, not sure why it wa…
Browse files Browse the repository at this point in the history
…sn'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
  • Loading branch information
Scott Barron committed Sep 27, 2005
1 parent 5217b90 commit e1024e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions railties/CHANGELOG
@@ -1,7 +1,5 @@
*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]

* Make the migration generator only check files ending in *.rb when calculating the next file name #2317 [Chad Fowler]
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/code_statistics.rb
Expand Up @@ -26,7 +26,7 @@ def calculate_statistics
@pairs.inject({}) { |stats, pair| stats[pair.first] = calculate_directory_statistics(pair.last); stats }
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 }

Dir.foreach(directory) do |file_name|
Expand Down

0 comments on commit e1024e5

Please sign in to comment.