coco 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTORS +9 -0
- data/Changelog.markdown +42 -0
- data/Gemfile.lock +36 -55
- data/LICENSE +7 -0
- data/README.markdown +124 -73
- data/Rakefile +10 -37
- data/VERSION +1 -1
- data/lib/coco.rb +9 -21
- data/lib/coco/configuration.rb +59 -20
- data/lib/coco/cover.rb +1 -0
- data/lib/coco/cover/coverage_result.rb +72 -16
- data/lib/coco/cover/coverage_stat.rb +20 -8
- data/lib/coco/cover/summary.rb +50 -0
- data/lib/coco/deprecated_message.rb +31 -0
- data/lib/coco/formatter.rb +2 -2
- data/lib/coco/formatter/colored_string.rb +1 -1
- data/lib/coco/formatter/console_formatter.rb +24 -19
- data/lib/coco/formatter/context.rb +10 -39
- data/lib/coco/formatter/html_formatter.rb +7 -13
- data/lib/coco/formatter/html_index_formatter.rb +20 -16
- data/lib/coco/formatter/index_context.rb +37 -0
- data/lib/coco/formatter/index_line.rb +21 -0
- data/lib/coco/formatter/template.rb +2 -3
- data/lib/coco/helpers.rb +88 -68
- data/lib/coco/lister/source_lister.rb +23 -26
- data/lib/coco/lister/uncovered_lister.rb +6 -9
- data/lib/coco/project.rb +65 -0
- data/lib/coco/theme.rb +15 -0
- data/lib/coco/writer/file_writer.rb +5 -5
- data/lib/coco/writer/html_directory.rb +16 -8
- data/lib/coco/writer/html_files_writer.rb +9 -6
- data/lib/coco/writer/html_index_writer.rb +6 -3
- data/template/css/dark.css +178 -0
- data/template/css/{coco.css → light.css} +22 -9
- data/template/file.erb +3 -3
- data/template/index.erb +35 -33
- data/template/js/coco.js +18 -0
- metadata +34 -58
- data/COPYING +0 -674
- data/lib/coco/formatter/formatter.rb +0 -23
- data/template/img/coconut16.png +0 -0
- data/template/img/licenses +0 -19
@@ -1,23 +0,0 @@
|
|
1
|
-
module Coco
|
2
|
-
|
3
|
-
# My childs will format coverages information.
|
4
|
-
# Kind of abstract class, my childs must implements the `format`
|
5
|
-
# method.
|
6
|
-
class Formatter
|
7
|
-
|
8
|
-
# raw_coverages - The Hash from Coverage.result. Keys are filenames
|
9
|
-
# and values are an Array representing each lines of
|
10
|
-
# the file :
|
11
|
-
# + nil : Unreacheable (comments, etc).
|
12
|
-
# + 0 : Not hit.
|
13
|
-
# + 1 or more : Number of hits.
|
14
|
-
# uncovered - An Array list of uncovered files.
|
15
|
-
#
|
16
|
-
# TODO I think covered is a better name than raw_coverages
|
17
|
-
def initialize(raw_coverages, uncovered)
|
18
|
-
@raw_coverages = raw_coverages
|
19
|
-
@uncovered = uncovered
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
data/template/img/coconut16.png
DELETED
Binary file
|
data/template/img/licenses
DELETED
@@ -1,19 +0,0 @@
|
|
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
|