coverband 6.1.1 → 6.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changes.md +4 -0
- data/lib/coverband/version.rb +1 -1
- data/public/application.js +28 -28
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f23312d78597d5a4ccd34a6bd5284f384430ec78a4030ea4cd14e91a54d0226c
|
4
|
+
data.tar.gz: d52ca89becf12d1f2078ce951feda318415494fc2f1fe18a67b3b2514929b91a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cdc25f77daf7adaf94b8010626b4292492dc8660bdd7ab062237cc1fa2eda9f145baaa91e20f18c4e64255285ecc0c471cb6a9d02e073184bcb4857ed342ec2
|
7
|
+
data.tar.gz: 8f7ea9062243e7e7d4fc304ade85e7fe21f4dc93c55140a0640242970af2638374626121f78aa4b07ae0f7ce47af8659d936a0a76b7029d8685d35a5effff21d
|
data/changes.md
CHANGED
data/lib/coverband/version.rb
CHANGED
data/public/application.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
$(document).ready(function() {
|
1
|
+
$(document).ready(function () {
|
2
2
|
// remove the url params like notice=message so they don't stick around
|
3
3
|
window.history.replaceState(
|
4
4
|
"object or string",
|
@@ -9,7 +9,7 @@ $(document).ready(function() {
|
|
9
9
|
.delay(3000)
|
10
10
|
.fadeOut("slow");
|
11
11
|
|
12
|
-
$(".del").click(function() {
|
12
|
+
$(".del").click(function () {
|
13
13
|
if (!confirm("Do you want to delete")) {
|
14
14
|
return false;
|
15
15
|
}
|
@@ -42,7 +42,7 @@ $(document).ready(function() {
|
|
42
42
|
var total_rows = 0;
|
43
43
|
var page = 1;
|
44
44
|
var all_data = [];
|
45
|
-
|
45
|
+
|
46
46
|
// load and render page content before we start the loop
|
47
47
|
// perhaps move this into a datatable ready event
|
48
48
|
$(".dataTables_empty").html("loading...");
|
@@ -55,14 +55,14 @@ $(document).ready(function() {
|
|
55
55
|
url: `${$(".file_list").data("coverageurl")}/report_json?page=${page}`,
|
56
56
|
type: 'GET',
|
57
57
|
dataType: 'json',
|
58
|
-
success: function(data) {
|
58
|
+
success: function (data) {
|
59
59
|
total_rows = data["iTotalRecords"];
|
60
60
|
all_data = all_data.concat(data["aaData"]);
|
61
61
|
$(".dataTables_empty").html("loading... on " + all_data.length + " of " + total_rows + " files");
|
62
62
|
page += 1;
|
63
|
-
|
64
|
-
// the page less than
|
65
|
-
if (page < 50 && all_data.length
|
63
|
+
|
64
|
+
// the page less than 50 is to stop infinite loop in case of folks never clearing out old coverage reports
|
65
|
+
if (page < 50 && all_data.length <= total_rows && data["aaData"].length > 0) {
|
66
66
|
setTimeout(() => {
|
67
67
|
get_page(page);
|
68
68
|
}, 10);
|
@@ -81,28 +81,28 @@ $(document).ready(function() {
|
|
81
81
|
}
|
82
82
|
|
83
83
|
src_link_click = (trigger_element) => {
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
84
|
+
var loader_url = $(trigger_element).attr("data-loader-url");
|
85
|
+
auto_click_anchor = null;
|
86
|
+
$(trigger_element).colorbox(jQuery.extend(colorbox_options, { href: loader_url }));
|
87
|
+
};
|
88
88
|
|
89
89
|
var colorbox_options = {
|
90
90
|
transition: "none",
|
91
91
|
opacity: 1,
|
92
92
|
width: "95%",
|
93
93
|
height: "95%",
|
94
|
-
onLoad: function() {
|
94
|
+
onLoad: function () {
|
95
95
|
// If not highlighted yet, do it!
|
96
96
|
var source_table = $(".shared_source_table");
|
97
97
|
if (!source_table.hasClass("highlighted")) {
|
98
|
-
source_table.find("pre code").each(function(i, e) {
|
98
|
+
source_table.find("pre code").each(function (i, e) {
|
99
99
|
hljs.highlightBlock(e, " ");
|
100
100
|
});
|
101
101
|
source_table.addClass("highlighted");
|
102
102
|
}
|
103
103
|
window.location.hash = this.href.split("#")[1];
|
104
104
|
},
|
105
|
-
onCleanup: function() {
|
105
|
+
onCleanup: function () {
|
106
106
|
window.location.hash = $(".group_tabs a:first").attr("href");
|
107
107
|
}
|
108
108
|
}
|
@@ -112,7 +112,7 @@ $(document).ready(function() {
|
|
112
112
|
$(".file_list_container").hide();
|
113
113
|
|
114
114
|
// Add tabs based upon existing file_list_containers
|
115
|
-
$(".file_list_container h2").each(function() {
|
115
|
+
$(".file_list_container h2").each(function () {
|
116
116
|
var container_id = $(this)
|
117
117
|
.parent()
|
118
118
|
.attr("id");
|
@@ -132,16 +132,16 @@ $(document).ready(function() {
|
|
132
132
|
|
133
133
|
$(".group_tabs").append(
|
134
134
|
'<li><a href="#' +
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
135
|
+
container_id +
|
136
|
+
'">' +
|
137
|
+
group_name +
|
138
|
+
" " +
|
139
|
+
covered_percent +
|
140
|
+
"</a></li>"
|
141
141
|
);
|
142
142
|
});
|
143
143
|
|
144
|
-
$(".group_tabs a").each(function() {
|
144
|
+
$(".group_tabs a").each(function () {
|
145
145
|
$(this).addClass(
|
146
146
|
$(this)
|
147
147
|
.attr("href")
|
@@ -150,12 +150,12 @@ $(document).ready(function() {
|
|
150
150
|
});
|
151
151
|
|
152
152
|
// Make sure tabs don't get ugly focus borders when active
|
153
|
-
$(".group_tabs a").live("focus", function() {
|
153
|
+
$(".group_tabs a").live("focus", function () {
|
154
154
|
$(this).blur();
|
155
155
|
});
|
156
156
|
|
157
157
|
var favicon_path = $('link[rel="shortcut icon"]').attr("href");
|
158
|
-
$(".group_tabs a").live("click", function() {
|
158
|
+
$(".group_tabs a").live("click", function () {
|
159
159
|
if (
|
160
160
|
!$(this)
|
161
161
|
.parent()
|
@@ -169,7 +169,7 @@ $(document).ready(function() {
|
|
169
169
|
.addClass("active");
|
170
170
|
}
|
171
171
|
$(".file_list_container").hide();
|
172
|
-
$(".file_list_container" + $(this).attr("href")).show(function() {
|
172
|
+
$(".file_list_container" + $(this).attr("href")).show(function () {
|
173
173
|
// If we have an anchor to click, click it
|
174
174
|
// allow rendering to complete before we click the anchor
|
175
175
|
setTimeout(() => {
|
@@ -186,14 +186,14 @@ $(document).ready(function() {
|
|
186
186
|
.attr("href")
|
187
187
|
.replace("#", "#_");
|
188
188
|
}
|
189
|
-
|
189
|
+
|
190
190
|
// Force favicon reload - otherwise the location change containing anchor would drop the favicon...
|
191
191
|
// Works only on firefox, but still... - Anyone know a better solution to force favicon on local relative file path?
|
192
192
|
$('link[rel="shortcut icon"]').remove();
|
193
193
|
$("head").append(
|
194
194
|
'<link rel="shortcut icon" type="image/png" href="' +
|
195
|
-
|
196
|
-
|
195
|
+
favicon_path +
|
196
|
+
'" />'
|
197
197
|
);
|
198
198
|
return false;
|
199
199
|
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coverband
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-04-
|
12
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: benchmark-ips
|