code_statistics 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{code_statistics}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Mayer"]
@@ -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 ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Mayer