simplecov-html 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
data/assets/app.js CHANGED
@@ -12,6 +12,7 @@ $(document).ready(function() {
12
12
  null
13
13
  ]
14
14
  });
15
+
15
16
  $('.source_table tbody tr:odd').addClass('odd');
16
17
  $('.source_table tbody tr:even').addClass('even');
17
18
 
@@ -36,6 +37,7 @@ $(document).ready(function() {
36
37
  $(this).blur();
37
38
  });
38
39
 
40
+ var favicon_path = $('link[rel="shortcut icon"]').attr('href')
39
41
  $('.group_tabs a').live('click', function(){
40
42
  if (!$(this).parent().hasClass('active')) {
41
43
  $('.group_tabs a').parent().removeClass('active');
@@ -43,6 +45,11 @@ $(document).ready(function() {
43
45
  $('.file_list_container').hide();
44
46
  $(".file_list_container" + $(this).attr('href')).show();
45
47
  window.location.href = window.location.href.split('#')[0] + $(this).attr('href').replace('#', '#_');
48
+
49
+ // Force favicon reload - otherwise the location change containing anchor would drop the favicon...
50
+ // Works only on firefox, but still... - Anyone know a better solution to force favicon?
51
+ $('link[rel="shortcut icon"]').remove();
52
+ $('head').append('<link rel="shortcut icon" type="image/png" href="'+ favicon_path +'" />');
46
53
  };
47
54
  return false;
48
55
  });
Binary file
@@ -1,4 +1,5 @@
1
1
  require 'erb'
2
+ require 'cgi'
2
3
  require 'fileutils'
3
4
  require 'digest/sha1'
4
5
  require 'time'
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{simplecov-html}
8
- s.version = "0.3.7"
8
+ s.version = "0.3.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
@@ -46,6 +46,7 @@ Gem::Specification.new do |s|
46
46
  "assets/fancybox/fancybox.png",
47
47
  "assets/fancybox/jquery.fancybox-1.3.1.css",
48
48
  "assets/fancybox/jquery.fancybox-1.3.1.pack.js",
49
+ "assets/favicon.png",
49
50
  "assets/jquery-1.4.2.min.js",
50
51
  "assets/jquery.dataTables.min.js",
51
52
  "assets/jquery.timeago.js",
data/views/layout.erb CHANGED
@@ -12,6 +12,8 @@
12
12
  <link href='<%= assets_path('stylesheet.css') %>' media='screen, projection, print' rel='stylesheet' type='text/css'>
13
13
  <link href='<%= assets_path('fancybox/jquery.fancybox-1.3.1.css') %>' media='screen, projection, print' rel='stylesheet' type='text/css'>
14
14
  <link href='<%= assets_path('smoothness/jquery-ui-1.8.4.custom.css') %>' media='screen, projection, print' rel='stylesheet' type='text/css'>
15
+ <link rel="shortcut icon" type="image/png" href="<%= assets_path('favicon.png') %>" />
16
+ <link rel="icon" type="image/png" href="<%= assets_path('favicon.png') %>" />
15
17
  </head>
16
18
 
17
19
  <body>
@@ -21,7 +21,7 @@
21
21
  <pre><%= line.number %></pre>
22
22
  </td>
23
23
  <td>
24
- <pre><%= line.src.chomp %></pre>
24
+ <pre><%= CGI.escapeHTML(line.src.chomp) %></pre>
25
25
  </td>
26
26
  <td class="hits">
27
27
  <%= line.coverage %>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 7
9
- version: 0.3.7
8
+ - 8
9
+ version: 0.3.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christoph Olszowka
@@ -71,6 +71,7 @@ files:
71
71
  - assets/fancybox/fancybox.png
72
72
  - assets/fancybox/jquery.fancybox-1.3.1.css
73
73
  - assets/fancybox/jquery.fancybox-1.3.1.pack.js
74
+ - assets/favicon.png
74
75
  - assets/jquery-1.4.2.min.js
75
76
  - assets/jquery.dataTables.min.js
76
77
  - assets/jquery.timeago.js