turbo_modal 0.2.1 → 0.2.2

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: 9c0eb4e00b2e857f8a2c7a27073e9507b29e7ab7430ba8455762fa3d6054933f
4
- data.tar.gz: 48349847ff7cc01d3e94d0d991a6d4c956b8810fc9eb31d242a349a1d8839693
3
+ metadata.gz: cc0f4ed0edea874e6b769fb7516c4daae96a428497202d80911b9c3fb0c1160c
4
+ data.tar.gz: e7d5fa95f4ca0bb2e7609e1a5a87b076b4d38b374047f91dc50a5f4eaea733ff
5
5
  SHA512:
6
- metadata.gz: f0fb28b89fc0e1d2b4a15a07a95dc858a315ac1690828cd5560303d1908088de61eb3fba53b2b06e8e118862a1d458a259e1a4fb43cd309fe0ae2ad7f6afccf4
7
- data.tar.gz: e06d8cc1eee309eaa9349d0309a5131d2c162ba09ced2163302c7bfa6d249007d6ade6df293d6b90154beabe2fff0be2dec17569ff1aaddc9b9dbe1a0586b9b8
6
+ metadata.gz: cd8b55e97ef967a916720d5506bb0b28ef72c7f5c464b9ab3d36830480617a8e4ca021f84357c8b949ccd35e37a11c109c563c6d1c86202b710367748dc6ad2a
7
+ data.tar.gz: 9b5f9abfb087b28726f58e2aa5b25a5ec527e8f33ea3e5ba724e4aa78a98de0b367bd8495117b7d5d74247be247205e613a4db25d34accac2f92938a4c3945e5
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModalHelper
4
- MODAL_ID = "modal"
4
+ MODAL_ID = "modal"
5
5
  LINK_OPTIONS = { data: { turbo_frame: MODAL_ID, action: "modal#onLinkClick", modal_type: "" } }.freeze
6
6
 
7
7
  def modal_tag(modal_id = MODAL_ID)
@@ -20,7 +20,7 @@ module ModalHelper
20
20
  end
21
21
 
22
22
  def modal_link(text = nil, path = nil, options = {}, &block)
23
- options = DEFAULT_OPTIONS.deep_merge(options)
23
+ options = LINK_OPTIONS.deep_merge(options)
24
24
  if block
25
25
  link_to text || path, options, &block
26
26
  else
@@ -1,3 +1,3 @@
1
1
  module TurboModal
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_modal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Cornthwaite
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-11 00:00:00.000000000 Z
12
+ date: 2022-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails