dial 0.2.7 → 0.2.9

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: 2a57407973b1542535078ec0688bf10ae767acfe0b50b6e6a95374e7b595e9ce
4
+ data.tar.gz: 164e521cbd64295baee46891e67d01b8e9893b00d876dbc5d8431d9d64c6971d
5
5
  SHA512:
6
- metadata.gz: '09c6101e6e84370484d6fe459b88f1ea9110f46f672dc248695efc4b6900be4b1de9b3950d7620221ccd97d0214dbd8d58a74e1809fa4ebe268c1b90ae1769c9'
7
- data.tar.gz: b852559a9ff6db963124f688c17fec14db2417267cf8d27cd7a03aaf504d8bfdd9ab89a64d773dd7525f9365f0c7b07696f551059659f04ae45640f163379b18
6
+ metadata.gz: 497288fd60e67bfdf8d0cda035d781feeb59cc9605f1002f6d30bb7e5613c59d40b690f4750e11882f7f2feecb4baf71536c95deb6ae1b4dfa42e4fce4d1a223
7
+ data.tar.gz: b486a6b420d89312f1733286e4b3f559d5c8026af45562675003ccba179cab9e997dfd02e281669d9b3ccf5ca8d5108daf8bfce4992ae2d88ef611cbf35dee47
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.9] - 2025-04-11
4
+
5
+ - No changes
6
+
7
+ ## [0.2.8] - 2025-04-11
8
+
9
+ - Fix redeclaration of JS constants
10
+
3
11
  ## [0.2.7] - 2025-04-05
4
12
 
5
13
  - 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.9"
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.9
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: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: railties
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubygems_version: 3.6.2
140
+ rubygems_version: 3.6.7
141
141
  specification_version: 4
142
142
  summary: A modern profiler for your Rails application
143
143
  test_files: []