relevance-rcov 0.8.3.3 → 0.8.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -89,7 +89,7 @@ module Rcov
89
89
  :rcov => Rcov,
90
90
  :formatter => self,
91
91
  :output_threshold => @output_threshold,
92
- :file => fileinfo)
92
+ :fileinfo => fileinfo)
93
93
  File.open(destfile, "w") { |f| f.puts doc.render }
94
94
  end
95
95
 
@@ -74,7 +74,7 @@ module Rcov
74
74
  #end
75
75
 
76
76
  def line_css(line_number)
77
- case file.coverage[line_number]
77
+ case fileinfo.coverage[line_number]
78
78
  when true
79
79
  "marked"
80
80
  when :inferred
@@ -29,18 +29,18 @@
29
29
  <tbody>
30
30
  <!-- alternate light/dark here -->
31
31
  <tr class='light'>
32
- <td><%= file.name %></td>
33
- <td class='lines_total'><tt><%= file.num_lines %></tt></td>
34
- <td class='lines_code'><tt><%= file.num_code_lines %></tt></td>
32
+ <td><%= fileinfo.name %></td>
33
+ <td class='lines_total'><tt><%= fileinfo.num_lines %></tt></td>
34
+ <td class='lines_code'><tt><%= fileinfo.num_code_lines %></tt></td>
35
35
  <td>
36
36
  <table cellspacing='0' cellpadding='0' align='right'>
37
37
  <tr>
38
- <td><tt class='coverage_total'><%= "%3.2f" % file.total_coverage_for_report %>%</tt>&nbsp;</td>
38
+ <td><tt class='coverage_total'><%= "%3.2f" % fileinfo.total_coverage_for_report %>%</tt>&nbsp;</td>
39
39
  <td>
40
40
  <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
41
41
  <tr>
42
- <td class='covered' width='<%= file.total_coverage_for_report.round %>'></td>
43
- <td class='uncovered' width='<%= 100 - file.total_coverage_for_report.round %>'></td>
42
+ <td class='covered' width='<%= fileinfo.total_coverage_for_report.round %>'></td>
43
+ <td class='uncovered' width='<%= 100 - fileinfo.total_coverage_for_report.round %>'></td>
44
44
  </tr>
45
45
  </table>
46
46
  </td>
@@ -50,12 +50,12 @@
50
50
  <td>
51
51
  <table cellspacing='0' cellpadding='0' align='right'>
52
52
  <tr>
53
- <td><tt class='coverage_code'><%= "%3.2f" % file.code_coverage_for_report %>%</tt>&nbsp;</td>
53
+ <td><tt class='coverage_code'><%= "%3.2f" % fileinfo.code_coverage_for_report %>%</tt>&nbsp;</td>
54
54
  <td>
55
55
  <table cellspacing='0' class='percent_graph' cellpadding='0' width='100'>
56
56
  <tr>
57
- <td class='covered' width='<%= file.code_coverage_for_report.round %>'/>
58
- <td class='uncovered' width='<%= 100 - file.code_coverage_for_report.round %>'/>
57
+ <td class='covered' width='<%= fileinfo.code_coverage_for_report.round %>'/>
58
+ <td class='uncovered' width='<%= 100 - fileinfo.code_coverage_for_report.round %>'/>
59
59
  </tr>
60
60
  </table>
61
61
  </td>
@@ -63,9 +63,9 @@
63
63
  </table>
64
64
  </td>
65
65
  </tr>
66
- <% file.num_lines.times do |i| %>
67
- <% line = file.lines[i].chomp %>
68
- <% count = file.counts[i] %>
66
+ <% fileinfo.num_lines.times do |i| %>
67
+ <% line = fileinfo.lines[i].chomp %>
68
+ <% count = fileinfo.counts[i] %>
69
69
  <tr class="<%= line_css(i) %>">
70
70
  <td colspan="5"><pre><a name="line<%= i.next %>"></a><%= i.next %> <%= line %></pre></td>
71
71
  </tr>
data/lib/rcov/version.rb CHANGED
@@ -3,9 +3,8 @@
3
3
  # See LEGAL and LICENSE for licensing information.
4
4
 
5
5
  module Rcov
6
- VERSION = "0.8.3.2"
7
- RELEASE_DATE = "2009-05-12"
6
+ VERSION = "0.8.3.4"
7
+ RELEASE_DATE = "2009-06-2"
8
8
  RCOVRT_ABI = [2,0,0]
9
9
  UPSTREAM_URL = "http://github.com/relevance/rcov"
10
-
11
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relevance-rcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3.3
4
+ version: 0.8.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance