dial 0.1.5 → 0.1.6

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: 4267ea5bc603e20d21e2cc7956154d210a7aad2441a4088c517adee6f9e630a5
4
+ data.tar.gz: 57de7d2c3bf2cd8055c3e180ff745b95b8541176f0e8aea6ec05a69f5d1175c5
5
5
  SHA512:
6
- metadata.gz: 64e51ddaf1029231903836e08c8943afe75df9ec068f4506cba3a85e4c2a5059651af66e8ce3c797132f0ee1943c773abcd52a8ea9fc13fec8280253dbf5dfb3
7
- data.tar.gz: cf6d09efec8cd1e581d0b13a91cd6bfce0c1d86612d9b2bf778c01ac6f1766c40fe122eeca19e6133749c396eec2bea34610be2e3d6cd231a4c6eaeebf0d99d6
6
+ metadata.gz: 82995a0e0d7898af69ea939db4081214844e5b5de7f911be3c6e61ce51d9446d4abeda7dccd0be882c5efabd49267cdcfd2a042ae9c066b1c163f3e68ec1a0ee
7
+ data.tar.gz: f5b75425302efda23211c8a87ef94f543d9b253ccb5965d04067db2f81c05c9ad1d2432d222419ccd6ed08dfa90d7243f42452a695c3faaa79f7c5aa5d8bdab3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.6] - 2025-01-25
4
+
5
+ - Fix redeclaration of JS constants
6
+
3
7
  ## [0.1.5] - 2025-01-24
4
8
 
5
9
  - 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
  });
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.6"
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.6
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: []