Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

made stats parsing a bit more robust (now works with rails3 in test e…

…nvironment)
  • Loading branch information...
commit 03c02d3144d541fc88a1b84957b98deea9e074ad 1 parent fff2f88
@MSNexploder MSNexploder authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/generators/stats.rb
View
3  lib/generators/stats.rb
@@ -26,8 +26,7 @@ def to_h
def remove_noise(output)
lines = output.split("\n")
- lines = lines.find_all {|line| line[0].chr != "+" }
- lines = lines.find_all {|line| line[0].chr != "(" }
+ lines = lines.find_all {|line| line =~ /^\s*[C|]/ }
lines.shift
lines
end
Please sign in to comment.
Something went wrong with that request. Please try again.