cover_me 1.0.0.pre1 → 1.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -34,7 +34,7 @@ After spending a morning playing with it, I was quickly able to grow the idea in
34
34
 
35
35
  CoverMe is pretty easy to use, and has been tested with Ruby 1.9.2 and Rails 3.rc1. First, add CoverMe to your Gemfile:
36
36
 
37
- gem 'cover_me', :require => false, :group => :test
37
+ gem 'cover_me', '>= 1.0.0.pre1', :require => false, :group => :test
38
38
 
39
39
  Now make sure to install the gem with Bundler:
40
40
 
@@ -89,7 +89,7 @@
89
89
  <td class='near'>This file was tested >90%!</td>
90
90
  </tr>
91
91
  <tr>
92
- <td class='miss'>This file was is tested nearly enough!</td>
92
+ <td class='miss'>This file was not tested nearly enough!</td>
93
93
  </tr>
94
94
  </table>
95
95
 
@@ -19,6 +19,22 @@
19
19
 
20
20
  $('#test_file').hide();
21
21
 
22
+ function cleanString(str) {
23
+ return $.trim(str.replace(/<[^(<|>)]+>/gi, ''));
24
+ }
25
+
26
+ $('.line_number').hover(function() {
27
+ $(this).attr('title', 'Line: ' + cleanString($(this).html()));
28
+ });
29
+
30
+ $('.hit_number').hover(function() {
31
+ $(this).attr('title', 'Execution Count: ' + cleanString($(this).html()));
32
+ });
33
+
34
+ $('.code_line').hover(function() {
35
+ $(this).attr('title', cleanString($(this).html()));
36
+ });
37
+
22
38
  });
23
39
  </script>
24
40
  </head>
@@ -74,6 +90,7 @@
74
90
  <td class='code_line'>
75
91
  <pre><%= line.chomp %></pre>
76
92
  </td>
93
+ <td class='hit_number'><%= cov %></td>
77
94
  </tr>
78
95
  <% end %>
79
96
  </table>
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 0
8
8
  - 0
9
- - pre1
10
- version: 1.0.0.pre1
9
+ - pre2
10
+ version: 1.0.0.pre2
11
11
  platform: ruby
12
12
  authors:
13
13
  - markbates
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-13 00:00:00 -04:00
18
+ date: 2010-08-17 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - ">="
86
86
  - !ruby/object:Gem::Version
87
- hash: 3158083893308319108
87
+ hash: -550838265030270521
88
88
  segments:
89
89
  - 0
90
90
  version: "0"