simplecov-html 0.5.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. data/.gitignore +2 -1
  2. data/Gemfile +4 -1
  3. data/Guardfile +12 -0
  4. data/README.md +30 -0
  5. data/Rakefile +12 -6
  6. data/assets/{app.js → javascripts/application.js} +4 -0
  7. data/assets/{jquery-1.6.2.min.js → javascripts/libraries/jquery-1.6.2.min.js} +0 -0
  8. data/assets/{highlight.pack.js → javascripts/plugins/highlight.pack.js} +0 -0
  9. data/assets/{jquery.dataTables.min.js → javascripts/plugins/jquery.dataTables.min.js} +0 -0
  10. data/assets/{fancybox → javascripts/plugins}/jquery.fancybox-1.3.1.pack.js +0 -0
  11. data/assets/{jquery.timeago.js → javascripts/plugins/jquery.timeago.js} +0 -0
  12. data/assets/{jquery.url.js → javascripts/plugins/jquery.url.js} +0 -0
  13. data/assets/stylesheets/application.css +3 -0
  14. data/assets/{highlight.css → stylesheets/plugins/highlight.css} +0 -0
  15. data/assets/{smoothness → stylesheets/plugins}/jquery-ui-1.8.4.custom.css +0 -0
  16. data/assets/{fancybox → stylesheets/plugins}/jquery.fancybox-1.3.1.css +0 -0
  17. data/assets/stylesheets/reset.css +103 -0
  18. data/assets/stylesheets/screen.css.sass +220 -0
  19. data/lib/simplecov-html.rb +24 -19
  20. data/lib/simplecov-html/version.rb +1 -1
  21. data/public/application.css +1110 -0
  22. data/public/application.js +626 -0
  23. data/{assets → public}/fancybox/blank.gif +0 -0
  24. data/{assets → public}/fancybox/fancy_close.png +0 -0
  25. data/{assets → public}/fancybox/fancy_loading.png +0 -0
  26. data/{assets → public}/fancybox/fancy_nav_left.png +0 -0
  27. data/{assets → public}/fancybox/fancy_nav_right.png +0 -0
  28. data/{assets → public}/fancybox/fancy_shadow_e.png +0 -0
  29. data/{assets → public}/fancybox/fancy_shadow_n.png +0 -0
  30. data/{assets → public}/fancybox/fancy_shadow_ne.png +0 -0
  31. data/{assets → public}/fancybox/fancy_shadow_nw.png +0 -0
  32. data/{assets → public}/fancybox/fancy_shadow_s.png +0 -0
  33. data/{assets → public}/fancybox/fancy_shadow_se.png +0 -0
  34. data/{assets → public}/fancybox/fancy_shadow_sw.png +0 -0
  35. data/{assets → public}/fancybox/fancy_shadow_w.png +0 -0
  36. data/{assets → public}/fancybox/fancy_title_left.png +0 -0
  37. data/{assets → public}/fancybox/fancy_title_main.png +0 -0
  38. data/{assets → public}/fancybox/fancy_title_over.png +0 -0
  39. data/{assets → public}/fancybox/fancy_title_right.png +0 -0
  40. data/{assets → public}/fancybox/fancybox-x.png +0 -0
  41. data/{assets → public}/fancybox/fancybox-y.png +0 -0
  42. data/{assets → public}/fancybox/fancybox.png +0 -0
  43. data/{assets → public}/favicon_green.png +0 -0
  44. data/{assets → public}/favicon_red.png +0 -0
  45. data/{assets → public}/favicon_yellow.png +0 -0
  46. data/{assets → public}/loading.gif +0 -0
  47. data/{assets → public}/magnify.png +0 -0
  48. data/{assets → public}/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  49. data/{assets → public}/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  50. data/{assets → public}/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  51. data/{assets → public}/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  52. data/{assets → public}/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  53. data/{assets → public}/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  54. data/{assets → public}/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  55. data/{assets → public}/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  56. data/{assets → public}/smoothness/images/ui-icons_222222_256x240.png +0 -0
  57. data/{assets → public}/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  58. data/{assets → public}/smoothness/images/ui-icons_454545_256x240.png +0 -0
  59. data/{assets → public}/smoothness/images/ui-icons_888888_256x240.png +0 -0
  60. data/{assets → public}/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  61. data/simplecov-html.gemspec +2 -0
  62. data/views/file_list.erb +2 -2
  63. data/views/layout.erb +2 -11
  64. metadata +104 -60
  65. data/README.rdoc +0 -20
  66. data/assets/stylesheet.css +0 -383
data/.gitignore CHANGED
@@ -21,5 +21,6 @@ tmtags
21
21
  coverage
22
22
  rdoc
23
23
  pkg
24
+ .sass-cache
24
25
 
25
- ## PROJECT::SPECIFIC
26
+ ## PROJECT::SPECIFIC
data/Gemfile CHANGED
@@ -3,10 +3,13 @@ source :rubygems
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- # Use local copy of simplecov in development when checked out or fetch from git
6
+ # Use local copy of simplecov in development when checked out, fetch from git otherwise
7
7
  if File.directory?(File.dirname(__FILE__) + '/../simplecov')
8
8
  gem 'simplecov', :path => File.dirname(__FILE__) + '/../simplecov'
9
9
  else
10
10
  gem 'simplecov', :git => 'https://github.com/colszowka/simplecov'
11
11
  end
12
+
13
+ gem 'guard-bundler'
14
+ gem 'guard-rake'
12
15
  end
data/Guardfile ADDED
@@ -0,0 +1,12 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'bundler' do
5
+ watch('Gemfile')
6
+ # Uncomment next line if Gemfile contain `gemspec' command
7
+ # watch(/^.+\.gemspec/)
8
+ end
9
+
10
+ guard 'rake', :task => 'assets:compile' do
11
+ watch(%r{^assets\/})
12
+ end
data/README.md ADDED
@@ -0,0 +1,30 @@
1
+ Default HTML formatter for SimpleCov
2
+ ====================================
3
+
4
+ ***Note: To learn more about SimpleCov, check out the main repo at https://github.com/colszowka/simplecov***
5
+
6
+ Generates a nice HTML report of your SimpleCov ruby code coverage results on Ruby 1.9 using client-side Javascript
7
+ quite extensively.
8
+
9
+
10
+ Note on Patches/Pull Requests
11
+ -----------------------------
12
+
13
+ The formatter itself has no actual tests. Instead, it is tested in the cucumber features of simplecov itself. If you
14
+ modify the formatter, please make sure the simplecov test suites still pass by doing the following:
15
+
16
+ * Clone simplecov into the parent directory of your simplecov-html checkout
17
+ * `cd` there, run `bundle`
18
+ * You should end up with all dev dependencies installed and simplecov-html being used from your disk
19
+ * Run the tests (units and features)
20
+
21
+ Please remember to add tests if you add functionality.
22
+
23
+ **Important:** If you modify the JS/CSS assets, you'll have to precompile them using `rake assets:compile` - otherwise,
24
+ your changes will not be included in your coverage reports.
25
+
26
+
27
+ Copyright
28
+ ---------
29
+
30
+ Copyright (c) 2011 Christoph Olszowka. See LICENSE for details.
data/Rakefile CHANGED
@@ -10,9 +10,15 @@ end
10
10
 
11
11
  task :default => :test
12
12
 
13
- require 'rake/rdoctask'
14
- Rake::RDocTask.new do |rdoc|
15
- rdoc.rdoc_dir = 'rdoc'
16
- rdoc.rdoc_files.include('README*')
17
- rdoc.rdoc_files.include('lib/**/*.rb')
18
- end
13
+ namespace :assets do
14
+ desc "Compiles all assets"
15
+ task :compile do
16
+ puts "Compiling assets"
17
+ require 'sprockets'
18
+ assets = Sprockets::Environment.new
19
+ assets.append_path 'assets/javascripts'
20
+ assets.append_path 'assets/stylesheets'
21
+ assets['application.js'].write_to('public/application.js')
22
+ assets['application.css'].write_to('public/application.css')
23
+ end
24
+ end
@@ -1,3 +1,7 @@
1
+ //= require_directory ./libraries/
2
+ //= require_directory ./plugins/
3
+ //= require_self
4
+
1
5
  $(document).ready(function() {
2
6
  // Configuration for fancy sortable tables for source file groups
3
7
  $('.file_list').dataTable({
@@ -0,0 +1,3 @@
1
+ //= require ./reset.css
2
+ //= require_directory ./plugins/
3
+ //= require ./screen.css
@@ -0,0 +1,103 @@
1
+ /* -----------------------------------------------------------------------
2
+
3
+
4
+ Blueprint CSS Framework 0.9
5
+ http://blueprintcss.org
6
+
7
+ * Copyright (c) 2007-Present. See LICENSE for more info.
8
+ * See README for instructions on how to use Blueprint.
9
+ * For credits and origins, see AUTHORS.
10
+ * This is a compressed file. See the sources in the 'src' directory.
11
+
12
+ ----------------------------------------------------------------------- */
13
+
14
+ /* reset.css */
15
+ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, nav, section {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
16
+ article, aside, dialog, figure, footer, header, hgroup, nav, section {display:block;}
17
+ body {line-height:1.5;}
18
+ table {border-collapse:separate;border-spacing:0;}
19
+ caption, th, td {text-align:left;font-weight:normal;}
20
+ table, td, th {vertical-align:middle;}
21
+ blockquote:before, blockquote:after, q:before, q:after {content:"";}
22
+ blockquote, q {quotes:"" "";}
23
+ a img {border:none;}
24
+
25
+ /* typography.css */
26
+ html {font-size:100.01%;}
27
+ body {font-size:82%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
28
+ h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
29
+ h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
30
+ h2 {font-size:2em;margin-bottom:0.75em;}
31
+ h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
32
+ h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
33
+ h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
34
+ h6 {font-size:1em;font-weight:bold;}
35
+ h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
36
+ p {margin:0 0 1.5em;}
37
+ p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
38
+ p img.right {float:right;margin:1.5em 0 1.5em 1.5em;}
39
+ a:focus, a:hover {color:#000;}
40
+ a {color:#009;text-decoration:underline;}
41
+ blockquote {margin:1.5em;color:#666;font-style:italic;}
42
+ strong {font-weight:bold;}
43
+ em, dfn {font-style:italic;}
44
+ dfn {font-weight:bold;}
45
+ sup, sub {line-height:0;}
46
+ abbr, acronym {border-bottom:1px dotted #666;}
47
+ address {margin:0 0 1.5em;font-style:italic;}
48
+ del {color:#666;}
49
+ pre {margin:1.5em 0;white-space:pre;}
50
+ pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
51
+ li ul, li ol {margin:0;}
52
+ ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;}
53
+ ul {list-style-type:disc;}
54
+ ol {list-style-type:decimal;}
55
+ dl {margin:0 0 1.5em 0;}
56
+ dl dt {font-weight:bold;}
57
+ dd {margin-left:1.5em;}
58
+ table {margin-bottom:1.4em;width:100%;}
59
+ th {font-weight:bold;}
60
+ thead th {background:#c3d9ff;}
61
+ th, td, caption {padding:4px 10px 4px 5px;}
62
+ tr.even td {background:#efefef;}
63
+ tfoot {font-style:italic;}
64
+ caption {background:#eee;}
65
+ .small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
66
+ .large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
67
+ .hide {display:none;}
68
+ .quiet {color:#666;}
69
+ .loud {color:#000;}
70
+ .highlight {background:#ff0;}
71
+ .added {background:#060;color:#fff;}
72
+ .removed {background:#900;color:#fff;}
73
+ .first {margin-left:0;padding-left:0;}
74
+ .last {margin-right:0;padding-right:0;}
75
+ .top {margin-top:0;padding-top:0;}
76
+ .bottom {margin-bottom:0;padding-bottom:0;}
77
+
78
+ /* forms.css */
79
+ label {font-weight:bold;}
80
+ fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
81
+ legend {font-weight:bold;font-size:1.2em;}
82
+ input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;}
83
+ input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;}
84
+ input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
85
+ input.text, input.title {width:300px;padding:5px;}
86
+ input.title {font-size:1.5em;}
87
+ textarea {width:390px;height:250px;padding:5px;}
88
+ input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;}
89
+ form.inline {line-height:3;}
90
+ form.inline p {margin-bottom:0;}
91
+ .error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;}
92
+ .error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;}
93
+ .notice {background:#FFF6BF;color:#514721;border-color:#FFD324;}
94
+ .success {background:#E6EFC2;color:#264409;border-color:#C6D880;}
95
+ .error a {color:#8a1f11;}
96
+ .notice a {color:#514721;}
97
+ .success a {color:#264409;}
98
+ .box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;}
99
+ hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;}
100
+ hr.space {background:#fff;color:#fff;visibility:hidden;}
101
+ .clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
102
+ .clearfix, .container {display:block;}
103
+ .clear {clear:both;}
@@ -0,0 +1,220 @@
1
+ #loading
2
+ position: fixed
3
+ left: 40%
4
+ top: 50%
5
+
6
+ a
7
+ color: #333
8
+ text-decoration: none
9
+ &:hover
10
+ color: #000
11
+ text-decoration: underline
12
+
13
+ body
14
+ font-family: "Lucida Grande", Helvetica, "Helvetica Neue", Arial, sans-serif
15
+ padding: 12px
16
+ background-color: #333
17
+
18
+ h1, h2, h3, h4
19
+ color: #1C2324
20
+ margin: 0
21
+ padding: 0
22
+ margin-bottom: 12px
23
+
24
+ table
25
+ width: 100%
26
+
27
+ #content
28
+ clear: left
29
+ background-color: white
30
+ border: 2px solid #ddd
31
+ border-top: 8px solid #ddd
32
+ padding: 18px
33
+ -webkit-border-bottom-left-radius: 5px
34
+ -webkit-border-bottom-right-radius: 5px
35
+ -webkit-border-top-right-radius: 5px
36
+ -moz-border-radius-bottomleft: 5px
37
+ -moz-border-radius-bottomright: 5px
38
+ -moz-border-radius-topright: 5px
39
+ border-bottom-left-radius: 5px
40
+ border-bottom-right-radius: 5px
41
+ border-top-right-radius: 5px
42
+
43
+ .dataTables_filter, .dataTables_info
44
+ padding: 2px 6px
45
+
46
+ abbr.timeago
47
+ text-decoration: none
48
+ border: none
49
+ font-weight: bold
50
+
51
+ .timestamp
52
+ float: right
53
+ color: #ddd
54
+
55
+ .group_tabs
56
+ list-style: none
57
+ float: left
58
+ margin: 0
59
+ padding: 0
60
+ li
61
+ display: inline
62
+ float: left
63
+ a
64
+ font-family: Helvetica, Arial, sans-serif
65
+ display: block
66
+ float: left
67
+ text-decoration: none
68
+ padding: 4px 8px
69
+ background-color: #aaa
70
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(#dddddd), to(#aaaaaa))
71
+ background: -moz-linear-gradient(#dddddd, #aaaaaa)
72
+ background: linear-gradient(#dddddd, #aaaaaa)
73
+ text-shadow: #e5e5e5 1px 1px 0px
74
+ border-bottom: none
75
+ color: #333
76
+ font-weight: bold
77
+ margin-right: 8px
78
+ border-top: 1px solid #efefef
79
+ -webkit-border-top-left-radius: 2px
80
+ -webkit-border-top-right-radius: 2px
81
+ -moz-border-radius-topleft: 2px
82
+ -moz-border-radius-topright: 2px
83
+ border-top-left-radius: 2px
84
+ border-top-right-radius: 2px
85
+ &:hover
86
+ background-color: #ccc
87
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(#eeeeee), to(#aaaaaa))
88
+ background: -moz-linear-gradient(#eeeeee, #aaaaaa)
89
+ background: linear-gradient(#eeeeee, #aaaaaa)
90
+ &:active
91
+ padding-top: 5px
92
+ padding-bottom: 3px
93
+ &.active a
94
+ color: black
95
+ text-shadow: #fff 1px 1px 0px
96
+ background-color: #ddd
97
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(white), to(#dddddd))
98
+ background: -moz-linear-gradient(white, #dddddd)
99
+ background: linear-gradient(white, #dddddd)
100
+
101
+ .file_list
102
+ margin-bottom: 18px
103
+
104
+ a.src_link
105
+ background: url('./magnify.png') no-repeat left 50%
106
+ padding-left: 18px
107
+
108
+ tr, td
109
+ margin: 0
110
+ padding: 0
111
+
112
+ th
113
+ white-space: nowrap
114
+ &.ui-state-default
115
+ cursor: pointer
116
+ span.ui-icon
117
+ float: left
118
+
119
+ td
120
+ padding: 4px 8px
121
+ &.strong
122
+ font-weight: bold
123
+
124
+ .source_table
125
+ h3, h4
126
+ padding: 0
127
+ margin: 0
128
+ margin-bottom: 4px
129
+ .header
130
+ padding: 10px
131
+ pre
132
+ margin: 0
133
+ padding: 0
134
+ white-space: normal
135
+ color: #000
136
+ font-family: "Monaco", "Inconsolata", "Consolas", monospace
137
+ code
138
+ color: #000
139
+ font-family: "Monaco", "Inconsolata", "Consolas", monospace
140
+ pre
141
+ background-color: #333
142
+ ol
143
+ margin: 0px
144
+ padding: 0px
145
+ margin-left: 45px
146
+ font-size: 12px
147
+ color: white
148
+ li
149
+ margin: 0px
150
+ padding: 2px 6px
151
+ border-left: 5px solid white
152
+ code
153
+ white-space: pre
154
+ white-space: pre-wrap
155
+ .hits
156
+ float: right
157
+ margin-left: 10px
158
+ padding: 2px 4px
159
+ background-color: #444
160
+ background: -webkit-gradient(linear, 0 0, 0 bottom, from(#222222), to(#666666))
161
+ background: -moz-linear-gradient(#222222, #666666)
162
+ background: linear-gradient(#222222, #666666)
163
+ color: white
164
+ font-family: Helvetica, "Helvetica Neue", Arial, sans-serif
165
+ font-size: 10px
166
+ font-weight: bold
167
+ text-align: center
168
+ border-radius: 6px
169
+
170
+ #footer
171
+ color: #ddd
172
+ font-size: 12px
173
+ font-weight: bold
174
+ margin-top: 12px
175
+ text-align: right
176
+ a
177
+ color: #eee
178
+ text-decoration: underline
179
+ &:hover
180
+ color: #fff
181
+ text-decoration: none
182
+
183
+ .green
184
+ color: #090
185
+
186
+ .red
187
+ color: #900
188
+
189
+ .yellow
190
+ color: #da0
191
+
192
+ .source_table
193
+ .covered
194
+ border-color: #090
195
+ .missed
196
+ border-color: #900
197
+ .never
198
+ border-color: black
199
+ .skipped
200
+ border-color: #fc0
201
+ .covered
202
+ &:nth-child(odd)
203
+ background-color: #CDF2CD
204
+ &:nth-child(even)
205
+ background-color: #DBF2DB
206
+ .missed
207
+ &:nth-child(odd)
208
+ background-color: #F7C0C0
209
+ &:nth-child(even)
210
+ background-color: #F7CFCF
211
+ .never
212
+ &:nth-child(odd)
213
+ background-color: #efefef
214
+ &:nth-child(even)
215
+ background-color: #f4f4f4
216
+ .skipped
217
+ &:nth-child(odd)
218
+ background-color: #FBF0C0
219
+ &:nth-child(even)
220
+ background-color: #FBFfCf