dial 0.2.7 → 0.2.8

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: 3f835ac5df86b954348701863b833337141174567c9ecb5e0e94d5b0909565de
4
- data.tar.gz: f623e3b6b0b44dab2d0dc9975d04b9c90a519f4a702034d962d524365148040a
3
+ metadata.gz: 19bfdf2001daf27f046fbbe86dded48e29b3a7767f27dc0c58ac538974c2a3c5
4
+ data.tar.gz: 14eb3ae17e0f44ca7a8ae255acbe638994617315c553082116da5508c054b949
5
5
  SHA512:
6
- metadata.gz: '09c6101e6e84370484d6fe459b88f1ea9110f46f672dc248695efc4b6900be4b1de9b3950d7620221ccd97d0214dbd8d58a74e1809fa4ebe268c1b90ae1769c9'
7
- data.tar.gz: b852559a9ff6db963124f688c17fec14db2417267cf8d27cd7a03aaf504d8bfdd9ab89a64d773dd7525f9365f0c7b07696f551059659f04ae45640f163379b18
6
+ metadata.gz: 2056093faecc6ae4a4ebe06d5be246dc827de55bcb6a581f6292352be7aaea6696ac50caff4ef93890e9386831e2d73e51b7cdd0de8113ef6ecabb3aea394e1c
7
+ data.tar.gz: ca02931129b881993ec70a3a8ed1ca26770532675d0480dce6d31740973c2d8322e82222952be6cfd5eec6d05b5ad5bd5b2c46b2088d886ddf16579e75869605
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.8] - 2025-04-11
4
+
5
+ - Fix redeclaration of JS constants
6
+
3
7
  ## [0.2.7] - 2025-04-05
4
8
 
5
9
  - Prevent style inheritance in panel
data/README.md CHANGED
@@ -9,7 +9,7 @@ Utilizes [vernier](https://github.com/jhawthorn/vernier) for profiling and
9
9
  [prosopite](https://github.com/charkost/prosopite) for N+1 query detection.
10
10
 
11
11
  > [!NOTE]
12
- > Check out the resources in the [Vernier](https://github.com/jhawthorn/vernier) project for more information on how to
12
+ > Check out the resources in the vernier project for more information on how to
13
13
  > interpret the viewer, as well as comparisons with other profilers, including `stackprof`.
14
14
 
15
15
  ![Demo](demo.gif)
@@ -54,7 +54,7 @@ end
54
54
  Option | Description | Default
55
55
  :- | :- | :-
56
56
  `vernier_interval` | Sets the `interval` option for vernier. | `200`
57
- `vernier_allocation_interval` | Sets the `allocation_interval` option for vernier. | `20_000`
57
+ `vernier_allocation_interval` | Sets the `allocation_interval` option for vernier. | `2_000`
58
58
  `prosopite_ignore_queries` | Sets the `ignore_queries` option for prosopite. | `[/schema_migrations/i]`
59
59
  `content_security_policy_nonce` | Sets the content security policy nonce to use when inserting Dial's script. Can be a string, or a Proc which receives `env` and response `headers` as arguments and returns the nonce string. | Rails generated nonce or `nil`
60
60
 
@@ -152,11 +152,11 @@ module Dial
152
152
 
153
153
  def script
154
154
  <<~JS
155
- const dialPreview = document.getElementById("dial-preview");
156
- const dialDetails = document.getElementById("dial-details");
155
+ var dialPreview = document.getElementById("dial-preview");
156
+ var dialDetails = document.getElementById("dial-details");
157
157
 
158
158
  dialPreview.addEventListener("click", () => {
159
- const isCollapsed = ["", "none"].includes(dialDetails.style.display);
159
+ var isCollapsed = ["", "none"].includes(dialDetails.style.display);
160
160
  dialDetails.style.display = isCollapsed ? "block" : "none";
161
161
  });
162
162
 
@@ -164,7 +164,7 @@ module Dial
164
164
  if (!dialPreview.contains(event.target) && !dialDetails.contains(event.target)) {
165
165
  dialDetails.style.display = "none";
166
166
 
167
- const detailsElements = dialDetails.querySelectorAll("details");
167
+ var detailsElements = dialDetails.querySelectorAll("details");
168
168
  detailsElements.forEach(detail => {
169
169
  detail.removeAttribute("open");
170
170
  });
data/lib/dial/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dial
4
- VERSION = "0.2.7"
4
+ VERSION = "0.2.8"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-05 00:00:00.000000000 Z
10
+ date: 2025-04-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: railties