simplecov-rcov 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +27 -0
- data/Gemfile +6 -6
- data/Gemfile.lock +8 -14
- data/README.md +49 -5
- data/Rakefile +16 -11
- data/assets/jquery-1.3.2.min.js +19 -0
- data/assets/jquery.tablesorter.min.js +15 -0
- data/assets/print.css +12 -0
- data/assets/rcov.js +42 -0
- data/assets/screen.css +270 -0
- data/lib/simplecov-rcov.rb +114 -13
- data/lib/simplecov-rcov/version.rb +8 -0
- data/simplecov-rcov.gemspec +15 -29
- data/test/fixtures/detail_trs.html +30 -0
- data/test/fixtures/file_tr.html +12 -4
- data/test/fixtures/totals_tr.html +10 -2
- data/test/test_simplecov-rcov.rb +45 -0
- data/views/detail.html.erb +56 -0
- data/views/index.html.erb +88 -0
- metadata +31 -45
- data/views/index.erb.html +0 -45
metadata
CHANGED
@@ -4,58 +4,22 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
|
-
- Fernando Guillen http://fernandoguillen.info
|
12
|
+
- Fernando Guillen http://fernandoguillen.info
|
13
|
+
- Wes Morgan http://github.com/cap10morgan
|
14
|
+
- Wandenberg Peixoto http://github.com/wandenberg
|
13
15
|
autorequire:
|
14
16
|
bindir: bin
|
15
17
|
cert_chain: []
|
16
18
|
|
17
19
|
date: 2011-02-10 00:00:00 +01:00
|
18
20
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
21
|
-
name: simplecov
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
31
|
-
type: :runtime
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: echoe
|
35
|
-
prerelease: false
|
36
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
segments:
|
42
|
-
- 0
|
43
|
-
version: "0"
|
44
|
-
type: :development
|
45
|
-
version_requirements: *id002
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: mocha
|
48
|
-
prerelease: false
|
49
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
segments:
|
55
|
-
- 0
|
56
|
-
version: "0"
|
57
|
-
type: :development
|
58
|
-
version_requirements: *id003
|
21
|
+
dependencies: []
|
22
|
+
|
59
23
|
description: Rcov style formatter for SimpleCov
|
60
24
|
email:
|
61
25
|
- fguillen.mail@gmail.com
|
@@ -68,12 +32,19 @@ extra_rdoc_files:
|
|
68
32
|
- README.md
|
69
33
|
- lib/simplecov-rcov.rb
|
70
34
|
files:
|
35
|
+
- .gitignore
|
71
36
|
- Gemfile
|
72
37
|
- Gemfile.lock
|
73
38
|
- Manifest
|
74
39
|
- README.md
|
75
40
|
- Rakefile
|
41
|
+
- assets/jquery-1.3.2.min.js
|
42
|
+
- assets/jquery.tablesorter.min.js
|
43
|
+
- assets/print.css
|
44
|
+
- assets/rcov.js
|
45
|
+
- assets/screen.css
|
76
46
|
- lib/simplecov-rcov.rb
|
47
|
+
- lib/simplecov-rcov/version.rb
|
77
48
|
- simplecov-rcov.gemspec
|
78
49
|
- test/fixtures/app/controllers/sample.rb
|
79
50
|
- test/fixtures/app/models/airplane.rb
|
@@ -81,12 +52,15 @@ files:
|
|
81
52
|
- test/fixtures/app/models/house.rb
|
82
53
|
- test/fixtures/app/models/robot.rb
|
83
54
|
- test/fixtures/app/models/user.rb
|
55
|
+
- test/fixtures/detail_trs.html
|
84
56
|
- test/fixtures/file_tr.html
|
85
57
|
- test/fixtures/sample.rb
|
86
58
|
- test/fixtures/totals_tr.html
|
87
59
|
- test/helper.rb
|
88
60
|
- test/simplecov-rcov_test.rb
|
89
|
-
-
|
61
|
+
- test/test_simplecov-rcov.rb
|
62
|
+
- views/detail.html.erb
|
63
|
+
- views/index.html.erb
|
90
64
|
has_rdoc: true
|
91
65
|
homepage: http://github.com/fguillen/simplecov-rcov
|
92
66
|
licenses: []
|
@@ -126,4 +100,16 @@ signing_key:
|
|
126
100
|
specification_version: 3
|
127
101
|
summary: Rcov style formatter for SimpleCov
|
128
102
|
test_files:
|
103
|
+
- test/fixtures/app/controllers/sample.rb
|
104
|
+
- test/fixtures/app/models/airplane.rb
|
105
|
+
- test/fixtures/app/models/dog.rb
|
106
|
+
- test/fixtures/app/models/house.rb
|
107
|
+
- test/fixtures/app/models/robot.rb
|
108
|
+
- test/fixtures/app/models/user.rb
|
109
|
+
- test/fixtures/detail_trs.html
|
110
|
+
- test/fixtures/file_tr.html
|
111
|
+
- test/fixtures/sample.rb
|
112
|
+
- test/fixtures/totals_tr.html
|
113
|
+
- test/helper.rb
|
129
114
|
- test/simplecov-rcov_test.rb
|
115
|
+
- test/test_simplecov-rcov.rb
|
data/views/index.erb.html
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
|
5
|
-
<title>SimpleCov - RCov style</title>
|
6
|
-
</head>
|
7
|
-
<body>
|
8
|
-
<h1>SimpleCov - RCov style</h1>
|
9
|
-
|
10
|
-
<div class="report_table_wrapper">
|
11
|
-
<table class='report' id='report_table'>
|
12
|
-
<thead>
|
13
|
-
<tr>
|
14
|
-
<th class="left_align">Name</th>
|
15
|
-
<th class="right_align">Total Lines</th>
|
16
|
-
<th class="right_align">Lines of Code</th>
|
17
|
-
<th class="left_align">Total Coverage</th>
|
18
|
-
<th class="left_align">Code Coverage</th>
|
19
|
-
</tr>
|
20
|
-
</thead>
|
21
|
-
<tfoot>
|
22
|
-
<tr>
|
23
|
-
<td class="left_align">TOTAL</td>
|
24
|
-
<td class='right_align'><tt><%= @total_lines %></tt></td>
|
25
|
-
<td class='right_align'><tt><%= @total_lines_code %></tt></td>
|
26
|
-
<td class="left_align"><tt class=''><%= '%.2f' % @total_coverage %>%</tt></td>
|
27
|
-
<td class="left_align"><tt class='coverage_total'><%= '%.2f' % @total_coverage %>%</tt></td>
|
28
|
-
</tr>
|
29
|
-
</tfoot>
|
30
|
-
<tbody>
|
31
|
-
<% @files.each do |file| %>
|
32
|
-
<tr class="all_files">
|
33
|
-
<td class="left_align"><a href="#<%= file.filename.gsub(SimpleCov.root, '.') %>"><%= file.filename.gsub(SimpleCov.root, '.') %></a></td>
|
34
|
-
<td class='right_align'><tt><%= file.lines.count %></tt></td>
|
35
|
-
<td class='right_align'><tt><%= file.covered_lines.count + file.missed_lines.count %></tt></td>
|
36
|
-
<td class="left_align"><tt class=''><%= '%.2f' % file.covered_percent %>%</tt></td>
|
37
|
-
<td class="left_align"><tt class=''><%= '%.2f' % file.covered_percent %>%</tt></td>
|
38
|
-
</tr>
|
39
|
-
<% end %>
|
40
|
-
</tbody>
|
41
|
-
</table>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
</body>
|
45
|
-
</html>
|