lato 0.1.62 → 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: da92b193a071f5710bad624118ba7af88a9fb443a0ea5ba203aecec0787872d8
4
- data.tar.gz: 7e2b0a8fbaf7903179fa21730f5d69ba13bf687dd9fce82f49a129f4c3d442b8
3
+ metadata.gz: 97957e5c077e1eb2c5fc2f543ccd910e3c9e20c31a032f1caddf6d8f367f65d5
4
+ data.tar.gz: ff14d933bc169b717bc6383b384f5b88454d5d74149b3c2c8d35843f0d9e2c3b
5
5
  SHA512:
6
- metadata.gz: 78567b7e9045585557ab8fc242c095fc3ef94213d33ecc03771e58c3ccfc5a5665b10bbef113ebe8f7eaf98bf9995b8a68e165cfd6644b7746d3c879752ab72b
7
- data.tar.gz: 2ecdaebc1d3b61e58b219240b875c912868299c7acb9d9cf5b86d1e08f32c6d18b1048311e96edce12ec7e66140d9449d3143a60cb90ff68e2c8576efc1a8b56
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
  */
@@ -32,6 +32,6 @@ email_readonly ||= false
32
32
  </div>
33
33
 
34
34
  <div class="mb-3 text-muted" style="font-size: 14px;">
35
- <%= lato_form_item_input_check form, :accepted_privacy_policy_version, I18n.t('lato.privacy_policy_checkbox', link: link_to(I18n.t('lato.privacy_policy'), Lato.config.legal_privacy_policy_url)), required: true %>
36
- <%= lato_form_item_input_check form, :accepted_terms_and_conditions_version, I18n.t('lato.terms_and_conditions_checkbox', link: link_to(I18n.t('lato.terms_and_conditions'), Lato.config.legal_terms_and_conditions_url)), required: true %>
35
+ <%= lato_form_item_input_check form, :accepted_privacy_policy_version, I18n.t('lato.privacy_policy_checkbox', link: link_to(I18n.t('lato.privacy_policy'), Lato.config.legal_privacy_policy_url), target: '_blank'), required: true %>
36
+ <%= lato_form_item_input_check form, :accepted_terms_and_conditions_version, I18n.t('lato.terms_and_conditions_checkbox', link: link_to(I18n.t('lato.terms_and_conditions'), Lato.config.legal_terms_and_conditions_url), target: '_blank'), required: true %>
37
37
  </div>
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "0.1.62"
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.62
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-09-27 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