devise 4.4.2 → 4.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +124 -4
  3. data/MIT-LICENSE +2 -1
  4. data/README.md +97 -61
  5. data/app/controllers/devise/passwords_controller.rb +1 -0
  6. data/app/controllers/devise/registrations_controller.rb +26 -8
  7. data/app/controllers/devise_controller.rb +3 -3
  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 +3 -3
  12. data/app/views/devise/passwords/new.html.erb +1 -1
  13. data/app/views/devise/registrations/edit.html.erb +4 -4
  14. data/app/views/devise/registrations/new.html.erb +3 -3
  15. data/app/views/devise/sessions/new.html.erb +3 -3
  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 +8 -3
  22. data/lib/devise/controllers/url_helpers.rb +1 -1
  23. data/lib/devise/failure_app.rb +25 -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 +51 -48
  28. data/lib/devise/models/confirmable.rb +18 -3
  29. data/lib/devise/models/database_authenticatable.rb +51 -13
  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 +9 -2
  37. data/lib/devise/models/validatable.rb +2 -2
  38. data/lib/devise/omniauth.rb +2 -5
  39. data/lib/devise/parameter_filter.rb +2 -0
  40. data/lib/devise/parameter_sanitizer.rb +13 -1
  41. data/lib/devise/rails/deprecated_constant_accessor.rb +39 -0
  42. data/lib/devise/rails/routes.rb +6 -6
  43. data/lib/devise/rails.rb +1 -7
  44. data/lib/devise/secret_key_finder.rb +27 -0
  45. data/lib/devise/strategies/authenticatable.rb +1 -1
  46. data/lib/devise/strategies/database_authenticatable.rb +6 -1
  47. data/lib/devise/test/controller_helpers.rb +4 -2
  48. data/lib/devise/test/integration_helpers.rb +1 -1
  49. data/lib/devise/version.rb +1 -1
  50. data/lib/devise.rb +15 -6
  51. data/lib/generators/active_record/devise_generator.rb +26 -11
  52. data/lib/generators/devise/controllers_generator.rb +1 -1
  53. data/lib/generators/devise/devise_generator.rb +1 -1
  54. data/lib/generators/devise/install_generator.rb +1 -5
  55. data/lib/generators/devise/orm_helpers.rb +2 -2
  56. data/lib/generators/devise/views_generator.rb +1 -1
  57. data/lib/generators/mongoid/devise_generator.rb +5 -5
  58. data/lib/generators/templates/README +9 -1
  59. data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +1 -1
  60. data/lib/generators/templates/devise.rb +34 -6
  61. data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +5 -1
  62. data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +10 -2
  63. data/lib/generators/templates/simple_form_for/passwords/new.html.erb +4 -1
  64. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +11 -3
  65. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +11 -3
  66. data/lib/generators/templates/simple_form_for/sessions/new.html.erb +7 -2
  67. data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +4 -1
  68. metadata +19 -314
  69. data/.gitignore +0 -10
  70. data/.travis.yml +0 -68
  71. data/.yardopts +0 -9
  72. data/CODE_OF_CONDUCT.md +0 -22
  73. data/CONTRIBUTING.md +0 -79
  74. data/Gemfile +0 -39
  75. data/Gemfile.lock +0 -193
  76. data/ISSUE_TEMPLATE.md +0 -19
  77. data/Rakefile +0 -37
  78. data/bin/test +0 -13
  79. data/devise.gemspec +0 -28
  80. data/devise.png +0 -0
  81. data/gemfiles/Gemfile.rails-4.1-stable +0 -32
  82. data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -171
  83. data/gemfiles/Gemfile.rails-4.2-stable +0 -32
  84. data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -192
  85. data/gemfiles/Gemfile.rails-5.0-stable +0 -33
  86. data/gemfiles/Gemfile.rails-5.0-stable.lock +0 -192
  87. data/gemfiles/Gemfile.rails-5.2-rc1 +0 -26
  88. data/gemfiles/Gemfile.rails-5.2-rc1.lock +0 -201
  89. data/guides/bug_report_templates/integration_test.rb +0 -106
  90. data/test/controllers/custom_registrations_controller_test.rb +0 -42
  91. data/test/controllers/custom_strategy_test.rb +0 -66
  92. data/test/controllers/helper_methods_test.rb +0 -24
  93. data/test/controllers/helpers_test.rb +0 -318
  94. data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -53
  95. data/test/controllers/internal_helpers_test.rb +0 -129
  96. data/test/controllers/load_hooks_controller_test.rb +0 -21
  97. data/test/controllers/passwords_controller_test.rb +0 -34
  98. data/test/controllers/sessions_controller_test.rb +0 -108
  99. data/test/controllers/url_helpers_test.rb +0 -67
  100. data/test/delegator_test.rb +0 -21
  101. data/test/devise_test.rb +0 -109
  102. data/test/failure_app_test.rb +0 -340
  103. data/test/generators/active_record_generator_test.rb +0 -130
  104. data/test/generators/controllers_generator_test.rb +0 -50
  105. data/test/generators/devise_generator_test.rb +0 -41
  106. data/test/generators/install_generator_test.rb +0 -26
  107. data/test/generators/mongoid_generator_test.rb +0 -25
  108. data/test/generators/views_generator_test.rb +0 -105
  109. data/test/helpers/devise_helper_test.rb +0 -51
  110. data/test/integration/authenticatable_test.rb +0 -706
  111. data/test/integration/confirmable_test.rb +0 -326
  112. data/test/integration/database_authenticatable_test.rb +0 -97
  113. data/test/integration/http_authenticatable_test.rb +0 -114
  114. data/test/integration/lockable_test.rb +0 -242
  115. data/test/integration/mounted_engine_test.rb +0 -38
  116. data/test/integration/omniauthable_test.rb +0 -148
  117. data/test/integration/recoverable_test.rb +0 -349
  118. data/test/integration/registerable_test.rb +0 -365
  119. data/test/integration/rememberable_test.rb +0 -219
  120. data/test/integration/timeoutable_test.rb +0 -186
  121. data/test/integration/trackable_test.rb +0 -99
  122. data/test/mailers/confirmation_instructions_test.rb +0 -117
  123. data/test/mailers/email_changed_test.rb +0 -132
  124. data/test/mailers/mailer_test.rb +0 -20
  125. data/test/mailers/reset_password_instructions_test.rb +0 -98
  126. data/test/mailers/unlock_instructions_test.rb +0 -93
  127. data/test/mapping_test.rb +0 -136
  128. data/test/models/authenticatable_test.rb +0 -25
  129. data/test/models/confirmable_test.rb +0 -549
  130. data/test/models/database_authenticatable_test.rb +0 -283
  131. data/test/models/lockable_test.rb +0 -352
  132. data/test/models/omniauthable_test.rb +0 -9
  133. data/test/models/recoverable_test.rb +0 -263
  134. data/test/models/registerable_test.rb +0 -9
  135. data/test/models/rememberable_test.rb +0 -184
  136. data/test/models/serializable_test.rb +0 -60
  137. data/test/models/timeoutable_test.rb +0 -53
  138. data/test/models/trackable_test.rb +0 -62
  139. data/test/models/validatable_test.rb +0 -121
  140. data/test/models_test.rb +0 -155
  141. data/test/omniauth/config_test.rb +0 -61
  142. data/test/omniauth/url_helpers_test.rb +0 -53
  143. data/test/orm/active_record.rb +0 -24
  144. data/test/orm/mongoid.rb +0 -15
  145. data/test/parameter_sanitizer_test.rb +0 -77
  146. data/test/rails_app/Rakefile +0 -6
  147. data/test/rails_app/app/active_record/admin.rb +0 -8
  148. data/test/rails_app/app/active_record/shim.rb +0 -4
  149. data/test/rails_app/app/active_record/user.rb +0 -20
  150. data/test/rails_app/app/active_record/user_on_engine.rb +0 -9
  151. data/test/rails_app/app/active_record/user_on_main_app.rb +0 -9
  152. data/test/rails_app/app/active_record/user_with_validations.rb +0 -12
  153. data/test/rails_app/app/active_record/user_without_email.rb +0 -10
  154. data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -8
  155. data/test/rails_app/app/controllers/admins_controller.rb +0 -8
  156. data/test/rails_app/app/controllers/application_controller.rb +0 -13
  157. data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -32
  158. data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -33
  159. data/test/rails_app/app/controllers/home_controller.rb +0 -31
  160. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -4
  161. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -4
  162. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -16
  163. data/test/rails_app/app/controllers/users_controller.rb +0 -33
  164. data/test/rails_app/app/helpers/application_helper.rb +0 -5
  165. data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -5
  166. data/test/rails_app/app/mailers/users/mailer.rb +0 -5
  167. data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -6
  168. data/test/rails_app/app/mongoid/admin.rb +0 -31
  169. data/test/rails_app/app/mongoid/shim.rb +0 -25
  170. data/test/rails_app/app/mongoid/user.rb +0 -50
  171. data/test/rails_app/app/mongoid/user_on_engine.rb +0 -41
  172. data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -41
  173. data/test/rails_app/app/mongoid/user_with_validations.rb +0 -37
  174. data/test/rails_app/app/mongoid/user_without_email.rb +0 -35
  175. data/test/rails_app/app/views/admins/index.html.erb +0 -1
  176. data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
  177. data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
  178. data/test/rails_app/app/views/home/index.html.erb +0 -1
  179. data/test/rails_app/app/views/home/join.html.erb +0 -1
  180. data/test/rails_app/app/views/home/private.html.erb +0 -1
  181. data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
  182. data/test/rails_app/app/views/layouts/application.html.erb +0 -24
  183. data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
  184. data/test/rails_app/app/views/users/index.html.erb +0 -1
  185. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
  186. data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
  187. data/test/rails_app/bin/bundle +0 -3
  188. data/test/rails_app/bin/rails +0 -4
  189. data/test/rails_app/bin/rake +0 -4
  190. data/test/rails_app/config/application.rb +0 -48
  191. data/test/rails_app/config/boot.rb +0 -27
  192. data/test/rails_app/config/database.yml +0 -18
  193. data/test/rails_app/config/environment.rb +0 -7
  194. data/test/rails_app/config/environments/development.rb +0 -32
  195. data/test/rails_app/config/environments/production.rb +0 -88
  196. data/test/rails_app/config/environments/test.rb +0 -47
  197. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -9
  198. data/test/rails_app/config/initializers/devise.rb +0 -182
  199. data/test/rails_app/config/initializers/inflections.rb +0 -4
  200. data/test/rails_app/config/initializers/secret_token.rb +0 -5
  201. data/test/rails_app/config/initializers/session_store.rb +0 -3
  202. data/test/rails_app/config/routes.rb +0 -128
  203. data/test/rails_app/config.ru +0 -4
  204. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -77
  205. data/test/rails_app/db/schema.rb +0 -57
  206. data/test/rails_app/lib/shared_admin.rb +0 -23
  207. data/test/rails_app/lib/shared_user.rb +0 -32
  208. data/test/rails_app/lib/shared_user_without_email.rb +0 -28
  209. data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -15
  210. data/test/rails_app/public/404.html +0 -26
  211. data/test/rails_app/public/422.html +0 -26
  212. data/test/rails_app/public/500.html +0 -26
  213. data/test/rails_app/public/favicon.ico +0 -0
  214. data/test/rails_test.rb +0 -11
  215. data/test/routes_test.rb +0 -281
  216. data/test/support/action_controller/record_identifier.rb +0 -12
  217. data/test/support/assertions.rb +0 -30
  218. data/test/support/helpers.rb +0 -83
  219. data/test/support/http_method_compatibility.rb +0 -53
  220. data/test/support/integration.rb +0 -95
  221. data/test/support/locale/en.yml +0 -8
  222. data/test/support/mongoid.yml +0 -6
  223. data/test/support/webrat/integrations/rails.rb +0 -35
  224. data/test/test/controller_helpers_test.rb +0 -193
  225. data/test/test/integration_helpers_test.rb +0 -34
  226. data/test/test_helper.rb +0 -36
  227. 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.4.2
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-03-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,8 +155,10 @@ 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
161
+ - lib/devise/secret_key_finder.rb
186
162
  - lib/devise/strategies/authenticatable.rb
187
163
  - lib/devise/strategies/base.rb
188
164
  - lib/devise/strategies/database_authenticatable.rb
@@ -223,149 +199,17 @@ files:
223
199
  - lib/generators/templates/simple_form_for/registrations/new.html.erb
224
200
  - lib/generators/templates/simple_form_for/sessions/new.html.erb
225
201
  - lib/generators/templates/simple_form_for/unlocks/new.html.erb
226
- - test/controllers/custom_registrations_controller_test.rb
227
- - test/controllers/custom_strategy_test.rb
228
- - test/controllers/helper_methods_test.rb
229
- - test/controllers/helpers_test.rb
230
- - test/controllers/inherited_controller_i18n_messages_test.rb
231
- - test/controllers/internal_helpers_test.rb
232
- - test/controllers/load_hooks_controller_test.rb
233
- - test/controllers/passwords_controller_test.rb
234
- - test/controllers/sessions_controller_test.rb
235
- - test/controllers/url_helpers_test.rb
236
- - test/delegator_test.rb
237
- - test/devise_test.rb
238
- - test/failure_app_test.rb
239
- - test/generators/active_record_generator_test.rb
240
- - test/generators/controllers_generator_test.rb
241
- - test/generators/devise_generator_test.rb
242
- - test/generators/install_generator_test.rb
243
- - test/generators/mongoid_generator_test.rb
244
- - test/generators/views_generator_test.rb
245
- - test/helpers/devise_helper_test.rb
246
- - test/integration/authenticatable_test.rb
247
- - test/integration/confirmable_test.rb
248
- - test/integration/database_authenticatable_test.rb
249
- - test/integration/http_authenticatable_test.rb
250
- - test/integration/lockable_test.rb
251
- - test/integration/mounted_engine_test.rb
252
- - test/integration/omniauthable_test.rb
253
- - test/integration/recoverable_test.rb
254
- - test/integration/registerable_test.rb
255
- - test/integration/rememberable_test.rb
256
- - test/integration/timeoutable_test.rb
257
- - test/integration/trackable_test.rb
258
- - test/mailers/confirmation_instructions_test.rb
259
- - test/mailers/email_changed_test.rb
260
- - test/mailers/mailer_test.rb
261
- - test/mailers/reset_password_instructions_test.rb
262
- - test/mailers/unlock_instructions_test.rb
263
- - test/mapping_test.rb
264
- - test/models/authenticatable_test.rb
265
- - test/models/confirmable_test.rb
266
- - test/models/database_authenticatable_test.rb
267
- - test/models/lockable_test.rb
268
- - test/models/omniauthable_test.rb
269
- - test/models/recoverable_test.rb
270
- - test/models/registerable_test.rb
271
- - test/models/rememberable_test.rb
272
- - test/models/serializable_test.rb
273
- - test/models/timeoutable_test.rb
274
- - test/models/trackable_test.rb
275
- - test/models/validatable_test.rb
276
- - test/models_test.rb
277
- - test/omniauth/config_test.rb
278
- - test/omniauth/url_helpers_test.rb
279
- - test/orm/active_record.rb
280
- - test/orm/mongoid.rb
281
- - test/parameter_sanitizer_test.rb
282
- - test/rails_app/Rakefile
283
- - test/rails_app/app/active_record/admin.rb
284
- - test/rails_app/app/active_record/shim.rb
285
- - test/rails_app/app/active_record/user.rb
286
- - test/rails_app/app/active_record/user_on_engine.rb
287
- - test/rails_app/app/active_record/user_on_main_app.rb
288
- - test/rails_app/app/active_record/user_with_validations.rb
289
- - test/rails_app/app/active_record/user_without_email.rb
290
- - test/rails_app/app/controllers/admins/sessions_controller.rb
291
- - test/rails_app/app/controllers/admins_controller.rb
292
- - test/rails_app/app/controllers/application_controller.rb
293
- - test/rails_app/app/controllers/application_with_fake_engine.rb
294
- - test/rails_app/app/controllers/custom/registrations_controller.rb
295
- - test/rails_app/app/controllers/home_controller.rb
296
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
297
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
298
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
299
- - test/rails_app/app/controllers/users_controller.rb
300
- - test/rails_app/app/helpers/application_helper.rb
301
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
302
- - test/rails_app/app/mailers/users/mailer.rb
303
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
304
- - test/rails_app/app/mongoid/admin.rb
305
- - test/rails_app/app/mongoid/shim.rb
306
- - test/rails_app/app/mongoid/user.rb
307
- - test/rails_app/app/mongoid/user_on_engine.rb
308
- - test/rails_app/app/mongoid/user_on_main_app.rb
309
- - test/rails_app/app/mongoid/user_with_validations.rb
310
- - test/rails_app/app/mongoid/user_without_email.rb
311
- - test/rails_app/app/views/admins/index.html.erb
312
- - test/rails_app/app/views/admins/sessions/new.html.erb
313
- - test/rails_app/app/views/home/admin_dashboard.html.erb
314
- - test/rails_app/app/views/home/index.html.erb
315
- - test/rails_app/app/views/home/join.html.erb
316
- - test/rails_app/app/views/home/private.html.erb
317
- - test/rails_app/app/views/home/user_dashboard.html.erb
318
- - test/rails_app/app/views/layouts/application.html.erb
319
- - test/rails_app/app/views/users/edit_form.html.erb
320
- - test/rails_app/app/views/users/index.html.erb
321
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
322
- - test/rails_app/app/views/users/sessions/new.html.erb
323
- - test/rails_app/bin/bundle
324
- - test/rails_app/bin/rails
325
- - test/rails_app/bin/rake
326
- - test/rails_app/config.ru
327
- - test/rails_app/config/application.rb
328
- - test/rails_app/config/boot.rb
329
- - test/rails_app/config/database.yml
330
- - test/rails_app/config/environment.rb
331
- - test/rails_app/config/environments/development.rb
332
- - test/rails_app/config/environments/production.rb
333
- - test/rails_app/config/environments/test.rb
334
- - test/rails_app/config/initializers/backtrace_silencers.rb
335
- - test/rails_app/config/initializers/devise.rb
336
- - test/rails_app/config/initializers/inflections.rb
337
- - test/rails_app/config/initializers/secret_token.rb
338
- - test/rails_app/config/initializers/session_store.rb
339
- - test/rails_app/config/routes.rb
340
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
341
- - test/rails_app/db/schema.rb
342
- - test/rails_app/lib/shared_admin.rb
343
- - test/rails_app/lib/shared_user.rb
344
- - test/rails_app/lib/shared_user_without_email.rb
345
- - test/rails_app/lib/shared_user_without_omniauth.rb
346
- - test/rails_app/public/404.html
347
- - test/rails_app/public/422.html
348
- - test/rails_app/public/500.html
349
- - test/rails_app/public/favicon.ico
350
- - test/rails_test.rb
351
- - test/routes_test.rb
352
- - test/support/action_controller/record_identifier.rb
353
- - test/support/assertions.rb
354
- - test/support/helpers.rb
355
- - test/support/http_method_compatibility.rb
356
- - test/support/integration.rb
357
- - test/support/locale/en.yml
358
- - test/support/mongoid.yml
359
- - test/support/webrat/integrations/rails.rb
360
- - test/test/controller_helpers_test.rb
361
- - test/test/integration_helpers_test.rb
362
- - test/test_helper.rb
363
- - test/test_models.rb
364
- homepage: https://github.com/plataformatec/devise
202
+ homepage: https://github.com/heartcombo/devise
365
203
  licenses:
366
204
  - MIT
367
- metadata: {}
368
- 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:
369
213
  rdoc_options: []
370
214
  require_paths:
371
215
  - lib
@@ -380,147 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
380
224
  - !ruby/object:Gem::Version
381
225
  version: '0'
382
226
  requirements: []
383
- rubyforge_project:
384
- rubygems_version: 2.7.4
385
- signing_key:
227
+ rubygems_version: 3.1.6
228
+ signing_key:
386
229
  specification_version: 4
387
230
  summary: Flexible authentication solution for Rails with Warden
388
- test_files:
389
- - test/controllers/custom_registrations_controller_test.rb
390
- - test/controllers/custom_strategy_test.rb
391
- - test/controllers/helper_methods_test.rb
392
- - test/controllers/helpers_test.rb
393
- - test/controllers/inherited_controller_i18n_messages_test.rb
394
- - test/controllers/internal_helpers_test.rb
395
- - test/controllers/load_hooks_controller_test.rb
396
- - test/controllers/passwords_controller_test.rb
397
- - test/controllers/sessions_controller_test.rb
398
- - test/controllers/url_helpers_test.rb
399
- - test/delegator_test.rb
400
- - test/devise_test.rb
401
- - test/failure_app_test.rb
402
- - test/generators/active_record_generator_test.rb
403
- - test/generators/controllers_generator_test.rb
404
- - test/generators/devise_generator_test.rb
405
- - test/generators/install_generator_test.rb
406
- - test/generators/mongoid_generator_test.rb
407
- - test/generators/views_generator_test.rb
408
- - test/helpers/devise_helper_test.rb
409
- - test/integration/authenticatable_test.rb
410
- - test/integration/confirmable_test.rb
411
- - test/integration/database_authenticatable_test.rb
412
- - test/integration/http_authenticatable_test.rb
413
- - test/integration/lockable_test.rb
414
- - test/integration/mounted_engine_test.rb
415
- - test/integration/omniauthable_test.rb
416
- - test/integration/recoverable_test.rb
417
- - test/integration/registerable_test.rb
418
- - test/integration/rememberable_test.rb
419
- - test/integration/timeoutable_test.rb
420
- - test/integration/trackable_test.rb
421
- - test/mailers/confirmation_instructions_test.rb
422
- - test/mailers/email_changed_test.rb
423
- - test/mailers/mailer_test.rb
424
- - test/mailers/reset_password_instructions_test.rb
425
- - test/mailers/unlock_instructions_test.rb
426
- - test/mapping_test.rb
427
- - test/models/authenticatable_test.rb
428
- - test/models/confirmable_test.rb
429
- - test/models/database_authenticatable_test.rb
430
- - test/models/lockable_test.rb
431
- - test/models/omniauthable_test.rb
432
- - test/models/recoverable_test.rb
433
- - test/models/registerable_test.rb
434
- - test/models/rememberable_test.rb
435
- - test/models/serializable_test.rb
436
- - test/models/timeoutable_test.rb
437
- - test/models/trackable_test.rb
438
- - test/models/validatable_test.rb
439
- - test/models_test.rb
440
- - test/omniauth/config_test.rb
441
- - test/omniauth/url_helpers_test.rb
442
- - test/orm/active_record.rb
443
- - test/orm/mongoid.rb
444
- - test/parameter_sanitizer_test.rb
445
- - test/rails_app/Rakefile
446
- - test/rails_app/app/active_record/admin.rb
447
- - test/rails_app/app/active_record/shim.rb
448
- - test/rails_app/app/active_record/user.rb
449
- - test/rails_app/app/active_record/user_on_engine.rb
450
- - test/rails_app/app/active_record/user_on_main_app.rb
451
- - test/rails_app/app/active_record/user_with_validations.rb
452
- - test/rails_app/app/active_record/user_without_email.rb
453
- - test/rails_app/app/controllers/admins/sessions_controller.rb
454
- - test/rails_app/app/controllers/admins_controller.rb
455
- - test/rails_app/app/controllers/application_controller.rb
456
- - test/rails_app/app/controllers/application_with_fake_engine.rb
457
- - test/rails_app/app/controllers/custom/registrations_controller.rb
458
- - test/rails_app/app/controllers/home_controller.rb
459
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
460
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
461
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
462
- - test/rails_app/app/controllers/users_controller.rb
463
- - test/rails_app/app/helpers/application_helper.rb
464
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
465
- - test/rails_app/app/mailers/users/mailer.rb
466
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
467
- - test/rails_app/app/mongoid/admin.rb
468
- - test/rails_app/app/mongoid/shim.rb
469
- - test/rails_app/app/mongoid/user.rb
470
- - test/rails_app/app/mongoid/user_on_engine.rb
471
- - test/rails_app/app/mongoid/user_on_main_app.rb
472
- - test/rails_app/app/mongoid/user_with_validations.rb
473
- - test/rails_app/app/mongoid/user_without_email.rb
474
- - test/rails_app/app/views/admins/index.html.erb
475
- - test/rails_app/app/views/admins/sessions/new.html.erb
476
- - test/rails_app/app/views/home/admin_dashboard.html.erb
477
- - test/rails_app/app/views/home/index.html.erb
478
- - test/rails_app/app/views/home/join.html.erb
479
- - test/rails_app/app/views/home/private.html.erb
480
- - test/rails_app/app/views/home/user_dashboard.html.erb
481
- - test/rails_app/app/views/layouts/application.html.erb
482
- - test/rails_app/app/views/users/edit_form.html.erb
483
- - test/rails_app/app/views/users/index.html.erb
484
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
485
- - test/rails_app/app/views/users/sessions/new.html.erb
486
- - test/rails_app/bin/bundle
487
- - test/rails_app/bin/rails
488
- - test/rails_app/bin/rake
489
- - test/rails_app/config.ru
490
- - test/rails_app/config/application.rb
491
- - test/rails_app/config/boot.rb
492
- - test/rails_app/config/database.yml
493
- - test/rails_app/config/environment.rb
494
- - test/rails_app/config/environments/development.rb
495
- - test/rails_app/config/environments/production.rb
496
- - test/rails_app/config/environments/test.rb
497
- - test/rails_app/config/initializers/backtrace_silencers.rb
498
- - test/rails_app/config/initializers/devise.rb
499
- - test/rails_app/config/initializers/inflections.rb
500
- - test/rails_app/config/initializers/secret_token.rb
501
- - test/rails_app/config/initializers/session_store.rb
502
- - test/rails_app/config/routes.rb
503
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
504
- - test/rails_app/db/schema.rb
505
- - test/rails_app/lib/shared_admin.rb
506
- - test/rails_app/lib/shared_user.rb
507
- - test/rails_app/lib/shared_user_without_email.rb
508
- - test/rails_app/lib/shared_user_without_omniauth.rb
509
- - test/rails_app/public/404.html
510
- - test/rails_app/public/422.html
511
- - test/rails_app/public/500.html
512
- - test/rails_app/public/favicon.ico
513
- - test/rails_test.rb
514
- - test/routes_test.rb
515
- - test/support/action_controller/record_identifier.rb
516
- - test/support/assertions.rb
517
- - test/support/helpers.rb
518
- - test/support/http_method_compatibility.rb
519
- - test/support/integration.rb
520
- - test/support/locale/en.yml
521
- - test/support/mongoid.yml
522
- - test/support/webrat/integrations/rails.rb
523
- - test/test/controller_helpers_test.rb
524
- - test/test/integration_helpers_test.rb
525
- - test/test_helper.rb
526
- - 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,68 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 2.1.10
5
- - 2.2.8
6
- - 2.3.5
7
- - 2.4.2
8
- - 2.5.0
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.5.0
25
- gemfile: gemfiles/Gemfile.rails-4.1-stable
26
- - rvm: 2.4.2
27
- gemfile: gemfiles/Gemfile.rails-4.1-stable
28
- - rvm: ruby-head
29
- gemfile: gemfiles/Gemfile.rails-4.1-stable
30
- - rvm: 2.1.10
31
- gemfile: gemfiles/Gemfile.rails-5.0-stable
32
- - rvm: 2.1.10
33
- gemfile: Gemfile
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
- - "rm ${BUNDLE_GEMFILE}.lock"
56
- - gem update --system
57
-
58
- before_script: "bundle update"
59
-
60
- script: "bin/test"
61
-
62
- notifications:
63
- email: false
64
- slack:
65
- on_pull_requests: false
66
- on_success: change
67
- on_failure: always
68
- 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.1"
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.1"
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