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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f25f2799e62201b31472588ed6ee3d00697b6ab8eba5beb04c3a76cb7e52d962
4
- data.tar.gz: 599a0d1a4ef26b9b353d4ae341db2287f15b5119b9d9d3ed3d2b0e796c6e1fae
3
+ metadata.gz: 4ed82514a858dae89f9a09ec1e1cfb089a9356a1445c4ce930121bb9d8661fc1
4
+ data.tar.gz: 3d51eab417e906fbda76b6b94b7f23e000c0f971b7de2a96c9e3adb6fa26616d
5
5
  SHA512:
6
- metadata.gz: b58f4486c028a9ed4f2e3444ed164a43b620b4cc213f91e9b7aef93c2ef1c394840aade62466b216f29ade57851314989e0ed3f3bca2a7f692deddd106efe7a3
7
- data.tar.gz: 6569ffaeb15feb24b4eb40d5e0403bcf4fcc6fc381a7fd30e64a9e6a7fee06498e05ffe2832c7a99545c51a8b25a12cf6264daf672ef82485ccf10e03a3895a3
6
+ metadata.gz: 1a63814d8eb4133fa82990fc7207ee9dce27b9f3b9f09658f34d1904706ec29d2110d15b11461ebbd4c2f5e5b0b7b1e0d8c6575f8daa7d4a06d2b460f2a0aa44
7
+ data.tar.gz: 5fcb0ba39f83744b54d97a68318db91686ea5beb2e15a773802a46446afa9ba5b1f892c22add88c11d26ba33f617ad3a276f95cddad37997e8ea0930970b880f
@@ -5,5 +5,5 @@
5
5
  # use format "4.2.1.rc.1" ~> 4.2.1.rc to prerelease versions like v4.2.1.rc.2 and v4.2.1.rc.3
6
6
  ###
7
7
  module Coverband
8
- VERSION = "6.0.3.rc.1"
8
+ VERSION = "6.0.3.rc.2"
9
9
  end
@@ -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: `/coverage/report_json?page=${page}`,
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.1
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-02-28 00:00:00.000000000 Z
12
+ date: 2024-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: benchmark-ips