dial 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/dial.gemspec +3 -3
- data/lib/dial/middleware/panel.rb +4 -4
- data/lib/dial/middleware.rb +1 -1
- data/lib/dial/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22930c6ef22196a525fb4986ce053b36f148867083636976d54f184a2dd2f46d
|
4
|
+
data.tar.gz: a7131f94657e6fca3f8826306cf8d9a1cd98e888def46e05ba690833492dcd8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0bca632784f1ff0f5b8cd82df1117dcb0e8f2c7bcf07973b174964106a4eb67ac23fead61930b8ddd99376dcf0dc4df32624494518303b7a85be136c2a8e669
|
7
|
+
data.tar.gz: d9da11b80ac380b8db0991498f966397707e9c3e6a270c75a68644de16b9bbd610604bb819345885c474047bb4ed4531ae106f19748972df594fac19a7e838e0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.7] - 2025-01-25
|
4
|
+
|
5
|
+
- Increase default vernier allocation interval from 1k to 10k
|
6
|
+
|
7
|
+
## [0.1.6] - 2025-01-25
|
8
|
+
|
9
|
+
- Fix redeclaration of JS constants
|
10
|
+
|
3
11
|
## [0.1.5] - 2025-01-24
|
4
12
|
|
5
13
|
- UI: Fix overflow and add vertical scroll
|
data/README.md
CHANGED
data/dial.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency "railties", ">= 7", "< 8.2"
|
23
23
|
spec.add_dependency "activerecord", ">= 7", "< 8.2"
|
24
24
|
spec.add_dependency "actionpack", ">= 7", "< 8.2"
|
25
|
-
spec.add_dependency "vernier"
|
26
|
-
spec.add_dependency "prosopite"
|
27
|
-
spec.add_dependency "pg_query"
|
25
|
+
spec.add_dependency "vernier"
|
26
|
+
spec.add_dependency "prosopite"
|
27
|
+
spec.add_dependency "pg_query"
|
28
28
|
end
|
@@ -144,11 +144,11 @@ module Dial
|
|
144
144
|
|
145
145
|
def script
|
146
146
|
<<~JS
|
147
|
-
|
148
|
-
|
147
|
+
var dialPreview = document.getElementById("dial-preview");
|
148
|
+
var dialDetails = document.getElementById("dial-details");
|
149
149
|
|
150
150
|
dialPreview.addEventListener("click", () => {
|
151
|
-
|
151
|
+
var collapsed = ["", "none"].includes(dialDetails.style.display);
|
152
152
|
dialDetails.style.display = collapsed ? "block" : "none";
|
153
153
|
});
|
154
154
|
|
@@ -156,7 +156,7 @@ module Dial
|
|
156
156
|
if (!dialPreview.contains(event.target) && !dialDetails.contains(event.target)) {
|
157
157
|
dialDetails.style.display = "none";
|
158
158
|
|
159
|
-
|
159
|
+
var detailsElements = dialDetails.querySelectorAll("details");
|
160
160
|
detailsElements.forEach(detail => {
|
161
161
|
detail.removeAttribute("open");
|
162
162
|
});
|
data/lib/dial/middleware.rb
CHANGED
@@ -27,7 +27,7 @@ module Dial
|
|
27
27
|
status, headers, rack_body = nil
|
28
28
|
ruby_vm_stat, gc_stat, gc_stat_heap = nil
|
29
29
|
::Prosopite.scan do
|
30
|
-
::Vernier.profile out: profile_out_pathname, interval: 500, allocation_interval:
|
30
|
+
::Vernier.profile out: profile_out_pathname, interval: 500, allocation_interval: 10_000, hooks: [:memory_usage, :rails] do
|
31
31
|
ruby_vm_stat, gc_stat, gc_stat_heap = with_diffed_ruby_stats do
|
32
32
|
status, headers, rack_body = @app.call env
|
33
33
|
end
|
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.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Young
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-25 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: railties
|
@@ -73,44 +73,44 @@ dependencies:
|
|
73
73
|
name: vernier
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- - "
|
76
|
+
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
78
|
+
version: '0'
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- - "
|
83
|
+
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
85
|
+
version: '0'
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: prosopite
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- - "
|
90
|
+
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
92
|
+
version: '0'
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - "
|
97
|
+
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '
|
99
|
+
version: '0'
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: pg_query
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- - "
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '
|
106
|
+
version: '0'
|
107
107
|
type: :runtime
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: '
|
113
|
+
version: '0'
|
114
114
|
email:
|
115
115
|
- djry1999@gmail.com
|
116
116
|
executables: []
|