proscenium 0.15.0.beta.5-aarch64-linux → 0.15.0.beta.6-aarch64-linux

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: 1617ec045da7aeb75e675881fbf33d926cbac0fc9e8a859df65332439b0238e2
4
- data.tar.gz: 3bc2b29ffe41770149e14502c814291939c524f52254f793b2ea59486eaeee19
3
+ metadata.gz: f9b25cb1ca5ae0b9fca97d3937d57c7255cdd99749004dc6e8f3e9728d1ece0b
4
+ data.tar.gz: c4afeaa6c1a9e7677e973a97fa8dbc8460d7d704b0917a12046d2612d5f75584
5
5
  SHA512:
6
- metadata.gz: df241bdca15174d8ede8d40af92929d62f3b2ac652b7bfa8582afec5533725407e987e99592b56438ae54c73b77021b845bd024428180cc682ab570437350dab
7
- data.tar.gz: c3888dc4ee531bc6a764aff7f750db398c2f3ec4c5f55557c1380d8c75ec2559348cd0929f85c9315e3f7a5f32abe96bfc2b3c51e3e4089e32ef2be96948d82c
6
+ metadata.gz: fe88aa724877e374c5fafa88ba75d0403f9f0ea120d1d8c2539e8a76287ce61126fe065a5c388eab8cf0f278a4d59ff907055a00da4262b533fa96910c43ec0c
7
+ data.tar.gz: e8f3585351d824c129e6c3782c399e548a61ba18d7f96c51f5506ea9bf7f8b633a2390a367817fb33a403192e9ef994f87fe5df57e79f2312e9499c97acf879d
Binary file
@@ -1,16 +1,23 @@
1
1
  export default class DataConfirm {
2
- onSubmit = event => {
3
- if (!event.target.matches('[data-turbo=true]') && 'confirm' in event.submitter.dataset) {
4
- const v = event.submitter.dataset.confirm
2
+ onSubmit = (event) => {
3
+ if (
4
+ !event.target.matches("[data-turbo=true]") &&
5
+ event.submitter &&
6
+ "confirm" in event.submitter.dataset
7
+ ) {
8
+ const v = event.submitter.dataset.confirm;
5
9
 
6
- if (v !== 'false' && !confirm(v === 'true' || v === '' ? 'Are you sure?' : v)) {
7
- event.preventDefault()
8
- event.stopPropagation()
9
- event.stopImmediatePropagation()
10
- return false
10
+ if (
11
+ v !== "false" &&
12
+ !confirm(v === "true" || v === "" ? "Are you sure?" : v)
13
+ ) {
14
+ event.preventDefault();
15
+ event.stopPropagation();
16
+ event.stopImmediatePropagation();
17
+ return false;
11
18
  }
12
19
  }
13
20
 
14
- return true
15
- }
21
+ return true;
22
+ };
16
23
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.15.0.beta.5'
4
+ VERSION = '0.15.0.beta.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.beta.5
4
+ version: 0.15.0.beta.6
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-15 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -217,11 +217,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
217
217
  version: 2.7.0
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ">="
220
+ - - ">"
221
221
  - !ruby/object:Gem::Version
222
- version: '0'
222
+ version: 1.3.1
223
223
  requirements: []
224
- rubygems_version: 3.5.7
224
+ rubygems_version: 3.4.19
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: The engine powering your Rails frontend