devise-i18n 1.10.3 → 1.11.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: 5b0f6fc2bd0ca3899d3936f660e9e16d4c8926f9752e94a599e3c4287d692ed5
4
- data.tar.gz: 89751270ffc1808caa2577bed4b66388c525e836cb50dfc28a22454953199a27
3
+ metadata.gz: 82a814dba09cc8f6c0b0b30909270ebd84621dc506512f92129325011df485a0
4
+ data.tar.gz: 06a8b2ad77b2aba112e319ef3e4792f17fd50f77dd8da204e376fa96b1b10fa0
5
5
  SHA512:
6
- metadata.gz: 87172aa7c19c88fb2aa6d91e92716b1bc297ff33f60f7808f5be8c3613e130ec1fe09208d68e3bcfc752999443e06a9151636443b13f2db60987bedddc57bb10
7
- data.tar.gz: a416bc68683c92cefb662b10bdd934cc2c276b8618197626dc3bcf866f30414ecb8405f15ab87792163c38de6efb46ad993272cbeefa6f463d21771f15b12b48
6
+ metadata.gz: '09f74d0add99215c78e47f292cc6bb5b40129b7b98ff4dc3de3710e5da2fa2b89a8bdbf832de4b4cde7b443750f64f743db63a6e72475130e25fb8a8503aa720'
7
+ data.tar.gz: 0b424a163b9bb18b423237a2ba9ba13a5981cda84fd57664224bbba8b643c79aa0a371dde1ba20e9203723123f5dd90b9254460d883ceedaf7a5bc103d588ac8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.3
1
+ 1.11.0
@@ -1,4 +1,4 @@
1
- <h2><%= t('.title', resource: resource.model_name.human) %></h2>
1
+ <h2><%= t('.title', resource: resource_name.to_s.humanize) %></h2>
2
2
 
3
3
  <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
4
4
  <%= render "devise/shared/error_messages", resource: resource %>
@@ -38,6 +38,6 @@
38
38
 
39
39
  <h3><%= t('.cancel_my_account') %></h3>
40
40
 
41
- <p><%= t('.unhappy') %> <%= button_to t('.cancel_my_account'), registration_path(resource_name), data: { confirm: t('.are_you_sure') }, method: :delete %></p>
41
+ <div><%= t('.unhappy') %> <%= button_to t('.cancel_my_account'), registration_path(resource_name), data: { confirm: t('.are_you_sure'), turbo_confirm: t('.are_you_sure') }, method: :delete %></div>
42
42
 
43
43
  <%= link_to t('devise.shared.links.back'), :back %>
@@ -1,5 +1,5 @@
1
1
  <% if resource.errors.any? %>
2
- <div id="error_explanation">
2
+ <div id="error_explanation" data-turbo-cache="false">
3
3
  <h2>
4
4
  <%= I18n.t("errors.messages.not_saved",
5
5
  count: resource.errors.count,
@@ -20,6 +20,6 @@
20
20
 
21
21
  <%- if devise_mapping.omniauthable? %>
22
22
  <%- resource_class.omniauth_providers.each do |provider| %>
23
- <%= link_to t('.sign_in_with_provider', provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), method: :post %><br />
23
+ <%= button_to t('.sign_in_with_provider', provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), data: { turbo: false } %><br />
24
24
  <% end %>
25
25
  <% end %>
@@ -1,4 +1,4 @@
1
- <h2><%= t(".title", resource: resource.model_name.human) %></h2>
1
+ <h2><%= t(".title", resource: resource_name.to_s.humanize) %></h2>
2
2
 
3
3
  <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
4
4
  <%= f.error_notification %>
@@ -30,6 +30,6 @@
30
30
 
31
31
  <h3><%= t(".cancel_my_account") %></h3>
32
32
 
33
- <p><%= t(".unhappy") %> <%= link_to t(".cancel_my_account"), registration_path(resource_name), data: { confirm: t(".are_you_sure") }, method: :delete %></p>
33
+ <div><%= t(".unhappy") %> <%= button_to t(".cancel_my_account"), registration_path(resource_name), data: { confirm: t(".are_you_sure"), turbo_confirm: t(".are_you_sure") }, method: :delete %></div>
34
34
 
35
35
  <%= link_to t("devise.shared.links.back"), :back %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.3
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Dell
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-02-15 00:00:00.000000000 Z
13
+ date: 2023-02-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: devise
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 4.8.0
21
+ version: 4.9.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 4.8.0
28
+ version: 4.9.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rspec
31
31
  requirement: !ruby/object:Gem::Requirement