Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 5217b90909ef2d48bb708161a7b2f34826e62cd4 1 parent 17d2732
@jeremy jeremy authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  railties/CHANGELOG
  2. +1 −1  railties/lib/code_statistics.rb
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*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]
View
2  railties/lib/code_statistics.rb
@@ -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 = /.*\.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|
Please sign in to comment.
Something went wrong with that request. Please try again.