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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/dial/middleware/panel.rb +4 -4
- data/lib/dial/version.rb +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: 19bfdf2001daf27f046fbbe86dded48e29b3a7767f27dc0c58ac538974c2a3c5
|
4
|
+
data.tar.gz: 14eb3ae17e0f44ca7a8ae255acbe638994617315c553082116da5508c054b949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2056093faecc6ae4a4ebe06d5be246dc827de55bcb6a581f6292352be7aaea6696ac50caff4ef93890e9386831e2d73e51b7cdd0de8113ef6ecabb3aea394e1c
|
7
|
+
data.tar.gz: ca02931129b881993ec70a3a8ed1ca26770532675d0480dce6d31740973c2d8322e82222952be6cfd5eec6d05b5ad5bd5b2c46b2088d886ddf16579e75869605
|
data/CHANGELOG.md
CHANGED
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
|
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
|

|
@@ -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. | `
|
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
|
-
|
156
|
-
|
155
|
+
var dialPreview = document.getElementById("dial-preview");
|
156
|
+
var dialDetails = document.getElementById("dial-details");
|
157
157
|
|
158
158
|
dialPreview.addEventListener("click", () => {
|
159
|
-
|
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
|
-
|
167
|
+
var detailsElements = dialDetails.querySelectorAll("details");
|
168
168
|
detailsElements.forEach(detail => {
|
169
169
|
detail.removeAttribute("open");
|
170
170
|
});
|
data/lib/dial/version.rb
CHANGED
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.
|
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-
|
10
|
+
date: 2025-04-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: railties
|