coverband 6.0.3.rc.1 → 6.0.3.rc.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coverband/version.rb +1 -1
- data/public/application.js +3 -2
- data/views/file_list.erb +1 -1
- 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: 4ed82514a858dae89f9a09ec1e1cfb089a9356a1445c4ce930121bb9d8661fc1
|
4
|
+
data.tar.gz: 3d51eab417e906fbda76b6b94b7f23e000c0f971b7de2a96c9e3adb6fa26616d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a63814d8eb4133fa82990fc7207ee9dce27b9f3b9f09658f34d1904706ec29d2110d15b11461ebbd4c2f5e5b0b7b1e0d8c6575f8daa7d4a06d2b460f2a0aa44
|
7
|
+
data.tar.gz: 5fcb0ba39f83744b54d97a68318db91686ea5beb2e15a773802a46446afa9ba5b1f892c22add88c11d26ba33f617ad3a276f95cddad37997e8ea0930970b880f
|
data/lib/coverband/version.rb
CHANGED
data/public/application.js
CHANGED
@@ -35,6 +35,8 @@ $(document).ready(function() {
|
|
35
35
|
|
36
36
|
// TODO: add support for searching...
|
37
37
|
// hmm should I just use manual paging? or load more...
|
38
|
+
// best docs on our version of datatables 1.7 https://datatables.net/beta/1.7/examples/server_side/server_side.html
|
39
|
+
// TODO: fix bug where we hardcoded /coverage we need to pull it from the path it is mounted on
|
38
40
|
if ($(".file_list.unsorted").length == 1) {
|
39
41
|
var current_rows = 0;
|
40
42
|
var total_rows = 0;
|
@@ -43,11 +45,10 @@ $(document).ready(function() {
|
|
43
45
|
// write a function to get a page of data and add it to the table
|
44
46
|
function get_page(page) {
|
45
47
|
$.ajax({
|
46
|
-
url:
|
48
|
+
url: `${$(".file_list").data("coverageurl")}/report_json?page=${page}`,
|
47
49
|
type: 'GET',
|
48
50
|
dataType: 'json',
|
49
51
|
success: function(data) {
|
50
|
-
console.log(data);
|
51
52
|
total_rows = data["iTotalRecords"];
|
52
53
|
// NOTE: we request 250 at a time, but we seem to have some files that we have as a list but 0 coverage,
|
53
54
|
// so we don't get back 250 per page... to ensure we we need to account for filtered out and empty files
|
data/views/file_list.erb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
<span class="red"><b><%= source_files.missed_lines %></b> lines missed </span>
|
23
23
|
<% end %>
|
24
24
|
</div>
|
25
|
-
<table class="file_list <%= page ? "unsorted" : "sorted" %>">
|
25
|
+
<table class="file_list <%= page ? "unsorted" : "sorted" %>" data-coverageurl="<%= base_path %>">
|
26
26
|
<thead>
|
27
27
|
<tr>
|
28
28
|
<th title="The source file name">File</th>
|
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.0.3.rc.
|
4
|
+
version: 6.0.3.rc.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-
|
12
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: benchmark-ips
|