code_statistics 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/code_statistics.gemspec +1 -1
- data/lib/code_statistics/code_statistics.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/code_statistics.gemspec
CHANGED
@@ -131,9 +131,9 @@ module CodeStatistics
|
|
131
131
|
tests = calculate_tests
|
132
132
|
|
133
133
|
ratio = if code!=0
|
134
|
-
#{sprintf("%.1f", tests.to_f/code)}
|
134
|
+
"#{sprintf("%.1f", tests.to_f/code)}"
|
135
135
|
else
|
136
|
-
"0"
|
136
|
+
"0.0"
|
137
137
|
end
|
138
138
|
puts " Code LOC: #{code} Test LOC: #{tests} Code to Test Ratio: 1:#{ratio}"
|
139
139
|
puts ""
|