completion-kit 0.5.16 → 0.5.17

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44ca1ebf41c36d1a0db28cd7963d28dce2fad193b58a260bfdef5557208ffd1b
4
- data.tar.gz: 82b93baa3544e4522c8e9f7551d0d23fb51bf22f9b6fab48664862c4cd96a084
3
+ metadata.gz: 4ce9123debaea45400d854ccca1cef4ca1c93a486bb397213f7e7998c8748ca2
4
+ data.tar.gz: 4fc585bef631af5ee454a8e86bfd7cbdf95303d0e100e5405a644b1ca85fae2b
5
5
  SHA512:
6
- metadata.gz: 9c51360d6a20ce128f039953cfcf1c4eff81db63676c034a0e20f1d2506ccc4e8b46ce70137c503ce0c35d4f307f8e912c84363740434667f4f7d3d2c7850efd
7
- data.tar.gz: f8481312aec99fbfee9a5ca4e29fd12da91b3af4196ced84f831133b5b9f55ec4fdbadbca6cb0a853d85fbc002c1c9d916a65cc259e82f5bf7875d531639605e
6
+ metadata.gz: 37321a08941fbdc87e43698a18db78ef3adb100831449e128a5487004e93714ea494361b07a2aec4b55b8b723aae39e0a8c38f5f7b82f377e365269eeb3ffa0c
7
+ data.tar.gz: 8744ac203aeb30e7dceda1fad9cd70b5f1b31c8f4eed156ed66b7ed8e33a8be92955d4d025fbfd313d0c8389c117ca0ac44f551dd7251da4148c00430da75ec4
@@ -3172,10 +3172,11 @@ select.ck-input {
3172
3172
  cursor: pointer;
3173
3173
  }
3174
3174
 
3175
- .ck-metrics-table th:nth-child(1), .ck-metrics-table td:nth-child(1) { width: 16rem; white-space: nowrap; }
3175
+ .ck-metrics-table th:nth-child(1), .ck-metrics-table td:nth-child(1) { width: 18rem; white-space: normal; }
3176
3176
  .ck-metrics-table th:nth-child(2), .ck-metrics-table td:nth-child(2) { width: auto; }
3177
3177
  .ck-metrics-table th:nth-child(3), .ck-metrics-table td:nth-child(3) { width: 16rem; }
3178
3178
  .ck-metrics-table th:nth-child(4), .ck-metrics-table td:nth-child(4) { width: 3rem; }
3179
+ .ck-metrics-table td:nth-child(1) strong { overflow-wrap: anywhere; }
3179
3180
 
3180
3181
  .ck-datasets-table th:nth-child(1), .ck-datasets-table td:nth-child(1) { width: auto; }
3181
3182
  .ck-datasets-table th:nth-child(2), .ck-datasets-table td:nth-child(2) { width: 5rem; white-space: nowrap; }
@@ -180,15 +180,15 @@ module CompletionKit
180
180
  end
181
181
 
182
182
  def ck_run_path(run)
183
- CompletionKit::Engine.routes.url_helpers.run_path(run)
183
+ CompletionKit::Engine.routes.url_helpers.run_path(run, **url_options.except(:host, :protocol, :script_name))
184
184
  end
185
185
 
186
186
  def ck_prompt_path(prompt)
187
- CompletionKit::Engine.routes.url_helpers.prompt_path(prompt)
187
+ CompletionKit::Engine.routes.url_helpers.prompt_path(prompt, **url_options.except(:host, :protocol, :script_name))
188
188
  end
189
189
 
190
190
  def ck_dataset_path(dataset)
191
- CompletionKit::Engine.routes.url_helpers.dataset_path(dataset)
191
+ CompletionKit::Engine.routes.url_helpers.dataset_path(dataset, **url_options.except(:host, :protocol, :script_name))
192
192
  end
193
193
 
194
194
  def ck_format_maybe_json(text)
@@ -28,7 +28,7 @@
28
28
  <% if @run.dataset %>
29
29
  <span class="ck-run-config__dataset">
30
30
  <%= link_to @run.dataset.name, dataset_path(@run.dataset), class: "ck-link" %>
31
- <span class="ck-run-config__dataset-meta"><%= dataset_lines.count %> rows</span>
31
+ <span class="ck-run-config__dataset-meta"><%= @run.dataset.row_count %> rows</span>
32
32
  <button type="button" class="ck-run-config__dataset-preview" onclick="document.getElementById('dataset-preview-<%= @run.id %>').showModal()">Preview</button>
33
33
  </span>
34
34
  <% else %>
@@ -93,7 +93,7 @@
93
93
  <header class="ck-modal__header">
94
94
  <div class="ck-modal__heading">
95
95
  <h2 class="ck-modal__title"><%= @run.dataset.name %></h2>
96
- <span class="ck-modal__meta"><%= dataset_lines.count %> rows</span>
96
+ <span class="ck-modal__meta"><%= @run.dataset.row_count %> rows</span>
97
97
  </div>
98
98
  <button type="button" class="ck-modal__close" aria-label="Close" onclick="this.closest('dialog').close()">×</button>
99
99
  </header>
@@ -1,3 +1,3 @@
1
1
  module CompletionKit
2
- VERSION = "0.5.16"
2
+ VERSION = "0.5.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: completion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.16
4
+ version: 0.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Bastin