lato 0.1.63 → 0.2.0

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: ebff18ee45c08496943efe4f8ae6a980baec6ef080a0914eb19a414d78192723
4
- data.tar.gz: b6baed60b96368fa0c08c23fcd15f2b4d7b178019039f6ab25ab7f3ff446f450
3
+ metadata.gz: 97957e5c077e1eb2c5fc2f543ccd910e3c9e20c31a032f1caddf6d8f367f65d5
4
+ data.tar.gz: ff14d933bc169b717bc6383b384f5b88454d5d74149b3c2c8d35843f0d9e2c3b
5
5
  SHA512:
6
- metadata.gz: dbe7a26743c51c95658691e502eeb7763cef6281ca81001c0c15804fa7b8a76dfe93008d557e94863c6ece7b54cdda5e93619377b4815cf0d2f2ea43fd9f65ad
7
- data.tar.gz: ebc68bd91fec65856bf13d17aa55144777c307971573e713350bb0c4649ebe5fe6ebcc155b31bf60568cb774c4111f6fe11b8a6560b7072272d85c058363bc4a
6
+ metadata.gz: 3f07d0df90a8c54f90eb3f8a12410a4d226710eaaaca16a63a0a9329dee6fb09e13e2abf8258555a4f45abeffc914328f5aec8c70aacb7778e70b34cd2f8e43d
7
+ data.tar.gz: bcc45846cac8cf85cbe29cb2ffc5f7b90602148ab3a25f805d9d9f3414a2d6b6cce94167f57509d5e146d6df2887f7462e76bf3a0cbdcd75c71e837286e9814c
data/README.md CHANGED
@@ -9,7 +9,7 @@ Add required dependencies to your application's Gemfile:
9
9
  gem "importmap-rails" # NOTE: Probably already installed in default rails 7 project
10
10
 
11
11
  # Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
12
- gem "turbo-rails", "1.3.3" # NOTE: Probably already installed in default rails 7 project | lock it to 1.3.3
12
+ gem "turbo-rails"
13
13
 
14
14
  # Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
15
15
  gem "stimulus-rails" # NOTE: Probably already installed in default rails 7 project
@@ -97,9 +97,3 @@ $ ruby ./bin/publish.rb
97
97
  ## License
98
98
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
99
99
 
100
- ## Problems with turbo-rails 1.4.0
101
-
102
- There is an issue with turbo-rails >= 1.4.0 related to the usage of redirects from a request with a turbo_frame not present on the redirect page.
103
-
104
- Problem: https://github.com/hotwired/turbo-rails/issues/440
105
- Possible solution: https://github.com/hotwired/turbo-rails/pull/367
@@ -5,6 +5,16 @@ import "bootstrap"
5
5
  // Import controllers (stimulus rails)
6
6
  import "controllers"
7
7
 
8
+ /**
9
+ * Fix form inside turbo-frame tag with redirect
10
+ * https://github.com/hotwired/turbo-rails/issues/440
11
+ */
12
+
13
+ document.addEventListener("turbo:frame-missing", event => {
14
+ event.preventDefault()
15
+ event.detail.visit(event.detail.response)
16
+ })
17
+
8
18
  /**
9
19
  * Manage page transitions
10
20
  */
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.63"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.63
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails