devise_invitable 2.0.0 → 2.0.5
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/CHANGELOG.md +18 -0
- data/README.rdoc +27 -33
- data/app/controllers/devise/invitations_controller.rb +31 -30
- data/app/controllers/devise_invitable/registrations_controller.rb +11 -11
- data/app/views/devise/invitations/edit.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.html.erb +1 -1
- data/app/views/devise/mailer/invitation_instructions.text.erb +1 -1
- data/config/locales/ar.yml +23 -0
- data/config/locales/da.yml +41 -0
- data/config/locales/de.yml +31 -0
- data/config/locales/es.yml +31 -0
- data/config/locales/et.yml +23 -0
- data/config/locales/fa.yml +31 -0
- data/config/locales/fr.yml +34 -0
- data/config/locales/it.yml +31 -0
- data/config/locales/ja.yml +31 -0
- data/config/locales/ko.yml +24 -0
- data/config/locales/nl.yml +32 -0
- data/config/locales/no.yml +17 -0
- data/config/locales/pl.yml +31 -0
- data/config/locales/pt-BR.yml +23 -0
- data/config/locales/pt.yml +23 -0
- data/config/locales/ru.yml +23 -0
- data/config/locales/tr.yml +24 -0
- data/config/locales/ua.yml +31 -0
- data/config/locales/vi.yml +25 -0
- data/config/locales/zh-HK.yml +31 -0
- data/config/locales/zh-TW.yml +31 -0
- data/lib/devise_invitable.rb +2 -1
- data/lib/devise_invitable/controllers/helpers.rb +3 -4
- data/lib/devise_invitable/inviter.rb +4 -3
- data/lib/devise_invitable/mapping.rb +6 -5
- data/lib/devise_invitable/models.rb +13 -11
- data/lib/devise_invitable/models/authenticatable.rb +7 -1
- data/lib/devise_invitable/parameter_sanitizer.rb +18 -18
- data/lib/devise_invitable/routes.rb +1 -1
- data/lib/devise_invitable/version.rb +1 -1
- data/lib/generators/active_record/templates/migration.rb +0 -1
- data/lib/generators/devise_invitable/install_generator.rb +4 -3
- data/test/generators/views_generator_test.rb +7 -6
- data/test/generators_test.rb +3 -2
- data/test/integration_tests_helper.rb +0 -1
- data/test/models/invitable_test.rb +16 -0
- data/test/rails_app/app/controllers/admins_controller.rb +4 -3
- data/test/rails_app/app/controllers/application_controller.rb +10 -9
- data/test/rails_app/app/controllers/free_invitations_controller.rb +12 -9
- data/test/rails_app/config/initializers/devise.rb +4 -3
- data/test/rails_app/config/initializers/secret_token.rb +9 -0
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -2
- data/test/test_helper.rb +4 -17
- metadata +31 -9
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergio Cambra
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actionmailer
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.0
|
|
47
|
+
version: '2.0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.0
|
|
54
|
+
version: '2.0'
|
|
55
55
|
description: It adds support for send invitations by email (it requires to be authenticated)
|
|
56
56
|
and accept the invitation by setting a password.
|
|
57
57
|
email:
|
|
@@ -69,7 +69,28 @@ files:
|
|
|
69
69
|
- app/views/devise/invitations/new.html.erb
|
|
70
70
|
- app/views/devise/mailer/invitation_instructions.html.erb
|
|
71
71
|
- app/views/devise/mailer/invitation_instructions.text.erb
|
|
72
|
+
- config/locales/ar.yml
|
|
73
|
+
- config/locales/da.yml
|
|
74
|
+
- config/locales/de.yml
|
|
72
75
|
- config/locales/en.yml
|
|
76
|
+
- config/locales/es.yml
|
|
77
|
+
- config/locales/et.yml
|
|
78
|
+
- config/locales/fa.yml
|
|
79
|
+
- config/locales/fr.yml
|
|
80
|
+
- config/locales/it.yml
|
|
81
|
+
- config/locales/ja.yml
|
|
82
|
+
- config/locales/ko.yml
|
|
83
|
+
- config/locales/nl.yml
|
|
84
|
+
- config/locales/no.yml
|
|
85
|
+
- config/locales/pl.yml
|
|
86
|
+
- config/locales/pt-BR.yml
|
|
87
|
+
- config/locales/pt.yml
|
|
88
|
+
- config/locales/ru.yml
|
|
89
|
+
- config/locales/tr.yml
|
|
90
|
+
- config/locales/ua.yml
|
|
91
|
+
- config/locales/vi.yml
|
|
92
|
+
- config/locales/zh-HK.yml
|
|
93
|
+
- config/locales/zh-TW.yml
|
|
73
94
|
- lib/devise_invitable.rb
|
|
74
95
|
- lib/devise_invitable/controllers/helpers.rb
|
|
75
96
|
- lib/devise_invitable/inviter.rb
|
|
@@ -131,6 +152,7 @@ files:
|
|
|
131
152
|
- test/rails_app/config/initializers/devise.rb
|
|
132
153
|
- test/rails_app/config/initializers/inflections.rb
|
|
133
154
|
- test/rails_app/config/initializers/mime_types.rb
|
|
155
|
+
- test/rails_app/config/initializers/secret_token.rb
|
|
134
156
|
- test/rails_app/config/initializers/session_store.rb
|
|
135
157
|
- test/rails_app/config/initializers/wrap_parameters.rb
|
|
136
158
|
- test/rails_app/config/locales/devise.en.yml
|
|
@@ -146,7 +168,7 @@ homepage: https://github.com/scambra/devise_invitable
|
|
|
146
168
|
licenses:
|
|
147
169
|
- MIT
|
|
148
170
|
metadata: {}
|
|
149
|
-
post_install_message:
|
|
171
|
+
post_install_message:
|
|
150
172
|
rdoc_options:
|
|
151
173
|
- "--main"
|
|
152
174
|
- README.rdoc
|
|
@@ -164,9 +186,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
164
186
|
- !ruby/object:Gem::Version
|
|
165
187
|
version: '0'
|
|
166
188
|
requirements: []
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
signing_key:
|
|
189
|
+
rubygems_version: 3.0.8
|
|
190
|
+
signing_key:
|
|
170
191
|
specification_version: 4
|
|
171
192
|
summary: An invitation strategy for Devise
|
|
172
193
|
test_files:
|
|
@@ -212,6 +233,7 @@ test_files:
|
|
|
212
233
|
- test/rails_app/config/initializers/devise.rb
|
|
213
234
|
- test/rails_app/config/initializers/inflections.rb
|
|
214
235
|
- test/rails_app/config/initializers/mime_types.rb
|
|
236
|
+
- test/rails_app/config/initializers/secret_token.rb
|
|
215
237
|
- test/rails_app/config/initializers/session_store.rb
|
|
216
238
|
- test/rails_app/config/initializers/wrap_parameters.rb
|
|
217
239
|
- test/rails_app/config/locales/devise.en.yml
|