ultimate_turbo_modal 1.6.1 → 1.7.0

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: e5258352e110cc8d743f60743d8c2842daa3e925ec3b9671713c5b28cd25e59a
4
- data.tar.gz: 9488206059b94dc6f3613b0725a59a1fba3cfadc8a2414e6ee3cd21f4b978f71
3
+ metadata.gz: d0dc2045f3ba7b76dd83c90130c780c4b3dbd4ecc7500e0d0e12e877ff200f26
4
+ data.tar.gz: 60aa5ecb836ebf21241493d1cb11072f6713650cf13f8818a254e3c3eadbc72c
5
5
  SHA512:
6
- metadata.gz: fdeb4c4f19c6875ea1d401427d76ac5c46b30ffc96faad82ca683dce05588b0dc720d701cdd49968d9580889a477bdd06de261b1cc25631041221c483192e947
7
- data.tar.gz: 02633313f6ba5a54b023ccea29bb73162d067268e0730ea832d54d9a59e519a95c0062dc7603c233ead3f5a4c702d632c0ef3f61d0d4ca5dbe53b2cc8ccf8014
6
+ metadata.gz: 2b99ee6d886121bf9a3b483a117dc32f9395be41012da13444ad3890ed1c778c57754bd57b8b2808c28cceae34c1bd16f4e8505c6fb32d422cfe12ae8cd31d5e
7
+ data.tar.gz: 968c2f42bef6103f5b7a4b64bffcaf4ff84c281e9014cbabdbfe9d59ac6609e2953b7cc43852be6550617a08afcd4f07b0b951788c8563dc093e67c0d9952ac3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.7.0] - 2024-12-28
2
+
3
+ - Fix Phlex deprecation warning
4
+
1
5
  ## [1.6.1] - 2024-01-10
2
6
 
3
7
  - Added ability to specify data attributes for the content div within the modal. Useful to specify a Stimulus controller, for example.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ultimate_turbo_modal (1.6.1)
4
+ ultimate_turbo_modal (1.7.0)
5
5
  phlex-rails (>= 1.0, < 2.0)
6
6
  rails (>= 7)
7
7
  stimulus-rails
data/README.md CHANGED
@@ -230,7 +230,7 @@ And the following code to `application.js`:
230
230
  addEventListener("turbo:before-frame-render", (event) => {
231
231
  event.detail.render = (currentElement, newElement) => {
232
232
  Idiomorph.morph(currentElement, newElement, {
233
- morphstyle: 'innerHTML'
233
+ morphStyle: 'innerHTML'
234
234
  })
235
235
  }
236
236
  })
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Phlex
4
4
  module DeferredRenderWithMainContent
5
- def template(&block)
5
+ def view_template(&block)
6
6
  output = capture(&block)
7
7
  super { unsafe_raw(output) }
8
8
  end
@@ -49,7 +49,7 @@ class UltimateTurboModal::Base < Phlex::HTML
49
49
  end
50
50
  end
51
51
 
52
- def template(&block)
52
+ def view_template(&block)
53
53
  if turbo_frame?
54
54
  turbo_frame_tag("modal") do
55
55
  modal(&block)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UltimateTurboModal
4
- VERSION = "1.6.1"
4
+ VERSION = "1.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultimate_turbo_modal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Mercier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-11 00:00:00.000000000 Z
11
+ date: 2024-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex-rails
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.5.4
127
+ rubygems_version: 3.5.7
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: UTMR aims to be the be-all and end-all of Turbo Modals.