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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82171550e05c2bc884c0ea9a55e6464f42d9bfef043af62e123c03fdbce943b6
4
- data.tar.gz: f7c98017bbcaa66ad376c0b01570007f6b5b70c36ef25843a34254b0e4c82714
3
+ metadata.gz: 22930c6ef22196a525fb4986ce053b36f148867083636976d54f184a2dd2f46d
4
+ data.tar.gz: a7131f94657e6fca3f8826306cf8d9a1cd98e888def46e05ba690833492dcd8d
5
5
  SHA512:
6
- metadata.gz: 64e51ddaf1029231903836e08c8943afe75df9ec068f4506cba3a85e4c2a5059651af66e8ce3c797132f0ee1943c773abcd52a8ea9fc13fec8280253dbf5dfb3
7
- data.tar.gz: cf6d09efec8cd1e581d0b13a91cd6bfce0c1d86612d9b2bf778c01ac6f1766c40fe122eeca19e6133749c396eec2bea34610be2e3d6cd231a4c6eaeebf0d99d6
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
@@ -29,7 +29,7 @@ bundle install
29
29
 
30
30
  ```ruby
31
31
  # this will mount the engine at /dial
32
- mount Dial::Engine, at: "/" if Object.const_defined?("Dial::Engine")
32
+ mount Dial::Engine, at: "/" if Object.const_defined? "Dial::Engine"
33
33
  ```
34
34
 
35
35
  ## Development
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", "~> 1.5"
26
- spec.add_dependency "prosopite", "~> 1.4"
27
- spec.add_dependency "pg_query", "~> 5.1"
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
- const dialPreview = document.getElementById("dial-preview");
148
- const dialDetails = document.getElementById("dial-details");
147
+ var dialPreview = document.getElementById("dial-preview");
148
+ var dialDetails = document.getElementById("dial-details");
149
149
 
150
150
  dialPreview.addEventListener("click", () => {
151
- const collapsed = ["", "none"].includes(dialDetails.style.display);
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
- const detailsElements = dialDetails.querySelectorAll("details");
159
+ var detailsElements = dialDetails.querySelectorAll("details");
160
160
  detailsElements.forEach(detail => {
161
161
  detail.removeAttribute("open");
162
162
  });
@@ -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: 1000, hooks: [:memory_usage, :rails] do
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dial
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.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.1.5
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-24 00:00:00.000000000 Z
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: '1.5'
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: '1.5'
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: '1.4'
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: '1.4'
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: '5.1'
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: '5.1'
113
+ version: '0'
114
114
  email:
115
115
  - djry1999@gmail.com
116
116
  executables: []