coco 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -0,0 +1,19 @@
1
+ License of coconut.png
2
+ ======================
3
+
4
+ You are free:
5
+
6
+ to Share — to copy, distribute and transmit the work
7
+ Under the following conditions:
8
+
9
+ Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
10
+
11
+ Noncommercial. You may not use this work for commercial purposes.
12
+
13
+ No Derivative Works. You may not alter, transform, or build upon this work.
14
+
15
+ For futher information about the copyright see: http://www.creativecommons.org/licenses/by-nc-nd/3.0/
16
+
17
+ © Copyright Kevin Andersson August 2007
18
+ www.kevinandersson.dk
19
+ 941
@@ -0,0 +1,58 @@
1
+ <html>
2
+ <head>
3
+ <meta charset='utf-8'>
4
+ <title><%= @title %></title>
5
+ <link rel="stylesheet" href="css/coco.css" type="text/css" />
6
+ </head>
7
+ <body>
8
+ <p class="menu">
9
+ <a href="index.html">Index</a> <img src="img/coconut16.png" width="16" height="16" />
10
+ <a href="https://github.com/lkdjiin/coco/wiki">Wiki</a> <img src="img/coconut16.png" width="16" height="16" />
11
+ <a href="https://github.com/lkdjiin/coco">Source</a> <img src="img/coconut16.png" width="16" height="16" />
12
+ <a href="#">Web site</a>
13
+ </p>
14
+ <h2><%= @title %></h2>
15
+ <p class="date">
16
+ <%= "#{Time.now}" %>
17
+ </p>
18
+ <table>
19
+
20
+ <% @uncovered.each do |filename| %>
21
+ <%= "<tr><td class=\"black\">0%</td><td>#{filename}</td></tr>\n" %>
22
+ <% end %>
23
+
24
+ <% @covered.each do |percentage, filename, href| %>
25
+ <tr>
26
+ <% if percentage > 80 %>
27
+ <td class ="yellow">
28
+ <% elsif percentage > 70 %>
29
+ <td class="orange">
30
+ <% elsif percentage > 50 %>
31
+ <td class="pink">
32
+ <% else %>
33
+ <td class="red">
34
+ <% end %>
35
+ <%= "#{percentage}%</td><td><a href=\"#{href}\">#{filename}</a></td></tr>\n" %>
36
+ <% end%>
37
+
38
+ </table>
39
+
40
+ <p class="license">
41
+ Coco, code coverage for ruby.<br/>
42
+ Copyright 2011, Xavier Nayrac<br/>
43
+ <br/>
44
+ This program is free software: you can redistribute it and/or modify<br/>
45
+ it under the terms of the GNU General Public License as published by<br/>
46
+ the Free Software Foundation, either version 3 of the License, or<br/>
47
+ (at your option) any later version.<br/>
48
+ <br/>
49
+ This program is distributed in the hope that it will be useful,<br/>
50
+ but WITHOUT ANY WARRANTY; without even the implied warranty of<br/>
51
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br/>
52
+ GNU General Public License for more details.<br/>
53
+ <br/>
54
+ You should have received a copy of the GNU General Public License<br/>
55
+ along with this program. If not, see http://www.gnu.org/licenses/.<br/>
56
+ </p>
57
+ </body>
58
+ </html>
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: coco
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 4
8
+ - 1
9
+ version: 0.4.1
10
+ platform: ruby
11
+ authors:
12
+ - Xavier Nayrac
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-02-27 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: |-
22
+ "Another code coverage tool for ruby 1.9
23
+ (from the famous post of Aaron Patterson).
24
+ This one suits my needs:
25
+ * Use it from rspec with a simple <code>require 'coco'</code>
26
+ * Display filenames covered < 90% on console
27
+ * Build simple html report only for files covered < 90%
28
+ * Report sources that have no tests
29
+ * UTF-8 compliant
30
+ * Configuration could be done via a simple yaml file
31
+ * Colorized console output (*nix only)
32
+ email: xavier.nayrac@gmail.com
33
+ executables: []
34
+
35
+ extensions: []
36
+
37
+ extra_rdoc_files: []
38
+
39
+ files:
40
+ - lib/coco/formatter.rb
41
+ - lib/coco/writer/html_index_writer.rb
42
+ - lib/coco/writer/file_writer.rb
43
+ - lib/coco/writer/html_directory.rb
44
+ - lib/coco/writer/html_files_writer.rb
45
+ - lib/coco/writer.rb
46
+ - lib/coco/cover.rb
47
+ - lib/coco/formatter/formatter.rb
48
+ - lib/coco/formatter/html_formatter.rb
49
+ - lib/coco/formatter/html_index_formatter.rb
50
+ - lib/coco/formatter/context.rb
51
+ - lib/coco/formatter/template.rb
52
+ - lib/coco/formatter/console_formatter.rb
53
+ - lib/coco/formatter/colored_string.rb
54
+ - lib/coco/lister.rb
55
+ - lib/coco/helpers.rb
56
+ - lib/coco/cover/coverage_stat.rb
57
+ - lib/coco/cover/coverage_result.rb
58
+ - lib/coco/lister/uncovered_lister.rb
59
+ - lib/coco/lister/source_lister.rb
60
+ - lib/coco/configuration.rb
61
+ - lib/coco.rb
62
+ - template/index.erb
63
+ - template/img/coconut16.png
64
+ - template/img/licenses
65
+ - template/css/base-min.css
66
+ - template/css/ext.css
67
+ - template/css/reset-min.css
68
+ - template/css/fonts-min.css
69
+ - template/css/coco.css
70
+ - template/css/LICENCE
71
+ - template/file.erb
72
+ - README.rdoc
73
+ - TODO
74
+ - NEWS
75
+ - VERSION
76
+ - COPYING
77
+ - Rakefile
78
+ has_rdoc: true
79
+ homepage: http://lkdjiin.github.com/coco/
80
+ licenses:
81
+ - GPL-3
82
+ post_install_message:
83
+ rdoc_options: []
84
+
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ segments:
93
+ - 1
94
+ - 9
95
+ - 2
96
+ version: 1.9.2
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ segments:
103
+ - 0
104
+ version: "0"
105
+ requirements: []
106
+
107
+ rubyforge_project:
108
+ rubygems_version: 1.3.7
109
+ signing_key:
110
+ specification_version: 3
111
+ summary: Code coverage tool for ruby 1.9.
112
+ test_files: []
113
+