devise_invitable 2.0.11 → 2.0.13

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: a263d9bc51640e4273d49fd5d0686846f63a34de6a0797911ec58e815755d7d4
4
- data.tar.gz: 42dcd68e6d8a6a6d8a2743c6ec25fb67df90cf5c71cef428cd3cb18b31f5c60d
3
+ metadata.gz: c5d960efc9d5ef35fa1fdfefbde6fa6ab687d0c3d0de519a1112d1dec57224bd
4
+ data.tar.gz: 9e6e81c91625d7bce472c5055d0f9f16bfc349d462eb90bbfa57bc33c766cded
5
5
  SHA512:
6
- metadata.gz: 44fe0e4475b942b20e1f585b5111cfbd7d8b75bbdde114f3f458e096dfb42897835d45241aacb350375b1d8411c4cf9aa722e8c75bf3dc7c213d062383260c13
7
- data.tar.gz: 743a42de1fed41acb8ae93136bfae43ee3ead471478b067993a86b5631db3b859d28a67d851f3b6417bd86cac48fda3e46f6250caf17a9ac4fdaa9df58f21a3a
6
+ metadata.gz: 9745971bbb21f82d7f3659f594ef9ad4621844df9af9a8c0f58dd6df6f436bcf256b100712233db860a124b104185478c9efcce46d37df639ccbc57d9bc1fd06
7
+ data.tar.gz: 373944acfbdb815a64aa86832be27ca6c02c0e9a70b0b6a82ec738a5bb807b27f4f9908aa4bf6f9cfdd01194d8bfa84ac287454c01d390237e54bf26d66a46f9
@@ -22,10 +22,10 @@ it:
22
22
  someone_invited_you: "Qualcuno ti ha invitato a %{url}, accetta tramite il link qua sotto."
23
23
  accept: "Accetta l'invito"
24
24
  accept_until: "L'invito sarà valido fino a %{due_date}."
25
- ignore: "Se non si desidera accettare l'invito si prega di ignorare la presente email.<br />L'account non sarà creato finché non verrà impostata la password (v. link sotto)."
25
+ ignore: "Se non si desidera accettare l'invito si prega di ignorare la presente email.<br />L'account non sarà creato finché non verrà impostata la password tramite il link precedente."
26
26
  time:
27
27
  formats:
28
28
  devise:
29
29
  mailer:
30
30
  invitation_instructions:
31
- accept_until_format: "%B %d, %Y %I:%M %p"
31
+ accept_until_format: "%B %d, %Y %I:%M %p"
@@ -1,4 +1,4 @@
1
- pt_BR:
1
+ pt-BR:
2
2
  devise:
3
3
  failure:
4
4
  invited: 'Você tem um convite pendente, aceite para finalizar sua conta.'
@@ -20,4 +20,4 @@ pt_BR:
20
20
  hello: 'Olá %{email}'
21
21
  someone_invited_you: 'Alguém convidou você para acessar %{url}, você pode aceitar o convite através do link abaixo.'
22
22
  accept: 'Aceitar convite'
23
- ignore: "Se você não quer aceitar esse convite, por favor ignore esse e-mail.<br />Sua conta não será criada até você acessar o link abaixo e escolher sua senha."
23
+ ignore: "Se você não quer aceitar esse convite, por favor ignore esse e-mail.<br />Sua conta não será criada até você acessar o link abaixo e escolher sua senha."
@@ -3,7 +3,7 @@ zh-HK:
3
3
  failure:
4
4
  invited: "你有一個待處理的邀請, 請接受它以完成創建您的帳戶。"
5
5
  invitations:
6
- send_instructions: "邀請電子郵件已發送到%{email)。"
6
+ send_instructions: "邀請電子郵件已發送到%{email}。"
7
7
  invitation_token_invalid: "提供嘅邀請令牌無效!"
8
8
  updated: "你嘅密碼設置成功。 你而家已經登錄。"
9
9
  updated_not_active: "你嘅密碼設置成功。"
@@ -3,7 +3,7 @@ zh-TW:
3
3
  failure:
4
4
  invited: "你有一封設立帳號的邀請,請接受邀請來創建你的帳號。"
5
5
  invitations:
6
- send_instructions: "邀請已發送至%{email)"
6
+ send_instructions: "邀請已發送至%{email}"
7
7
  invitation_token_invalid: "所提供的邀請驗證無效!"
8
8
  updated: "你的密碼已設置成功,現在你已經登入了。"
9
9
  updated_not_active: "密碼設置成功"
@@ -8,10 +8,18 @@ module DeviseInvitable
8
8
  # We use to_prepare instead of after_initialize here because Devise is a Rails engine; its
9
9
  # mailer is reloaded like the rest of the user's app. Got to make sure that our mailer methods
10
10
  # are included each time Devise.mailer is (re)loaded.
11
+ #
12
+ # The work is wrapped in ActiveSupport.on_load(:action_mailer) so that resolving
13
+ # Devise.mailer (a String#constantize) doesn't force ActionMailer::Base to load
14
+ # before app initialization completes. Without this wrapper, Rails edge's
15
+ # guard_load_hooks support (rails/rails#56201) logs an early-load-hook warning
16
+ # for :action_mailer (and :active_job, via MailDeliveryJob) on every boot.
11
17
  config.to_prepare do
12
- Devise.mailer.send :include, DeviseInvitable::Mailer
13
- unless Devise.mailer.ancestors.include?(Devise::Mailers::Helpers)
14
- Devise.mailer.send :include, Devise::Mailers::Helpers
18
+ ActiveSupport.on_load(:action_mailer) do
19
+ Devise.mailer.send :include, DeviseInvitable::Mailer
20
+ unless Devise.mailer.ancestors.include?(Devise::Mailers::Helpers)
21
+ Devise.mailer.send :include, Devise::Mailers::Helpers
22
+ end
15
23
  end
16
24
  end
17
25
  # extend mapping with after_initialize because it's not reloaded
@@ -1,3 +1,3 @@
1
1
  module DeviseInvitable
2
- VERSION = '2.0.11'.freeze
2
+ VERSION = '2.0.13'.freeze
3
3
  end
data/test/test_helper.rb CHANGED
@@ -33,3 +33,9 @@ class ActionController::TestCase
33
33
  self.use_transactional_tests = true
34
34
  end
35
35
  end
36
+
37
+ # This is a workaround for the issue with Rails 8.0 and lazy loading of routes.
38
+ # see: https://github.com/heartcombo/devise/issues/5705
39
+ if Rails.gem_version >= Gem::Version.new('8.0')
40
+ Rails.application.routes_reloader.execute_unless_loaded
41
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_invitable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-05-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: actionmailer
@@ -44,14 +43,14 @@ dependencies:
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: '2.0'
46
+ version: '4.0'
48
47
  type: :development
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: '2.0'
53
+ version: '4.0'
55
54
  description: It adds support for send invitations by email (it requires to be authenticated)
56
55
  and accept the invitation by setting a password.
57
56
  email:
@@ -171,7 +170,6 @@ homepage: https://github.com/scambra/devise_invitable
171
170
  licenses:
172
171
  - MIT
173
172
  metadata: {}
174
- post_install_message:
175
173
  rdoc_options:
176
174
  - "--main"
177
175
  - README.md
@@ -189,8 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
187
  - !ruby/object:Gem::Version
190
188
  version: '0'
191
189
  requirements: []
192
- rubygems_version: 3.5.11
193
- signing_key:
190
+ rubygems_version: 3.6.9
194
191
  specification_version: 4
195
192
  summary: An invitation strategy for Devise
196
193
  test_files: