dial 0.2.5 → 0.2.7

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: 24787fba428e09eb96323d44b54df1487172d965b47e88df27b1855cefe8e02d
4
- data.tar.gz: 520e95aae1ac2ca66bb09156a54203a200b94e401c35d269990d43978d2e08cb
3
+ metadata.gz: 3f835ac5df86b954348701863b833337141174567c9ecb5e0e94d5b0909565de
4
+ data.tar.gz: f623e3b6b0b44dab2d0dc9975d04b9c90a519f4a702034d962d524365148040a
5
5
  SHA512:
6
- metadata.gz: dc6187fea22a1334c217461a5b5394ea23f8b1b6c821000ec2629d7537b0986b3626adb16685d4268dd572772fc3fb0ad4eaa4c827faa7c592040258610cad63
7
- data.tar.gz: bc4ea0f5fabdece3ee0aef7b098035cecc66faad7d5714457b210510a3fa2e3ffd5b08e73ddeebb26f9704817e128f13cc8d2dbf5b03d4eae08b0a60c0d69781
6
+ metadata.gz: '09c6101e6e84370484d6fe459b88f1ea9110f46f672dc248695efc4b6900be4b1de9b3950d7620221ccd97d0214dbd8d58a74e1809fa4ebe268c1b90ae1769c9'
7
+ data.tar.gz: b852559a9ff6db963124f688c17fec14db2417267cf8d27cd7a03aaf504d8bfdd9ab89a64d773dd7525f9365f0c7b07696f551059659f04ae45640f163379b18
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.7] - 2025-04-05
4
+
5
+ - Prevent style inheritance in panel
6
+
7
+ ## [0.2.6] - 2025-04-05
8
+
9
+ - Decrease default vernier allocation interval from 20k to 2k
10
+
3
11
  ## [0.2.5] - 2025-04-04
4
12
 
5
13
  - Perf: Write prosopite logs to IO stream instead of file
data/README.md CHANGED
@@ -3,8 +3,6 @@
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
@@ -14,8 +12,7 @@ Utilizes [vernier](https://github.com/jhawthorn/vernier) for profiling and
14
12
  > Check out the resources in the [Vernier](https://github.com/jhawthorn/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
 
@@ -17,7 +17,7 @@ module Dial
17
17
  FILE_STALE_SECONDS = 60 * 60
18
18
 
19
19
  VERNIER_INTERVAL = 200
20
- VERNIER_ALLOCATION_INTERVAL = 20_000
20
+ VERNIER_ALLOCATION_INTERVAL = 2_000
21
21
  VERNIER_PROFILE_OUT_RELATIVE_DIRNAME = "tmp/dial/profiles"
22
22
  VERNIER_VIEWER_URL = "https://vernier.prof"
23
23
 
@@ -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;
@@ -151,19 +152,19 @@ module Dial
151
152
 
152
153
  def script
153
154
  <<~JS
154
- var dialPreview = document.getElementById("dial-preview");
155
- var dialDetails = document.getElementById("dial-details");
155
+ const dialPreview = document.getElementById("dial-preview");
156
+ const 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
+ const isCollapsed = ["", "none"].includes(dialDetails.style.display);
160
+ dialDetails.style.display = isCollapsed ? "block" : "none";
160
161
  });
161
162
 
162
163
  document.addEventListener("click", (event) => {
163
164
  if (!dialPreview.contains(event.target) && !dialDetails.contains(event.target)) {
164
165
  dialDetails.style.display = "none";
165
166
 
166
- var detailsElements = dialDetails.querySelectorAll("details");
167
+ const detailsElements = dialDetails.querySelectorAll("details");
167
168
  detailsElements.forEach(detail => {
168
169
  detail.removeAttribute("open");
169
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.5"
4
+ VERSION = "0.2.7"
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.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-04 00:00:00.000000000 Z
10
+ date: 2025-04-05 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: railties