coco 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTORS +9 -0
  3. data/Changelog.markdown +42 -0
  4. data/Gemfile.lock +36 -55
  5. data/LICENSE +7 -0
  6. data/README.markdown +124 -73
  7. data/Rakefile +10 -37
  8. data/VERSION +1 -1
  9. data/lib/coco.rb +9 -21
  10. data/lib/coco/configuration.rb +59 -20
  11. data/lib/coco/cover.rb +1 -0
  12. data/lib/coco/cover/coverage_result.rb +72 -16
  13. data/lib/coco/cover/coverage_stat.rb +20 -8
  14. data/lib/coco/cover/summary.rb +50 -0
  15. data/lib/coco/deprecated_message.rb +31 -0
  16. data/lib/coco/formatter.rb +2 -2
  17. data/lib/coco/formatter/colored_string.rb +1 -1
  18. data/lib/coco/formatter/console_formatter.rb +24 -19
  19. data/lib/coco/formatter/context.rb +10 -39
  20. data/lib/coco/formatter/html_formatter.rb +7 -13
  21. data/lib/coco/formatter/html_index_formatter.rb +20 -16
  22. data/lib/coco/formatter/index_context.rb +37 -0
  23. data/lib/coco/formatter/index_line.rb +21 -0
  24. data/lib/coco/formatter/template.rb +2 -3
  25. data/lib/coco/helpers.rb +88 -68
  26. data/lib/coco/lister/source_lister.rb +23 -26
  27. data/lib/coco/lister/uncovered_lister.rb +6 -9
  28. data/lib/coco/project.rb +65 -0
  29. data/lib/coco/theme.rb +15 -0
  30. data/lib/coco/writer/file_writer.rb +5 -5
  31. data/lib/coco/writer/html_directory.rb +16 -8
  32. data/lib/coco/writer/html_files_writer.rb +9 -6
  33. data/lib/coco/writer/html_index_writer.rb +6 -3
  34. data/template/css/dark.css +178 -0
  35. data/template/css/{coco.css → light.css} +22 -9
  36. data/template/file.erb +3 -3
  37. data/template/index.erb +35 -33
  38. data/template/js/coco.js +18 -0
  39. metadata +34 -58
  40. data/COPYING +0 -674
  41. data/lib/coco/formatter/formatter.rb +0 -23
  42. data/template/img/coconut16.png +0 -0
  43. 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
Binary file
@@ -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