cover_me 1.0.0.rc3 → 1.0.0.rc4

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.
@@ -20,8 +20,10 @@ class CoverMe::Processor
20
20
  self.coverage_results.map do |filename, coverage|
21
21
  if filename.match(self.options.pattern)
22
22
  report = CoverMe::Report.new(filename, coverage)
23
- self.index.reports << report
24
- self.options[:formatter].format(report)
23
+ if report.exists?
24
+ self.index.reports << report
25
+ self.options[:formatter].format(report)
26
+ end
25
27
  end
26
28
  end
27
29
  self.options[:formatter].format(self.index)
@@ -45,6 +45,10 @@ class CoverMe::Report
45
45
  self.filename <=> other.filename
46
46
  end
47
47
 
48
+ def exists?
49
+ File.exists?(self.original_filename)
50
+ end
51
+
48
52
  # Reads in the original file and returns an <code>Array</code>
49
53
  # representing the lines of that file.
50
54
  def source
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 0
8
8
  - 0
9
- - rc3
10
- version: 1.0.0.rc3
9
+ - rc4
10
+ version: 1.0.0.rc4
11
11
  platform: ruby
12
12
  authors:
13
13
  - markbates
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-21 00:00:00 -04:00
18
+ date: 2010-10-28 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency