devise 4.5.0 → 4.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +96 -4
  3. data/MIT-LICENSE +2 -1
  4. data/README.md +93 -56
  5. data/app/controllers/devise/passwords_controller.rb +1 -0
  6. data/app/controllers/devise/registrations_controller.rb +25 -7
  7. data/app/controllers/devise_controller.rb +2 -2
  8. data/app/helpers/devise_helper.rb +21 -18
  9. data/app/mailers/devise/mailer.rb +5 -5
  10. data/app/views/devise/confirmations/new.html.erb +1 -1
  11. data/app/views/devise/passwords/edit.html.erb +2 -2
  12. data/app/views/devise/passwords/new.html.erb +1 -1
  13. data/app/views/devise/registrations/edit.html.erb +1 -1
  14. data/app/views/devise/registrations/new.html.erb +1 -1
  15. data/app/views/devise/sessions/new.html.erb +2 -2
  16. data/app/views/devise/shared/_error_messages.html.erb +15 -0
  17. data/app/views/devise/shared/_links.html.erb +8 -8
  18. data/app/views/devise/unlocks/new.html.erb +1 -1
  19. data/config/locales/en.yml +3 -2
  20. data/lib/devise/controllers/helpers.rb +8 -8
  21. data/lib/devise/controllers/sign_in_out.rb +6 -4
  22. data/lib/devise/controllers/url_helpers.rb +1 -1
  23. data/lib/devise/failure_app.rb +23 -5
  24. data/lib/devise/hooks/lockable.rb +2 -5
  25. data/lib/devise/hooks/timeoutable.rb +2 -2
  26. data/lib/devise/mapping.rb +1 -1
  27. data/lib/devise/models/authenticatable.rb +20 -24
  28. data/lib/devise/models/confirmable.rb +18 -3
  29. data/lib/devise/models/database_authenticatable.rb +44 -6
  30. data/lib/devise/models/lockable.rb +12 -4
  31. data/lib/devise/models/omniauthable.rb +2 -2
  32. data/lib/devise/models/recoverable.rb +3 -3
  33. data/lib/devise/models/registerable.rb +2 -0
  34. data/lib/devise/models/rememberable.rb +2 -2
  35. data/lib/devise/models/timeoutable.rb +1 -1
  36. data/lib/devise/models/trackable.rb +1 -1
  37. data/lib/devise/models/validatable.rb +2 -2
  38. data/lib/devise/omniauth.rb +2 -5
  39. data/lib/devise/rails/deprecated_constant_accessor.rb +39 -0
  40. data/lib/devise/rails/routes.rb +6 -6
  41. data/lib/devise/strategies/authenticatable.rb +1 -1
  42. data/lib/devise/strategies/database_authenticatable.rb +3 -0
  43. data/lib/devise/test/controller_helpers.rb +4 -2
  44. data/lib/devise/test/integration_helpers.rb +1 -1
  45. data/lib/devise/version.rb +1 -1
  46. data/lib/devise.rb +14 -6
  47. data/lib/generators/active_record/devise_generator.rb +21 -6
  48. data/lib/generators/devise/controllers_generator.rb +1 -1
  49. data/lib/generators/devise/devise_generator.rb +1 -1
  50. data/lib/generators/devise/install_generator.rb +1 -5
  51. data/lib/generators/devise/views_generator.rb +1 -1
  52. data/lib/generators/templates/README +9 -1
  53. data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +1 -1
  54. data/lib/generators/templates/devise.rb +27 -6
  55. data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +4 -1
  56. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +1 -1
  57. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +1 -1
  58. metadata +18 -318
  59. data/.gitignore +0 -10
  60. data/.travis.yml +0 -69
  61. data/.yardopts +0 -9
  62. data/CODE_OF_CONDUCT.md +0 -22
  63. data/CONTRIBUTING.md +0 -79
  64. data/Gemfile +0 -39
  65. data/Gemfile.lock +0 -202
  66. data/ISSUE_TEMPLATE.md +0 -19
  67. data/Rakefile +0 -37
  68. data/bin/test +0 -13
  69. data/devise.gemspec +0 -28
  70. data/devise.png +0 -0
  71. data/gemfiles/Gemfile.rails-4.1-stable +0 -32
  72. data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -171
  73. data/gemfiles/Gemfile.rails-4.2-stable +0 -32
  74. data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -192
  75. data/gemfiles/Gemfile.rails-5.0-stable +0 -33
  76. data/gemfiles/Gemfile.rails-5.0-stable.lock +0 -192
  77. data/gemfiles/Gemfile.rails-5.2-rc1 +0 -26
  78. data/gemfiles/Gemfile.rails-5.2-rc1.lock +0 -201
  79. data/guides/bug_report_templates/integration_test.rb +0 -106
  80. data/test/controllers/custom_registrations_controller_test.rb +0 -42
  81. data/test/controllers/custom_strategy_test.rb +0 -66
  82. data/test/controllers/helper_methods_test.rb +0 -24
  83. data/test/controllers/helpers_test.rb +0 -318
  84. data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -53
  85. data/test/controllers/internal_helpers_test.rb +0 -129
  86. data/test/controllers/load_hooks_controller_test.rb +0 -21
  87. data/test/controllers/passwords_controller_test.rb +0 -34
  88. data/test/controllers/sessions_controller_test.rb +0 -108
  89. data/test/controllers/url_helpers_test.rb +0 -67
  90. data/test/delegator_test.rb +0 -21
  91. data/test/devise_test.rb +0 -109
  92. data/test/failure_app_test.rb +0 -346
  93. data/test/generators/active_record_generator_test.rb +0 -130
  94. data/test/generators/controllers_generator_test.rb +0 -50
  95. data/test/generators/devise_generator_test.rb +0 -41
  96. data/test/generators/install_generator_test.rb +0 -26
  97. data/test/generators/mongoid_generator_test.rb +0 -25
  98. data/test/generators/views_generator_test.rb +0 -105
  99. data/test/helpers/devise_helper_test.rb +0 -51
  100. data/test/integration/authenticatable_test.rb +0 -706
  101. data/test/integration/confirmable_test.rb +0 -326
  102. data/test/integration/database_authenticatable_test.rb +0 -110
  103. data/test/integration/http_authenticatable_test.rb +0 -114
  104. data/test/integration/lockable_test.rb +0 -242
  105. data/test/integration/mounted_engine_test.rb +0 -38
  106. data/test/integration/omniauthable_test.rb +0 -148
  107. data/test/integration/recoverable_test.rb +0 -349
  108. data/test/integration/registerable_test.rb +0 -365
  109. data/test/integration/rememberable_test.rb +0 -219
  110. data/test/integration/timeoutable_test.rb +0 -186
  111. data/test/integration/trackable_test.rb +0 -99
  112. data/test/mailers/confirmation_instructions_test.rb +0 -117
  113. data/test/mailers/email_changed_test.rb +0 -132
  114. data/test/mailers/mailer_test.rb +0 -20
  115. data/test/mailers/reset_password_instructions_test.rb +0 -98
  116. data/test/mailers/unlock_instructions_test.rb +0 -93
  117. data/test/mapping_test.rb +0 -136
  118. data/test/models/authenticatable_test.rb +0 -25
  119. data/test/models/confirmable_test.rb +0 -549
  120. data/test/models/database_authenticatable_test.rb +0 -290
  121. data/test/models/lockable_test.rb +0 -352
  122. data/test/models/omniauthable_test.rb +0 -9
  123. data/test/models/recoverable_test.rb +0 -263
  124. data/test/models/registerable_test.rb +0 -9
  125. data/test/models/rememberable_test.rb +0 -184
  126. data/test/models/serializable_test.rb +0 -60
  127. data/test/models/timeoutable_test.rb +0 -53
  128. data/test/models/trackable_test.rb +0 -80
  129. data/test/models/validatable_test.rb +0 -121
  130. data/test/models_test.rb +0 -155
  131. data/test/omniauth/config_test.rb +0 -61
  132. data/test/omniauth/url_helpers_test.rb +0 -53
  133. data/test/orm/active_record.rb +0 -24
  134. data/test/orm/mongoid.rb +0 -15
  135. data/test/parameter_sanitizer_test.rb +0 -105
  136. data/test/rails_app/Rakefile +0 -6
  137. data/test/rails_app/app/active_record/admin.rb +0 -8
  138. data/test/rails_app/app/active_record/shim.rb +0 -4
  139. data/test/rails_app/app/active_record/user.rb +0 -20
  140. data/test/rails_app/app/active_record/user_on_engine.rb +0 -9
  141. data/test/rails_app/app/active_record/user_on_main_app.rb +0 -9
  142. data/test/rails_app/app/active_record/user_with_validations.rb +0 -12
  143. data/test/rails_app/app/active_record/user_without_email.rb +0 -10
  144. data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -8
  145. data/test/rails_app/app/controllers/admins_controller.rb +0 -8
  146. data/test/rails_app/app/controllers/application_controller.rb +0 -13
  147. data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -32
  148. data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -33
  149. data/test/rails_app/app/controllers/home_controller.rb +0 -31
  150. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -4
  151. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -4
  152. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -16
  153. data/test/rails_app/app/controllers/users_controller.rb +0 -33
  154. data/test/rails_app/app/helpers/application_helper.rb +0 -5
  155. data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -5
  156. data/test/rails_app/app/mailers/users/mailer.rb +0 -5
  157. data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -6
  158. data/test/rails_app/app/mongoid/admin.rb +0 -31
  159. data/test/rails_app/app/mongoid/shim.rb +0 -25
  160. data/test/rails_app/app/mongoid/user.rb +0 -50
  161. data/test/rails_app/app/mongoid/user_on_engine.rb +0 -41
  162. data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -41
  163. data/test/rails_app/app/mongoid/user_with_validations.rb +0 -37
  164. data/test/rails_app/app/mongoid/user_without_email.rb +0 -35
  165. data/test/rails_app/app/views/admins/index.html.erb +0 -1
  166. data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
  167. data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
  168. data/test/rails_app/app/views/home/index.html.erb +0 -1
  169. data/test/rails_app/app/views/home/join.html.erb +0 -1
  170. data/test/rails_app/app/views/home/private.html.erb +0 -1
  171. data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
  172. data/test/rails_app/app/views/layouts/application.html.erb +0 -24
  173. data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
  174. data/test/rails_app/app/views/users/index.html.erb +0 -1
  175. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
  176. data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
  177. data/test/rails_app/bin/bundle +0 -3
  178. data/test/rails_app/bin/rails +0 -4
  179. data/test/rails_app/bin/rake +0 -4
  180. data/test/rails_app/config/application.rb +0 -48
  181. data/test/rails_app/config/boot.rb +0 -27
  182. data/test/rails_app/config/database.yml +0 -18
  183. data/test/rails_app/config/environment.rb +0 -7
  184. data/test/rails_app/config/environments/development.rb +0 -32
  185. data/test/rails_app/config/environments/production.rb +0 -88
  186. data/test/rails_app/config/environments/test.rb +0 -47
  187. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -9
  188. data/test/rails_app/config/initializers/devise.rb +0 -187
  189. data/test/rails_app/config/initializers/inflections.rb +0 -4
  190. data/test/rails_app/config/initializers/secret_token.rb +0 -5
  191. data/test/rails_app/config/initializers/session_store.rb +0 -3
  192. data/test/rails_app/config/routes.rb +0 -128
  193. data/test/rails_app/config.ru +0 -4
  194. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -77
  195. data/test/rails_app/db/schema.rb +0 -57
  196. data/test/rails_app/lib/lazy_load_test_module.rb +0 -5
  197. data/test/rails_app/lib/shared_admin.rb +0 -23
  198. data/test/rails_app/lib/shared_user.rb +0 -32
  199. data/test/rails_app/lib/shared_user_without_email.rb +0 -28
  200. data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -15
  201. data/test/rails_app/public/404.html +0 -26
  202. data/test/rails_app/public/422.html +0 -26
  203. data/test/rails_app/public/500.html +0 -26
  204. data/test/rails_app/public/favicon.ico +0 -0
  205. data/test/rails_test.rb +0 -11
  206. data/test/routes_test.rb +0 -281
  207. data/test/secret_key_finder_test.rb +0 -121
  208. data/test/support/action_controller/record_identifier.rb +0 -12
  209. data/test/support/assertions.rb +0 -30
  210. data/test/support/helpers.rb +0 -83
  211. data/test/support/http_method_compatibility.rb +0 -53
  212. data/test/support/integration.rb +0 -95
  213. data/test/support/locale/en.yml +0 -8
  214. data/test/support/mongoid.yml +0 -6
  215. data/test/support/webrat/integrations/rails.rb +0 -35
  216. data/test/test/controller_helpers_test.rb +0 -193
  217. data/test/test/integration_helpers_test.rb +0 -34
  218. data/test/test_helper.rb +0 -36
  219. data/test/test_models.rb +0 -35
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Valim
8
8
  - Carlos Antônio
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-08-15 00:00:00.000000000 Z
12
+ date: 2021-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: warden
@@ -60,9 +60,6 @@ dependencies:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: 4.1.0
63
- - - "<"
64
- - !ruby/object:Gem::Version
65
- version: '6.0'
66
63
  type: :runtime
67
64
  prerelease: false
68
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,9 +67,6 @@ dependencies:
70
67
  - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: 4.1.0
73
- - - "<"
74
- - !ruby/object:Gem::Version
75
- version: '6.0'
76
70
  - !ruby/object:Gem::Dependency
77
71
  name: responders
78
72
  requirement: !ruby/object:Gem::Requirement
@@ -88,23 +82,14 @@ dependencies:
88
82
  - !ruby/object:Gem::Version
89
83
  version: '0'
90
84
  description: Flexible authentication solution for Rails with Warden
91
- email: contact@plataformatec.com.br
85
+ email: heartcombo@googlegroups.com
92
86
  executables: []
93
87
  extensions: []
94
88
  extra_rdoc_files: []
95
89
  files:
96
- - ".gitignore"
97
- - ".travis.yml"
98
- - ".yardopts"
99
90
  - CHANGELOG.md
100
- - CODE_OF_CONDUCT.md
101
- - CONTRIBUTING.md
102
- - Gemfile
103
- - Gemfile.lock
104
- - ISSUE_TEMPLATE.md
105
91
  - MIT-LICENSE
106
92
  - README.md
107
- - Rakefile
108
93
  - app/controllers/devise/confirmations_controller.rb
109
94
  - app/controllers/devise/omniauth_callbacks_controller.rb
110
95
  - app/controllers/devise/passwords_controller.rb
@@ -125,21 +110,10 @@ files:
125
110
  - app/views/devise/registrations/edit.html.erb
126
111
  - app/views/devise/registrations/new.html.erb
127
112
  - app/views/devise/sessions/new.html.erb
113
+ - app/views/devise/shared/_error_messages.html.erb
128
114
  - app/views/devise/shared/_links.html.erb
129
115
  - app/views/devise/unlocks/new.html.erb
130
- - bin/test
131
116
  - config/locales/en.yml
132
- - devise.gemspec
133
- - devise.png
134
- - gemfiles/Gemfile.rails-4.1-stable
135
- - gemfiles/Gemfile.rails-4.1-stable.lock
136
- - gemfiles/Gemfile.rails-4.2-stable
137
- - gemfiles/Gemfile.rails-4.2-stable.lock
138
- - gemfiles/Gemfile.rails-5.0-stable
139
- - gemfiles/Gemfile.rails-5.0-stable.lock
140
- - gemfiles/Gemfile.rails-5.2-rc1
141
- - gemfiles/Gemfile.rails-5.2-rc1.lock
142
- - guides/bug_report_templates/integration_test.rb
143
117
  - lib/devise.rb
144
118
  - lib/devise/controllers/helpers.rb
145
119
  - lib/devise/controllers/rememberable.rb
@@ -181,6 +155,7 @@ files:
181
155
  - lib/devise/parameter_filter.rb
182
156
  - lib/devise/parameter_sanitizer.rb
183
157
  - lib/devise/rails.rb
158
+ - lib/devise/rails/deprecated_constant_accessor.rb
184
159
  - lib/devise/rails/routes.rb
185
160
  - lib/devise/rails/warden_compat.rb
186
161
  - lib/devise/secret_key_finder.rb
@@ -224,151 +199,17 @@ files:
224
199
  - lib/generators/templates/simple_form_for/registrations/new.html.erb
225
200
  - lib/generators/templates/simple_form_for/sessions/new.html.erb
226
201
  - lib/generators/templates/simple_form_for/unlocks/new.html.erb
227
- - test/controllers/custom_registrations_controller_test.rb
228
- - test/controllers/custom_strategy_test.rb
229
- - test/controllers/helper_methods_test.rb
230
- - test/controllers/helpers_test.rb
231
- - test/controllers/inherited_controller_i18n_messages_test.rb
232
- - test/controllers/internal_helpers_test.rb
233
- - test/controllers/load_hooks_controller_test.rb
234
- - test/controllers/passwords_controller_test.rb
235
- - test/controllers/sessions_controller_test.rb
236
- - test/controllers/url_helpers_test.rb
237
- - test/delegator_test.rb
238
- - test/devise_test.rb
239
- - test/failure_app_test.rb
240
- - test/generators/active_record_generator_test.rb
241
- - test/generators/controllers_generator_test.rb
242
- - test/generators/devise_generator_test.rb
243
- - test/generators/install_generator_test.rb
244
- - test/generators/mongoid_generator_test.rb
245
- - test/generators/views_generator_test.rb
246
- - test/helpers/devise_helper_test.rb
247
- - test/integration/authenticatable_test.rb
248
- - test/integration/confirmable_test.rb
249
- - test/integration/database_authenticatable_test.rb
250
- - test/integration/http_authenticatable_test.rb
251
- - test/integration/lockable_test.rb
252
- - test/integration/mounted_engine_test.rb
253
- - test/integration/omniauthable_test.rb
254
- - test/integration/recoverable_test.rb
255
- - test/integration/registerable_test.rb
256
- - test/integration/rememberable_test.rb
257
- - test/integration/timeoutable_test.rb
258
- - test/integration/trackable_test.rb
259
- - test/mailers/confirmation_instructions_test.rb
260
- - test/mailers/email_changed_test.rb
261
- - test/mailers/mailer_test.rb
262
- - test/mailers/reset_password_instructions_test.rb
263
- - test/mailers/unlock_instructions_test.rb
264
- - test/mapping_test.rb
265
- - test/models/authenticatable_test.rb
266
- - test/models/confirmable_test.rb
267
- - test/models/database_authenticatable_test.rb
268
- - test/models/lockable_test.rb
269
- - test/models/omniauthable_test.rb
270
- - test/models/recoverable_test.rb
271
- - test/models/registerable_test.rb
272
- - test/models/rememberable_test.rb
273
- - test/models/serializable_test.rb
274
- - test/models/timeoutable_test.rb
275
- - test/models/trackable_test.rb
276
- - test/models/validatable_test.rb
277
- - test/models_test.rb
278
- - test/omniauth/config_test.rb
279
- - test/omniauth/url_helpers_test.rb
280
- - test/orm/active_record.rb
281
- - test/orm/mongoid.rb
282
- - test/parameter_sanitizer_test.rb
283
- - test/rails_app/Rakefile
284
- - test/rails_app/app/active_record/admin.rb
285
- - test/rails_app/app/active_record/shim.rb
286
- - test/rails_app/app/active_record/user.rb
287
- - test/rails_app/app/active_record/user_on_engine.rb
288
- - test/rails_app/app/active_record/user_on_main_app.rb
289
- - test/rails_app/app/active_record/user_with_validations.rb
290
- - test/rails_app/app/active_record/user_without_email.rb
291
- - test/rails_app/app/controllers/admins/sessions_controller.rb
292
- - test/rails_app/app/controllers/admins_controller.rb
293
- - test/rails_app/app/controllers/application_controller.rb
294
- - test/rails_app/app/controllers/application_with_fake_engine.rb
295
- - test/rails_app/app/controllers/custom/registrations_controller.rb
296
- - test/rails_app/app/controllers/home_controller.rb
297
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
298
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
299
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
300
- - test/rails_app/app/controllers/users_controller.rb
301
- - test/rails_app/app/helpers/application_helper.rb
302
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
303
- - test/rails_app/app/mailers/users/mailer.rb
304
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
305
- - test/rails_app/app/mongoid/admin.rb
306
- - test/rails_app/app/mongoid/shim.rb
307
- - test/rails_app/app/mongoid/user.rb
308
- - test/rails_app/app/mongoid/user_on_engine.rb
309
- - test/rails_app/app/mongoid/user_on_main_app.rb
310
- - test/rails_app/app/mongoid/user_with_validations.rb
311
- - test/rails_app/app/mongoid/user_without_email.rb
312
- - test/rails_app/app/views/admins/index.html.erb
313
- - test/rails_app/app/views/admins/sessions/new.html.erb
314
- - test/rails_app/app/views/home/admin_dashboard.html.erb
315
- - test/rails_app/app/views/home/index.html.erb
316
- - test/rails_app/app/views/home/join.html.erb
317
- - test/rails_app/app/views/home/private.html.erb
318
- - test/rails_app/app/views/home/user_dashboard.html.erb
319
- - test/rails_app/app/views/layouts/application.html.erb
320
- - test/rails_app/app/views/users/edit_form.html.erb
321
- - test/rails_app/app/views/users/index.html.erb
322
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
323
- - test/rails_app/app/views/users/sessions/new.html.erb
324
- - test/rails_app/bin/bundle
325
- - test/rails_app/bin/rails
326
- - test/rails_app/bin/rake
327
- - test/rails_app/config.ru
328
- - test/rails_app/config/application.rb
329
- - test/rails_app/config/boot.rb
330
- - test/rails_app/config/database.yml
331
- - test/rails_app/config/environment.rb
332
- - test/rails_app/config/environments/development.rb
333
- - test/rails_app/config/environments/production.rb
334
- - test/rails_app/config/environments/test.rb
335
- - test/rails_app/config/initializers/backtrace_silencers.rb
336
- - test/rails_app/config/initializers/devise.rb
337
- - test/rails_app/config/initializers/inflections.rb
338
- - test/rails_app/config/initializers/secret_token.rb
339
- - test/rails_app/config/initializers/session_store.rb
340
- - test/rails_app/config/routes.rb
341
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
342
- - test/rails_app/db/schema.rb
343
- - test/rails_app/lib/lazy_load_test_module.rb
344
- - test/rails_app/lib/shared_admin.rb
345
- - test/rails_app/lib/shared_user.rb
346
- - test/rails_app/lib/shared_user_without_email.rb
347
- - test/rails_app/lib/shared_user_without_omniauth.rb
348
- - test/rails_app/public/404.html
349
- - test/rails_app/public/422.html
350
- - test/rails_app/public/500.html
351
- - test/rails_app/public/favicon.ico
352
- - test/rails_test.rb
353
- - test/routes_test.rb
354
- - test/secret_key_finder_test.rb
355
- - test/support/action_controller/record_identifier.rb
356
- - test/support/assertions.rb
357
- - test/support/helpers.rb
358
- - test/support/http_method_compatibility.rb
359
- - test/support/integration.rb
360
- - test/support/locale/en.yml
361
- - test/support/mongoid.yml
362
- - test/support/webrat/integrations/rails.rb
363
- - test/test/controller_helpers_test.rb
364
- - test/test/integration_helpers_test.rb
365
- - test/test_helper.rb
366
- - test/test_models.rb
367
- homepage: https://github.com/plataformatec/devise
202
+ homepage: https://github.com/heartcombo/devise
368
203
  licenses:
369
204
  - MIT
370
- metadata: {}
371
- post_install_message:
205
+ metadata:
206
+ homepage_uri: https://github.com/heartcombo/devise
207
+ documentation_uri: https://rubydoc.info/github/heartcombo/devise
208
+ changelog_uri: https://github.com/heartcombo/devise/blob/master/CHANGELOG.md
209
+ source_code_uri: https://github.com/heartcombo/devise
210
+ bug_tracker_uri: https://github.com/heartcombo/devise/issues
211
+ wiki_uri: https://github.com/heartcombo/devise/wiki
212
+ post_install_message:
372
213
  rdoc_options: []
373
214
  require_paths:
374
215
  - lib
@@ -383,149 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
383
224
  - !ruby/object:Gem::Version
384
225
  version: '0'
385
226
  requirements: []
386
- rubyforge_project:
387
- rubygems_version: 2.7.4
388
- signing_key:
227
+ rubygems_version: 3.1.6
228
+ signing_key:
389
229
  specification_version: 4
390
230
  summary: Flexible authentication solution for Rails with Warden
391
- test_files:
392
- - test/controllers/custom_registrations_controller_test.rb
393
- - test/controllers/custom_strategy_test.rb
394
- - test/controllers/helper_methods_test.rb
395
- - test/controllers/helpers_test.rb
396
- - test/controllers/inherited_controller_i18n_messages_test.rb
397
- - test/controllers/internal_helpers_test.rb
398
- - test/controllers/load_hooks_controller_test.rb
399
- - test/controllers/passwords_controller_test.rb
400
- - test/controllers/sessions_controller_test.rb
401
- - test/controllers/url_helpers_test.rb
402
- - test/delegator_test.rb
403
- - test/devise_test.rb
404
- - test/failure_app_test.rb
405
- - test/generators/active_record_generator_test.rb
406
- - test/generators/controllers_generator_test.rb
407
- - test/generators/devise_generator_test.rb
408
- - test/generators/install_generator_test.rb
409
- - test/generators/mongoid_generator_test.rb
410
- - test/generators/views_generator_test.rb
411
- - test/helpers/devise_helper_test.rb
412
- - test/integration/authenticatable_test.rb
413
- - test/integration/confirmable_test.rb
414
- - test/integration/database_authenticatable_test.rb
415
- - test/integration/http_authenticatable_test.rb
416
- - test/integration/lockable_test.rb
417
- - test/integration/mounted_engine_test.rb
418
- - test/integration/omniauthable_test.rb
419
- - test/integration/recoverable_test.rb
420
- - test/integration/registerable_test.rb
421
- - test/integration/rememberable_test.rb
422
- - test/integration/timeoutable_test.rb
423
- - test/integration/trackable_test.rb
424
- - test/mailers/confirmation_instructions_test.rb
425
- - test/mailers/email_changed_test.rb
426
- - test/mailers/mailer_test.rb
427
- - test/mailers/reset_password_instructions_test.rb
428
- - test/mailers/unlock_instructions_test.rb
429
- - test/mapping_test.rb
430
- - test/models/authenticatable_test.rb
431
- - test/models/confirmable_test.rb
432
- - test/models/database_authenticatable_test.rb
433
- - test/models/lockable_test.rb
434
- - test/models/omniauthable_test.rb
435
- - test/models/recoverable_test.rb
436
- - test/models/registerable_test.rb
437
- - test/models/rememberable_test.rb
438
- - test/models/serializable_test.rb
439
- - test/models/timeoutable_test.rb
440
- - test/models/trackable_test.rb
441
- - test/models/validatable_test.rb
442
- - test/models_test.rb
443
- - test/omniauth/config_test.rb
444
- - test/omniauth/url_helpers_test.rb
445
- - test/orm/active_record.rb
446
- - test/orm/mongoid.rb
447
- - test/parameter_sanitizer_test.rb
448
- - test/rails_app/Rakefile
449
- - test/rails_app/app/active_record/admin.rb
450
- - test/rails_app/app/active_record/shim.rb
451
- - test/rails_app/app/active_record/user.rb
452
- - test/rails_app/app/active_record/user_on_engine.rb
453
- - test/rails_app/app/active_record/user_on_main_app.rb
454
- - test/rails_app/app/active_record/user_with_validations.rb
455
- - test/rails_app/app/active_record/user_without_email.rb
456
- - test/rails_app/app/controllers/admins/sessions_controller.rb
457
- - test/rails_app/app/controllers/admins_controller.rb
458
- - test/rails_app/app/controllers/application_controller.rb
459
- - test/rails_app/app/controllers/application_with_fake_engine.rb
460
- - test/rails_app/app/controllers/custom/registrations_controller.rb
461
- - test/rails_app/app/controllers/home_controller.rb
462
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
463
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
464
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
465
- - test/rails_app/app/controllers/users_controller.rb
466
- - test/rails_app/app/helpers/application_helper.rb
467
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
468
- - test/rails_app/app/mailers/users/mailer.rb
469
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
470
- - test/rails_app/app/mongoid/admin.rb
471
- - test/rails_app/app/mongoid/shim.rb
472
- - test/rails_app/app/mongoid/user.rb
473
- - test/rails_app/app/mongoid/user_on_engine.rb
474
- - test/rails_app/app/mongoid/user_on_main_app.rb
475
- - test/rails_app/app/mongoid/user_with_validations.rb
476
- - test/rails_app/app/mongoid/user_without_email.rb
477
- - test/rails_app/app/views/admins/index.html.erb
478
- - test/rails_app/app/views/admins/sessions/new.html.erb
479
- - test/rails_app/app/views/home/admin_dashboard.html.erb
480
- - test/rails_app/app/views/home/index.html.erb
481
- - test/rails_app/app/views/home/join.html.erb
482
- - test/rails_app/app/views/home/private.html.erb
483
- - test/rails_app/app/views/home/user_dashboard.html.erb
484
- - test/rails_app/app/views/layouts/application.html.erb
485
- - test/rails_app/app/views/users/edit_form.html.erb
486
- - test/rails_app/app/views/users/index.html.erb
487
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
488
- - test/rails_app/app/views/users/sessions/new.html.erb
489
- - test/rails_app/bin/bundle
490
- - test/rails_app/bin/rails
491
- - test/rails_app/bin/rake
492
- - test/rails_app/config.ru
493
- - test/rails_app/config/application.rb
494
- - test/rails_app/config/boot.rb
495
- - test/rails_app/config/database.yml
496
- - test/rails_app/config/environment.rb
497
- - test/rails_app/config/environments/development.rb
498
- - test/rails_app/config/environments/production.rb
499
- - test/rails_app/config/environments/test.rb
500
- - test/rails_app/config/initializers/backtrace_silencers.rb
501
- - test/rails_app/config/initializers/devise.rb
502
- - test/rails_app/config/initializers/inflections.rb
503
- - test/rails_app/config/initializers/secret_token.rb
504
- - test/rails_app/config/initializers/session_store.rb
505
- - test/rails_app/config/routes.rb
506
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
507
- - test/rails_app/db/schema.rb
508
- - test/rails_app/lib/lazy_load_test_module.rb
509
- - test/rails_app/lib/shared_admin.rb
510
- - test/rails_app/lib/shared_user.rb
511
- - test/rails_app/lib/shared_user_without_email.rb
512
- - test/rails_app/lib/shared_user_without_omniauth.rb
513
- - test/rails_app/public/404.html
514
- - test/rails_app/public/422.html
515
- - test/rails_app/public/500.html
516
- - test/rails_app/public/favicon.ico
517
- - test/rails_test.rb
518
- - test/routes_test.rb
519
- - test/secret_key_finder_test.rb
520
- - test/support/action_controller/record_identifier.rb
521
- - test/support/assertions.rb
522
- - test/support/helpers.rb
523
- - test/support/http_method_compatibility.rb
524
- - test/support/integration.rb
525
- - test/support/locale/en.yml
526
- - test/support/mongoid.yml
527
- - test/support/webrat/integrations/rails.rb
528
- - test/test/controller_helpers_test.rb
529
- - test/test/integration_helpers_test.rb
530
- - test/test_helper.rb
531
- - test/test_models.rb
231
+ test_files: []
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- test/rails_app/log/*
2
- test/rails_app/tmp/*
3
- *~
4
- coverage/*
5
- *.sqlite3
6
- .bundle
7
- rdoc/*
8
- pkg
9
- log
10
- test/tmp/*
data/.travis.yml DELETED
@@ -1,69 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.1.10
5
- - 2.2.10
6
- - 2.3.7
7
- - 2.4.4
8
- - 2.5.1
9
- - ruby-head
10
-
11
- gemfile:
12
- - Gemfile
13
- - gemfiles/Gemfile.rails-5.2-rc1
14
- - gemfiles/Gemfile.rails-5.0-stable
15
- - gemfiles/Gemfile.rails-4.2-stable
16
- - gemfiles/Gemfile.rails-4.1-stable
17
-
18
- matrix:
19
- exclude:
20
- - rvm: 2.1.10
21
- gemfile: Gemfile
22
- - rvm: 2.1.10
23
- gemfile: gemfiles/Gemfile.rails-5.2-rc1
24
- - rvm: 2.1.10
25
- gemfile: gemfiles/Gemfile.rails-5.0-stable
26
- - rvm: 2.2.10
27
- gemfile: gemfiles/Gemfile.rails-5.2-rc1
28
- - rvm: 2.4.4
29
- gemfile: gemfiles/Gemfile.rails-4.1-stable
30
- - rvm: 2.5.1
31
- gemfile: gemfiles/Gemfile.rails-4.1-stable
32
- - rvm: ruby-head
33
- gemfile: gemfiles/Gemfile.rails-4.1-stable
34
- - env: DEVISE_ORM=mongoid
35
- gemfile: Gemfile
36
- - env: DEVISE_ORM=mongoid
37
- gemfile: gemfiles/Gemfile.rails-5.0-stable
38
- - env: DEVISE_ORM=mongoid
39
- gemfile: gemfiles/Gemfile.rails-5.2-rc1
40
- allow_failures:
41
- - rvm: ruby-head
42
- services:
43
- - mongodb
44
-
45
- sudo: false
46
-
47
- cache: bundler
48
-
49
- env:
50
- matrix:
51
- - DEVISE_ORM=active_record
52
- - DEVISE_ORM=mongoid
53
-
54
- before_install:
55
- - gem update --system
56
- - gem install bundler
57
- - "rm ${BUNDLE_GEMFILE}.lock"
58
-
59
- before_script: "bundle update"
60
-
61
- script: "bin/test"
62
-
63
- notifications:
64
- email: false
65
- slack:
66
- on_pull_requests: false
67
- on_success: change
68
- on_failure: always
69
- secure: Q3M+kmude3FjisibEeeGe0wSMXgvwLH+vL7Zrx9//q4QtkfnrQ/BBMvY9KXxPEsNF+eys4YopYjTkJ8uRmeboUATW/oQ4Jrv3+u3zkIHK2sFn/Q2cQWpK5w+CbgEnHPjKYnUu34b09njXTgDlr/mqtbPqrKeZ1dLlpKXCB/q4GY=
data/.yardopts DELETED
@@ -1,9 +0,0 @@
1
- --protected
2
- --no-private
3
- --embed-mixin ClassMethods
4
- -
5
- README.md
6
- CHANGELOG.rdoc
7
- CONTRIBUTING.md
8
- MIT-LICENSE
9
-
data/CODE_OF_CONDUCT.md DELETED
@@ -1,22 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
-
5
- We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6
-
7
- Examples of unacceptable behavior by participants include:
8
-
9
- * The use of sexualized language or imagery
10
- * Personal attacks
11
- * Trolling or insulting/derogatory comments
12
- * Public or private harassment
13
- * Publishing other's private information, such as physical or electronic addresses, without explicit permission
14
- * Other unethical or unprofessional conduct.
15
-
16
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17
-
18
- This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
19
-
20
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by sending an email to [conduct@plataformatec.com.br](conduct@plataformatec.com.br) or contacting one or more of the project maintainers.
21
-
22
- This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
data/CONTRIBUTING.md DELETED
@@ -1,79 +0,0 @@
1
- # How to contribute to Devise
2
-
3
- Thanks for your interest on contributing to Devise! Here are a few general
4
- guidelines on contributing and reporting bugs to Devise that we ask you to
5
- take a look first. Notice that all of your interactions in the project are
6
- expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).
7
-
8
- ## Reporting Issues
9
-
10
- Before reporting a new issue, please be sure that the issue wasn't already
11
- reported or fixed by searching on GitHub through our [issues](https://github.com/plataformatec/devise/issues).
12
-
13
- When creating a new issue, be sure to include a **title and clear description**,
14
- as much relevant information as possible, and either a test case example or
15
- even better a **sample Rails app that replicates the issue** - Devise has a lot
16
- of moving parts and it's functionality can be affected by third party gems, so
17
- we need as much context and details as possible to identify what might be broken
18
- for you. We have a [test case template](guides/bug_report_templates/integration_test.rb)
19
- that can be used to replicate issues with minimal setup.
20
-
21
- Please do not attempt to translate Devise built in views. The views are meant
22
- to be a starting point for fresh apps and not production material - eventually
23
- all applications will require custom views where you can write your own copy and
24
- translate it if the application requires it . For historical references, please look into closed
25
- [Issues/Pull Requests](https://github.com/plataformatec/devise/issues?q=i18n) regarding
26
- internationalization.
27
-
28
- Avoid opening new issues to ask questions in our issues tracker. Please go through
29
- the project wiki, documentation and source code first, or try to ask your question
30
- on [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
31
-
32
- **If you find a security bug, do not report it through GitHub. Please send an
33
- e-mail to [opensource@plataformatec.com.br](mailto:opensource@plataformatec.com.br)
34
- instead.**
35
-
36
- ## Sending Pull Requests
37
-
38
- Before sending a new Pull Request, take a look on existing Pull Requests and Issues
39
- to see if the proposed change or fix has been discussed in the past, or if the
40
- change was already implemented but not yet released.
41
-
42
- We expect new Pull Requests to include enough tests for new or changed behavior,
43
- and we aim to maintain everything as most backwards compatible as possible,
44
- reserving breaking changes to be ship in major releases when necessary - you
45
- can wrap the new code path with a setting toggle from the `Devise` module defined
46
- as `false` by default to require developers to opt-in for the new behavior.
47
-
48
- If your Pull Request includes new or changed behavior, be sure that the changes
49
- are beneficial to a wide range of use cases or it's an application specific change
50
- that might not be so valuable to other applications. Some changes can be introduced
51
- as a new `devise-something` gem instead of belonging to the main codebase.
52
-
53
- When adding new settings, you can take advantage of the [`Devise::Models.config`](https://github.com/plataformatec/devise/blob/245b1f9de0b3386b7913e14b60ea24f43b77feb0/lib/devise/models.rb#L13-L50) method to add class and instance level fallbacks
54
- to the new setting.
55
-
56
- We also welcome Pull Requests that improve our existing documentation (both our
57
- `README.md` and the RDoc sections in the source code) or improve existing rough
58
- edges in our API that might be blocking existing integrations or 3rd party gems.
59
-
60
- ## Other ways to contribute
61
-
62
- We welcome anyone that wants to contribute to Devise to triage and reply to
63
- open issues to help troubleshoot and fix existing bugs on Devise. Here is what
64
- you can do:
65
-
66
- * Help ensure that existing issues follows the recommendations from the
67
- _[Reporting Issues](#reporting-issues)_ section, providing feeback to the issue's
68
- author on what might be missing.
69
- * Review and update the existing content of our [Wiki](https://github.com/plataformatec/devise/wiki)
70
- with up to date instructions and code samples - the wiki was grown with several
71
- different tutorials and references that we can't keep track of everything, so if
72
- there is a page that showcases an integration or customization that you are
73
- familiar with feel free to update it as necessary.
74
- * Review existing Pull Requests, and testing patches against real existing
75
- applications that use Devise.
76
-
77
- Thanks again for your interest on contributing to the project!
78
-
79
- :heart:
data/Gemfile DELETED
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec
6
-
7
- gem "rails", "~> 5.2"
8
- gem "omniauth", "~> 1.3"
9
- gem "oauth2"
10
- gem "omniauth-oauth2"
11
- gem "rdoc"
12
-
13
- gem "activemodel-serializers-xml", github: "rails/activemodel-serializers-xml"
14
-
15
- gem "rails-controller-testing"
16
-
17
- gem "responders", "~> 2.4"
18
-
19
- group :test do
20
- gem "omniauth-facebook"
21
- gem "omniauth-openid"
22
- gem "webrat", "0.7.3", require: false
23
- gem "mocha", "~> 1.1", require: false
24
- end
25
-
26
- platforms :jruby do
27
- gem "activerecord-jdbc-adapter"
28
- gem "activerecord-jdbcsqlite3-adapter"
29
- gem "jruby-openssl"
30
- end
31
-
32
- platforms :ruby do
33
- gem "sqlite3"
34
- end
35
-
36
- # TODO:
37
- # group :mongoid do
38
- # gem "mongoid", "~> 4.0.0"
39
- # end