Skip to content
This repository
Browse code

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 Kemper authored September 27, 2005
2  railties/CHANGELOG
... ...
@@ -1,5 +1,7 @@
1 1
 *SVN*
2 2
 
  3
+* Include lib/tasks/*.rake in rake stats.  #2261 [Thomas Fuchs <thomas@fesch.at>]
  4
+
3 5
 * Clearly label functional and unit tests in rake stats output.  #2297 [lasse.koskela@gmail.com]
4 6
 
5 7
 * Make the migration generator only check files ending in *.rb when calculating the next file name #2317 [Chad Fowler]
2  railties/lib/code_statistics.rb
@@ -26,7 +26,7 @@ def calculate_statistics
26 26
       @pairs.inject({}) { |stats, pair| stats[pair.first] = calculate_directory_statistics(pair.last); stats }
27 27
     end
28 28
 
29  
-    def calculate_directory_statistics(directory, pattern = /.*\.rb$/)
  29
+    def calculate_directory_statistics(directory, pattern = /.*\.r(b|ake)$/)
30 30
       stats = { "lines" => 0, "codelines" => 0, "classes" => 0, "methods" => 0 }
31 31
 
32 32
       Dir.foreach(directory) do |file_name| 

0 notes on commit 5217b90

Please sign in to comment.
Something went wrong with that request. Please try again.