devise_invitable 2.0.12 → 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/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
- metadata +3 -3
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/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
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
@@ -43,14 +43,14 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - "~>"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '4.0'
|
|
47
47
|
type: :development
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
53
|
+
version: '4.0'
|
|
54
54
|
description: It adds support for send invitations by email (it requires to be authenticated)
|
|
55
55
|
and accept the invitation by setting a password.
|
|
56
56
|
email:
|