dial 0.2.6 → 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 +8 -0
- data/README.md +3 -6
- data/lib/dial/middleware/panel.rb +3 -2
- 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
@@ -3,19 +3,16 @@
|
|
3
3
|

|
4
4
|

|
5
5
|
|
6
|
-
WIP
|
7
|
-
|
8
6
|
A modern profiler for your Rails application.
|
9
7
|
|
10
8
|
Utilizes [vernier](https://github.com/jhawthorn/vernier) for profiling and
|
11
9
|
[prosopite](https://github.com/charkost/prosopite) for N+1 query detection.
|
12
10
|
|
13
11
|
> [!NOTE]
|
14
|
-
> Check out the resources in the
|
12
|
+
> Check out the resources in the vernier project for more information on how to
|
15
13
|
> interpret the viewer, as well as comparisons with other profilers, including `stackprof`.
|
16
14
|
|
17
|
-
|
18
|
-
[](https://youtu.be/LPXtfJ0c284)
|
15
|
+

|
19
16
|
|
20
17
|
## Installation
|
21
18
|
|
@@ -57,7 +54,7 @@ end
|
|
57
54
|
Option | Description | Default
|
58
55
|
:- | :- | :-
|
59
56
|
`vernier_interval` | Sets the `interval` option for vernier. | `200`
|
60
|
-
`vernier_allocation_interval` | Sets the `allocation_interval` option for vernier. | `
|
57
|
+
`vernier_allocation_interval` | Sets the `allocation_interval` option for vernier. | `2_000`
|
61
58
|
`prosopite_ignore_queries` | Sets the `ignore_queries` option for prosopite. | `[/schema_migrations/i]`
|
62
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`
|
63
60
|
|
@@ -80,6 +80,7 @@ module Dial
|
|
80
80
|
def style
|
81
81
|
<<~CSS
|
82
82
|
#dial {
|
83
|
+
all: initial;
|
83
84
|
max-height: 50%;
|
84
85
|
max-width: 50%;
|
85
86
|
z-index: 9999;
|
@@ -155,8 +156,8 @@ module Dial
|
|
155
156
|
var dialDetails = document.getElementById("dial-details");
|
156
157
|
|
157
158
|
dialPreview.addEventListener("click", () => {
|
158
|
-
var
|
159
|
-
dialDetails.style.display =
|
159
|
+
var isCollapsed = ["", "none"].includes(dialDetails.style.display);
|
160
|
+
dialDetails.style.display = isCollapsed ? "block" : "none";
|
160
161
|
});
|
161
162
|
|
162
163
|
document.addEventListener("click", (event) => {
|
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
|