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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 298ec02876c962b490d3afaaeb60d38dcd722de4f701e39047d6e7b3a281d83d
4
- data.tar.gz: 5e01810cb5251a171f45e6e6dc9620e310ef3af7196554150cbf22b9f80d0690
3
+ metadata.gz: 19bfdf2001daf27f046fbbe86dded48e29b3a7767f27dc0c58ac538974c2a3c5
4
+ data.tar.gz: 14eb3ae17e0f44ca7a8ae255acbe638994617315c553082116da5508c054b949
5
5
  SHA512:
6
- metadata.gz: 4ad3ccf904ed2446f8119de32a0ed7e2f5ad195dce03d1b6619c00b9e3c2519d7c64cbac7c6ca2dda65615d56e0055581c8dbc8f12c9d5a22a0461f920cfa0ec
7
- data.tar.gz: 6dd3d29f2bcbede73ed1e3e4ee175726c12cbd0c364d694cfe79890b970c0ecf82876427b4136bacc8962f1c15a68ce033ee54f885c58ca4c8453fd9d97d55c1
6
+ metadata.gz: 2056093faecc6ae4a4ebe06d5be246dc827de55bcb6a581f6292352be7aaea6696ac50caff4ef93890e9386831e2d73e51b7cdd0de8113ef6ecabb3aea394e1c
7
+ data.tar.gz: ca02931129b881993ec70a3a8ed1ca26770532675d0480dce6d31740973c2d8322e82222952be6cfd5eec6d05b5ad5bd5b2c46b2088d886ddf16579e75869605
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.8] - 2025-04-11
4
+
5
+ - Fix redeclaration of JS constants
6
+
7
+ ## [0.2.7] - 2025-04-05
8
+
9
+ - Prevent style inheritance in panel
10
+
3
11
  ## [0.2.6] - 2025-04-05
4
12
 
5
13
  - Decrease default vernier allocation interval from 20k to 2k
data/README.md CHANGED
@@ -3,19 +3,16 @@
3
3
  ![Version](https://img.shields.io/gem/v/dial)
4
4
  ![Build](https://img.shields.io/github/actions/workflow/status/joshuay03/dial/.github/workflows/main.yml?branch=main)
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 [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
15
13
  > interpret the viewer, as well as comparisons with other profilers, including `stackprof`.
16
14
 
17
- Check out the demo:
18
- [![Demo](https://img.youtube.com/vi/LPXtfJ0c284/maxresdefault.jpg)](https://youtu.be/LPXtfJ0c284)
15
+ ![Demo](demo.gif)
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. | `20_000`
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 collapsed = ["", "none"].includes(dialDetails.style.display);
159
- dialDetails.style.display = collapsed ? "block" : "none";
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dial
4
- VERSION = "0.2.6"
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.6
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