cover_me 1.0.0.rc1 → 1.0.0.rc2
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.
@@ -1,10 +1,10 @@
|
|
1
1
|
<html>
|
2
2
|
<head>
|
3
3
|
<title>Coverage Report</title>
|
4
|
-
<link href="
|
5
|
-
<link href="
|
6
|
-
<script src=
|
7
|
-
<script src=
|
4
|
+
<link href="report.css?<%= rand %>" media="screen" rel="stylesheet" type="text/css" />
|
5
|
+
<link href="index.css?<%= rand %>" media="screen" rel="stylesheet" type="text/css" />
|
6
|
+
<script src="jquery.js?<%= rand %>"></script>
|
7
|
+
<script src="jquery.tablesorter.js?<%= rand %>"></script>
|
8
8
|
<script>
|
9
9
|
$(function() {
|
10
10
|
|
@@ -83,10 +83,11 @@
|
|
83
83
|
<th>Legend</th>
|
84
84
|
</tr>
|
85
85
|
<tr>
|
86
|
-
|
86
|
+
<% hit = CoverMe.config.proximity.hit == 100 ? CoverMe.config.proximity.hit : ">#{CoverMe.config.proximity.hit}" %>
|
87
|
+
<td class='hit'>This file was tested <%= hit %>%!</td>
|
87
88
|
</tr>
|
88
89
|
<tr>
|
89
|
-
<td class='near'>This file was tested
|
90
|
+
<td class='near'>This file was tested ><%= CoverMe.config.proximity.near %>%!</td>
|
90
91
|
</tr>
|
91
92
|
<tr>
|
92
93
|
<td class='miss'>This file was not tested nearly enough!</td>
|
@@ -1,8 +1,14 @@
|
|
1
1
|
<html>
|
2
2
|
<head>
|
3
3
|
<title><%= report.filename %></title>
|
4
|
-
|
5
|
-
|
4
|
+
<%
|
5
|
+
root = CoverMe.config.project.root.split(File::SEPARATOR)
|
6
|
+
file = File.dirname(report.filename).split(File::SEPARATOR)
|
7
|
+
diff = file - root
|
8
|
+
rel = (['..'] * diff.count).join(File::SEPARATOR)
|
9
|
+
%>
|
10
|
+
<link href="<%= File.join(rel, "report.css?#{rand}") %>" media="screen" rel="stylesheet" type="text/css" />
|
11
|
+
<script src='<%= File.join(rel, "jquery.js?#{rand}") %>'></script>
|
6
12
|
<script>
|
7
13
|
$(function() {
|
8
14
|
|
@@ -39,7 +45,7 @@
|
|
39
45
|
</script>
|
40
46
|
</head>
|
41
47
|
<body>
|
42
|
-
<h1><a href="<%= File.join(
|
48
|
+
<h1><a href="<%= File.join(rel, "index.html") %>">Coverage Report</a></h1>
|
43
49
|
|
44
50
|
<table cellpadding='0' cellspacing='1'>
|
45
51
|
<tr class='header'>
|
@@ -1,17 +1,5 @@
|
|
1
1
|
require 'rails/generators/base'
|
2
2
|
|
3
|
-
puts 'cover me generator!!'
|
4
|
-
|
5
|
-
# class LayoutGenerator < Rails::Generators::Base
|
6
|
-
# def self.source_root
|
7
|
-
# @_cover_me_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
8
|
-
# end
|
9
|
-
#
|
10
|
-
# def generate_layout
|
11
|
-
# copy_file "cover_me.rake", "lib/tasks/cover_me.rake"
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
|
15
3
|
module CoverMe
|
16
4
|
class InstallGenerator < Rails::Generators::Base #:nodoc:
|
17
5
|
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.0.
|
9
|
+
- rc2
|
10
|
+
version: 1.0.0.rc2
|
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-
|
18
|
+
date: 2010-10-14 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|