simplecov-html 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -2
- data/VERSION +1 -1
- data/lib/simplecov-html.rb +1 -1
- data/simplecov-html.gemspec +2 -2
- metadata +3 -3
data/Rakefile
CHANGED
@@ -10,8 +10,7 @@ begin
|
|
10
10
|
gem.email = "christoph at olszowka.de"
|
11
11
|
gem.homepage = "http://github.com/colszowka/simplecov-html"
|
12
12
|
gem.authors = ["Christoph Olszowka"]
|
13
|
-
|
14
|
-
gem.add_development_dependency "shoulda", "= 2.10.3"
|
13
|
+
gem.add_development_dependency "shoulda", "2.10.3"
|
15
14
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
16
15
|
end
|
17
16
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.9
|
data/lib/simplecov-html.rb
CHANGED
@@ -60,7 +60,7 @@ class SimpleCov::Formatter::HTMLFormatter
|
|
60
60
|
|
61
61
|
# Computes the coverage based upon lines covered and lines missed
|
62
62
|
def coverage(file_list)
|
63
|
-
return 100.0 if file_list.length == 0
|
63
|
+
return 100.0 if file_list.length == 0 or lines_of_code(file_list) == 0
|
64
64
|
lines_missed = file_list.map {|f| f.missed_lines.count }.inject(&:+)
|
65
65
|
|
66
66
|
lines_covered(file_list) * 100 / lines_of_code(file_list).to_f
|
data/simplecov-html.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{simplecov-html}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Christoph Olszowka"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-11-06}
|
13
13
|
s.description = %q{HTML formatter for SimpleCov code coverage tool for ruby 1.9+}
|
14
14
|
s.email = %q{christoph at olszowka.de}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 9
|
9
|
+
version: 0.3.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Christoph Olszowka
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-11-06 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|