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 +4 -4
- data/config/locales/it.yml +2 -2
- data/config/locales/pt-BR.yml +2 -2
- data/config/locales/zh-HK.yml +1 -1
- data/config/locales/zh-TW.yml +1 -1
- data/lib/devise_invitable/rails.rb +11 -3
- data/lib/devise_invitable/version.rb +1 -1
- data/test/test_helper.rb +6 -0
- metadata +5 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c5d960efc9d5ef35fa1fdfefbde6fa6ab687d0c3d0de519a1112d1dec57224bd
|
|
4
|
+
data.tar.gz: 9e6e81c91625d7bce472c5055d0f9f16bfc349d462eb90bbfa57bc33c766cded
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9745971bbb21f82d7f3659f594ef9ad4621844df9af9a8c0f58dd6df6f436bcf256b100712233db860a124b104185478c9efcce46d37df639ccbc57d9bc1fd06
|
|
7
|
+
data.tar.gz: 373944acfbdb815a64aa86832be27ca6c02c0e9a70b0b6a82ec738a5bb807b27f4f9908aa4bf6f9cfdd01194d8bfa84ac287454c01d390237e54bf26d66a46f9
|
data/config/locales/it.yml
CHANGED
|
@@ -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
|
|
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"
|
data/config/locales/pt-BR.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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."
|
data/config/locales/zh-HK.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
Devise.mailer.
|
|
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
|
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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
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.
|
|
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:
|