devise 4.4.0 → 4.7.3

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.
Files changed (220) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +125 -4
  3. data/MIT-LICENSE +2 -1
  4. data/README.md +124 -58
  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 +7 -7
  18. data/app/views/devise/unlocks/new.html.erb +1 -1
  19. data/config/locales/en.yml +3 -2
  20. data/lib/devise.rb +5 -4
  21. data/lib/devise/controllers/helpers.rb +13 -13
  22. data/lib/devise/controllers/sign_in_out.rb +10 -4
  23. data/lib/devise/controllers/url_helpers.rb +1 -1
  24. data/lib/devise/failure_app.rb +25 -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 +44 -45
  28. data/lib/devise/models/confirmable.rb +19 -4
  29. data/lib/devise/models/database_authenticatable.rb +50 -12
  30. data/lib/devise/models/lockable.rb +3 -3
  31. data/lib/devise/models/recoverable.rb +2 -2
  32. data/lib/devise/models/registerable.rb +2 -0
  33. data/lib/devise/models/rememberable.rb +1 -1
  34. data/lib/devise/models/trackable.rb +14 -2
  35. data/lib/devise/models/validatable.rb +1 -1
  36. data/lib/devise/parameter_filter.rb +2 -0
  37. data/lib/devise/parameter_sanitizer.rb +13 -1
  38. data/lib/devise/rails.rb +1 -5
  39. data/lib/devise/rails/routes.rb +6 -6
  40. data/lib/devise/secret_key_finder.rb +27 -0
  41. data/lib/devise/strategies/authenticatable.rb +1 -1
  42. data/lib/devise/strategies/database_authenticatable.rb +6 -1
  43. data/lib/devise/test/controller_helpers.rb +4 -1
  44. data/lib/devise/test/integration_helpers.rb +1 -1
  45. data/lib/devise/version.rb +1 -1
  46. data/lib/generators/active_record/devise_generator.rb +9 -9
  47. data/lib/generators/devise/controllers_generator.rb +1 -1
  48. data/lib/generators/devise/devise_generator.rb +1 -1
  49. data/lib/generators/devise/install_generator.rb +1 -5
  50. data/lib/generators/devise/orm_helpers.rb +2 -2
  51. data/lib/generators/devise/views_generator.rb +1 -1
  52. data/lib/generators/mongoid/devise_generator.rb +5 -5
  53. data/lib/generators/templates/README +9 -1
  54. data/lib/generators/templates/controllers/omniauth_callbacks_controller.rb +1 -1
  55. data/lib/generators/templates/devise.rb +37 -5
  56. data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +5 -1
  57. data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +10 -2
  58. data/lib/generators/templates/simple_form_for/passwords/new.html.erb +4 -1
  59. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +11 -3
  60. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +11 -3
  61. data/lib/generators/templates/simple_form_for/sessions/new.html.erb +7 -2
  62. data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +4 -1
  63. metadata +8 -308
  64. data/.gitignore +0 -10
  65. data/.travis.yml +0 -63
  66. data/.yardopts +0 -9
  67. data/CODE_OF_CONDUCT.md +0 -22
  68. data/CONTRIBUTING.md +0 -79
  69. data/Gemfile +0 -39
  70. data/Gemfile.lock +0 -193
  71. data/ISSUE_TEMPLATE.md +0 -19
  72. data/Rakefile +0 -37
  73. data/bin/test +0 -13
  74. data/devise.gemspec +0 -28
  75. data/devise.png +0 -0
  76. data/gemfiles/Gemfile.rails-4.1-stable +0 -32
  77. data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -171
  78. data/gemfiles/Gemfile.rails-4.2-stable +0 -32
  79. data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -192
  80. data/gemfiles/Gemfile.rails-5.0-stable +0 -33
  81. data/gemfiles/Gemfile.rails-5.0-stable.lock +0 -192
  82. data/guides/bug_report_templates/integration_test.rb +0 -106
  83. data/test/controllers/custom_registrations_controller_test.rb +0 -42
  84. data/test/controllers/custom_strategy_test.rb +0 -66
  85. data/test/controllers/helper_methods_test.rb +0 -24
  86. data/test/controllers/helpers_test.rb +0 -318
  87. data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -53
  88. data/test/controllers/internal_helpers_test.rb +0 -129
  89. data/test/controllers/load_hooks_controller_test.rb +0 -21
  90. data/test/controllers/passwords_controller_test.rb +0 -34
  91. data/test/controllers/sessions_controller_test.rb +0 -108
  92. data/test/controllers/url_helpers_test.rb +0 -67
  93. data/test/delegator_test.rb +0 -21
  94. data/test/devise_test.rb +0 -109
  95. data/test/failure_app_test.rb +0 -340
  96. data/test/generators/active_record_generator_test.rb +0 -130
  97. data/test/generators/controllers_generator_test.rb +0 -50
  98. data/test/generators/devise_generator_test.rb +0 -41
  99. data/test/generators/install_generator_test.rb +0 -26
  100. data/test/generators/mongoid_generator_test.rb +0 -25
  101. data/test/generators/views_generator_test.rb +0 -105
  102. data/test/helpers/devise_helper_test.rb +0 -51
  103. data/test/integration/authenticatable_test.rb +0 -712
  104. data/test/integration/confirmable_test.rb +0 -326
  105. data/test/integration/database_authenticatable_test.rb +0 -97
  106. data/test/integration/http_authenticatable_test.rb +0 -108
  107. data/test/integration/lockable_test.rb +0 -242
  108. data/test/integration/mounted_engine_test.rb +0 -38
  109. data/test/integration/omniauthable_test.rb +0 -137
  110. data/test/integration/recoverable_test.rb +0 -349
  111. data/test/integration/registerable_test.rb +0 -365
  112. data/test/integration/rememberable_test.rb +0 -219
  113. data/test/integration/timeoutable_test.rb +0 -186
  114. data/test/integration/trackable_test.rb +0 -94
  115. data/test/mailers/confirmation_instructions_test.rb +0 -117
  116. data/test/mailers/email_changed_test.rb +0 -132
  117. data/test/mailers/mailer_test.rb +0 -20
  118. data/test/mailers/reset_password_instructions_test.rb +0 -98
  119. data/test/mailers/unlock_instructions_test.rb +0 -93
  120. data/test/mapping_test.rb +0 -136
  121. data/test/models/authenticatable_test.rb +0 -25
  122. data/test/models/confirmable_test.rb +0 -538
  123. data/test/models/database_authenticatable_test.rb +0 -283
  124. data/test/models/lockable_test.rb +0 -352
  125. data/test/models/omniauthable_test.rb +0 -9
  126. data/test/models/recoverable_test.rb +0 -263
  127. data/test/models/registerable_test.rb +0 -9
  128. data/test/models/rememberable_test.rb +0 -184
  129. data/test/models/serializable_test.rb +0 -60
  130. data/test/models/timeoutable_test.rb +0 -53
  131. data/test/models/trackable_test.rb +0 -52
  132. data/test/models/validatable_test.rb +0 -121
  133. data/test/models_test.rb +0 -155
  134. data/test/omniauth/config_test.rb +0 -61
  135. data/test/omniauth/url_helpers_test.rb +0 -53
  136. data/test/orm/active_record.rb +0 -19
  137. data/test/orm/mongoid.rb +0 -15
  138. data/test/parameter_sanitizer_test.rb +0 -77
  139. data/test/rails_app/Rakefile +0 -6
  140. data/test/rails_app/app/active_record/admin.rb +0 -8
  141. data/test/rails_app/app/active_record/shim.rb +0 -4
  142. data/test/rails_app/app/active_record/user.rb +0 -11
  143. data/test/rails_app/app/active_record/user_on_engine.rb +0 -9
  144. data/test/rails_app/app/active_record/user_on_main_app.rb +0 -9
  145. data/test/rails_app/app/active_record/user_with_validations.rb +0 -12
  146. data/test/rails_app/app/active_record/user_without_email.rb +0 -10
  147. data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -8
  148. data/test/rails_app/app/controllers/admins_controller.rb +0 -8
  149. data/test/rails_app/app/controllers/application_controller.rb +0 -13
  150. data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -32
  151. data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -33
  152. data/test/rails_app/app/controllers/home_controller.rb +0 -31
  153. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -4
  154. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -4
  155. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -16
  156. data/test/rails_app/app/controllers/users_controller.rb +0 -33
  157. data/test/rails_app/app/helpers/application_helper.rb +0 -5
  158. data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -5
  159. data/test/rails_app/app/mailers/users/mailer.rb +0 -5
  160. data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -6
  161. data/test/rails_app/app/mongoid/admin.rb +0 -31
  162. data/test/rails_app/app/mongoid/shim.rb +0 -25
  163. data/test/rails_app/app/mongoid/user.rb +0 -41
  164. data/test/rails_app/app/mongoid/user_on_engine.rb +0 -41
  165. data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -41
  166. data/test/rails_app/app/mongoid/user_with_validations.rb +0 -37
  167. data/test/rails_app/app/mongoid/user_without_email.rb +0 -35
  168. data/test/rails_app/app/views/admins/index.html.erb +0 -1
  169. data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
  170. data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
  171. data/test/rails_app/app/views/home/index.html.erb +0 -1
  172. data/test/rails_app/app/views/home/join.html.erb +0 -1
  173. data/test/rails_app/app/views/home/private.html.erb +0 -1
  174. data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
  175. data/test/rails_app/app/views/layouts/application.html.erb +0 -24
  176. data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
  177. data/test/rails_app/app/views/users/index.html.erb +0 -1
  178. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
  179. data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
  180. data/test/rails_app/bin/bundle +0 -3
  181. data/test/rails_app/bin/rails +0 -4
  182. data/test/rails_app/bin/rake +0 -4
  183. data/test/rails_app/config.ru +0 -4
  184. data/test/rails_app/config/application.rb +0 -46
  185. data/test/rails_app/config/boot.rb +0 -22
  186. data/test/rails_app/config/database.yml +0 -18
  187. data/test/rails_app/config/environment.rb +0 -7
  188. data/test/rails_app/config/environments/development.rb +0 -32
  189. data/test/rails_app/config/environments/production.rb +0 -88
  190. data/test/rails_app/config/environments/test.rb +0 -47
  191. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -9
  192. data/test/rails_app/config/initializers/devise.rb +0 -182
  193. data/test/rails_app/config/initializers/inflections.rb +0 -4
  194. data/test/rails_app/config/initializers/secret_token.rb +0 -5
  195. data/test/rails_app/config/initializers/session_store.rb +0 -3
  196. data/test/rails_app/config/routes.rb +0 -128
  197. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -77
  198. data/test/rails_app/db/schema.rb +0 -57
  199. data/test/rails_app/lib/shared_admin.rb +0 -23
  200. data/test/rails_app/lib/shared_user.rb +0 -32
  201. data/test/rails_app/lib/shared_user_without_email.rb +0 -28
  202. data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -15
  203. data/test/rails_app/public/404.html +0 -26
  204. data/test/rails_app/public/422.html +0 -26
  205. data/test/rails_app/public/500.html +0 -26
  206. data/test/rails_app/public/favicon.ico +0 -0
  207. data/test/rails_test.rb +0 -11
  208. data/test/routes_test.rb +0 -281
  209. data/test/support/action_controller/record_identifier.rb +0 -12
  210. data/test/support/assertions.rb +0 -30
  211. data/test/support/helpers.rb +0 -83
  212. data/test/support/http_method_compatibility.rb +0 -53
  213. data/test/support/integration.rb +0 -94
  214. data/test/support/locale/en.yml +0 -8
  215. data/test/support/mongoid.yml +0 -6
  216. data/test/support/webrat/integrations/rails.rb +0 -35
  217. data/test/test/controller_helpers_test.rb +0 -188
  218. data/test/test/integration_helpers_test.rb +0 -34
  219. data/test/test_helper.rb +0 -36
  220. data/test/test_models.rb +0 -35
@@ -1,5 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Assuming you have not yet modified this file, each configuration option below
4
+ # is set to its default value. Note that some are commented out while others
5
+ # are not: uncommented lines are intended to protect your configuration from
6
+ # breaking changes in upgrades (i.e., in the event that future versions of
7
+ # Devise change the default values for those options).
8
+ #
3
9
  # Use this hook to configure devise mailer, warden hooks and so forth.
4
10
  # Many of these configuration options can be set straight in your model.
5
11
  Devise.setup do |config|
@@ -10,6 +16,10 @@ Devise.setup do |config|
10
16
  # by default. You can change it below and use your own secret key.
11
17
  # config.secret_key = '<%= SecureRandom.hex(64) %>'
12
18
 
19
+ # ==> Controller configuration
20
+ # Configure the parent class to the devise controllers.
21
+ # config.parent_controller = 'DeviseController'
22
+
13
23
  # ==> Mailer Configuration
14
24
  # Configure the e-mail address which will be shown in Devise::Mailer,
15
25
  # note that it will be overwritten if you use your own mailer class
@@ -64,7 +74,10 @@ Devise.setup do |config|
64
74
  # Tell if authentication through HTTP Auth is enabled. False by default.
65
75
  # It can be set to an array that will enable http authentication only for the
66
76
  # given strategies, for example, `config.http_authenticatable = [:database]` will
67
- # enable it only for database authentication. The supported strategies are:
77
+ # enable it only for database authentication.
78
+ # For API-only applications to support authentication "out-of-the-box", you will likely want to
79
+ # enable this with :database unless you are using a custom strategy.
80
+ # The supported strategies are:
68
81
  # :database = Support basic authentication with authentication key + password
69
82
  # config.http_authenticatable = false
70
83
 
@@ -99,15 +112,18 @@ Devise.setup do |config|
99
112
  # config.reload_routes = true
100
113
 
101
114
  # ==> Configuration for :database_authenticatable
102
- # For bcrypt, this is the cost for hashing the password and defaults to 11. If
115
+ # For bcrypt, this is the cost for hashing the password and defaults to 12. If
103
116
  # using other algorithms, it sets how many times you want the password to be hashed.
117
+ # The number of stretches used for generating the hashed password are stored
118
+ # with the hashed password. This allows you to change the stretches without
119
+ # invalidating existing passwords.
104
120
  #
105
121
  # Limiting the stretches to just one in testing will increase the performance of
106
122
  # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
107
123
  # a value less than 10 in other environments. Note that, for bcrypt (the default
108
124
  # algorithm), the cost increases exponentially with the number of stretches (e.g.
109
125
  # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
110
- config.stretches = Rails.env.test? ? 1 : 11
126
+ config.stretches = Rails.env.test? ? 1 : 12
111
127
 
112
128
  # Set up a pepper to generate the hashed password.
113
129
  # config.pepper = '<%= SecureRandom.hex(64) %>'
@@ -122,8 +138,11 @@ Devise.setup do |config|
122
138
  # A period that the user is allowed to access the website even without
123
139
  # confirming their account. For instance, if set to 2.days, the user will be
124
140
  # able to access the website for two days without confirming their account,
125
- # access will be blocked just in the third day. Default is 0.days, meaning
126
- # the user cannot access the website without confirming their account.
141
+ # access will be blocked just in the third day.
142
+ # You can also set it to nil, which will allow the user to access the website
143
+ # without confirming their account.
144
+ # Default is 0.days, meaning the user cannot access the website without
145
+ # confirming their account.
127
146
  # config.allow_unconfirmed_access_for = 2.days
128
147
 
129
148
  # A period that the user is allowed to confirm their account before their
@@ -276,4 +295,17 @@ Devise.setup do |config|
276
295
  # When using OmniAuth, Devise cannot automatically set OmniAuth path,
277
296
  # so you need to do it manually. For the users scope, it would be:
278
297
  # config.omniauth_path_prefix = '/my_engine/users/auth'
298
+
299
+ # ==> Turbolinks configuration
300
+ # If your app is using Turbolinks, Turbolinks::Controller needs to be included to make redirection work correctly:
301
+ #
302
+ # ActiveSupport.on_load(:devise_failure_app) do
303
+ # include Turbolinks::Controller
304
+ # end
305
+
306
+ # ==> Configuration for :registerable
307
+
308
+ # When set to false, does not sign a user in automatically after their password is
309
+ # changed. Defaults to true, so a user is signed in automatically after changing a password.
310
+ # config.sign_in_after_change_password = true
279
311
  end
@@ -5,7 +5,11 @@
5
5
  <%= f.full_error :confirmation_token %>
6
6
 
7
7
  <div class="form-inputs">
8
- <%= f.input :email, required: true, autofocus: true %>
8
+ <%= f.input :email,
9
+ required: true,
10
+ autofocus: true,
11
+ value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email),
12
+ input_html: { autocomplete: "email" } %>
9
13
  </div>
10
14
 
11
15
  <div class="form-actions">
@@ -7,8 +7,16 @@
7
7
  <%= f.full_error :reset_password_token %>
8
8
 
9
9
  <div class="form-inputs">
10
- <%= f.input :password, label: "New password", required: true, autofocus: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
11
- <%= f.input :password_confirmation, label: "Confirm your new password", required: true %>
10
+ <%= f.input :password,
11
+ label: "New password",
12
+ required: true,
13
+ autofocus: true,
14
+ hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length),
15
+ input_html: { autocomplete: "new-password" } %>
16
+ <%= f.input :password_confirmation,
17
+ label: "Confirm your new password",
18
+ required: true,
19
+ input_html: { autocomplete: "new-password" } %>
12
20
  </div>
13
21
 
14
22
  <div class="form-actions">
@@ -4,7 +4,10 @@
4
4
  <%= f.error_notification %>
5
5
 
6
6
  <div class="form-inputs">
7
- <%= f.input :email, required: true, autofocus: true %>
7
+ <%= f.input :email,
8
+ required: true,
9
+ autofocus: true,
10
+ input_html: { autocomplete: "email" } %>
8
11
  </div>
9
12
 
10
13
  <div class="form-actions">
@@ -10,9 +10,17 @@
10
10
  <p>Currently waiting confirmation for: <%= resource.unconfirmed_email %></p>
11
11
  <% end %>
12
12
 
13
- <%= f.input :password, autocomplete: "off", hint: "leave it blank if you don't want to change it", required: false %>
14
- <%= f.input :password_confirmation, required: false %>
15
- <%= f.input :current_password, hint: "we need your current password to confirm your changes", required: true %>
13
+ <%= f.input :password,
14
+ hint: "leave it blank if you don't want to change it",
15
+ required: false,
16
+ input_html: { autocomplete: "new-password" } %>
17
+ <%= f.input :password_confirmation,
18
+ required: false,
19
+ input_html: { autocomplete: "new-password" } %>
20
+ <%= f.input :current_password,
21
+ hint: "we need your current password to confirm your changes",
22
+ required: true,
23
+ input_html: { autocomplete: "current-password" } %>
16
24
  </div>
17
25
 
18
26
  <div class="form-actions">
@@ -4,9 +4,17 @@
4
4
  <%= f.error_notification %>
5
5
 
6
6
  <div class="form-inputs">
7
- <%= f.input :email, required: true, autofocus: true %>
8
- <%= f.input :password, required: true, hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length) %>
9
- <%= f.input :password_confirmation, required: true %>
7
+ <%= f.input :email,
8
+ required: true,
9
+ autofocus: true,
10
+ input_html: { autocomplete: "email" }%>
11
+ <%= f.input :password,
12
+ required: true,
13
+ hint: ("#{@minimum_password_length} characters minimum" if @minimum_password_length),
14
+ input_html: { autocomplete: "new-password" } %>
15
+ <%= f.input :password_confirmation,
16
+ required: true,
17
+ input_html: { autocomplete: "new-password" } %>
10
18
  </div>
11
19
 
12
20
  <div class="form-actions">
@@ -2,8 +2,13 @@
2
2
 
3
3
  <%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
4
4
  <div class="form-inputs">
5
- <%= f.input :email, required: false, autofocus: true %>
6
- <%= f.input :password, required: false %>
5
+ <%= f.input :email,
6
+ required: false,
7
+ autofocus: true,
8
+ input_html: { autocomplete: "email" } %>
9
+ <%= f.input :password,
10
+ required: false,
11
+ input_html: { autocomplete: "current-password" } %>
7
12
  <%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>
8
13
  </div>
9
14
 
@@ -5,7 +5,10 @@
5
5
  <%= f.full_error :unlock_token %>
6
6
 
7
7
  <div class="form-inputs">
8
- <%= f.input :email, required: true, autofocus: true %>
8
+ <%= f.input :email,
9
+ required: true,
10
+ autofocus: true,
11
+ input_html: { autocomplete: "email" } %>
9
12
  </div>
10
13
 
11
14
  <div class="form-actions">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Valim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-29 00:00:00.000000000 Z
12
+ date: 2020-09-21 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: '5.2'
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: '5.2'
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,19 +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
- - guides/bug_report_templates/integration_test.rb
141
117
  - lib/devise.rb
142
118
  - lib/devise/controllers/helpers.rb
143
119
  - lib/devise/controllers/rememberable.rb
@@ -181,6 +157,7 @@ files:
181
157
  - lib/devise/rails.rb
182
158
  - lib/devise/rails/routes.rb
183
159
  - lib/devise/rails/warden_compat.rb
160
+ - lib/devise/secret_key_finder.rb
184
161
  - lib/devise/strategies/authenticatable.rb
185
162
  - lib/devise/strategies/base.rb
186
163
  - lib/devise/strategies/database_authenticatable.rb
@@ -221,145 +198,7 @@ files:
221
198
  - lib/generators/templates/simple_form_for/registrations/new.html.erb
222
199
  - lib/generators/templates/simple_form_for/sessions/new.html.erb
223
200
  - lib/generators/templates/simple_form_for/unlocks/new.html.erb
224
- - test/controllers/custom_registrations_controller_test.rb
225
- - test/controllers/custom_strategy_test.rb
226
- - test/controllers/helper_methods_test.rb
227
- - test/controllers/helpers_test.rb
228
- - test/controllers/inherited_controller_i18n_messages_test.rb
229
- - test/controllers/internal_helpers_test.rb
230
- - test/controllers/load_hooks_controller_test.rb
231
- - test/controllers/passwords_controller_test.rb
232
- - test/controllers/sessions_controller_test.rb
233
- - test/controllers/url_helpers_test.rb
234
- - test/delegator_test.rb
235
- - test/devise_test.rb
236
- - test/failure_app_test.rb
237
- - test/generators/active_record_generator_test.rb
238
- - test/generators/controllers_generator_test.rb
239
- - test/generators/devise_generator_test.rb
240
- - test/generators/install_generator_test.rb
241
- - test/generators/mongoid_generator_test.rb
242
- - test/generators/views_generator_test.rb
243
- - test/helpers/devise_helper_test.rb
244
- - test/integration/authenticatable_test.rb
245
- - test/integration/confirmable_test.rb
246
- - test/integration/database_authenticatable_test.rb
247
- - test/integration/http_authenticatable_test.rb
248
- - test/integration/lockable_test.rb
249
- - test/integration/mounted_engine_test.rb
250
- - test/integration/omniauthable_test.rb
251
- - test/integration/recoverable_test.rb
252
- - test/integration/registerable_test.rb
253
- - test/integration/rememberable_test.rb
254
- - test/integration/timeoutable_test.rb
255
- - test/integration/trackable_test.rb
256
- - test/mailers/confirmation_instructions_test.rb
257
- - test/mailers/email_changed_test.rb
258
- - test/mailers/mailer_test.rb
259
- - test/mailers/reset_password_instructions_test.rb
260
- - test/mailers/unlock_instructions_test.rb
261
- - test/mapping_test.rb
262
- - test/models/authenticatable_test.rb
263
- - test/models/confirmable_test.rb
264
- - test/models/database_authenticatable_test.rb
265
- - test/models/lockable_test.rb
266
- - test/models/omniauthable_test.rb
267
- - test/models/recoverable_test.rb
268
- - test/models/registerable_test.rb
269
- - test/models/rememberable_test.rb
270
- - test/models/serializable_test.rb
271
- - test/models/timeoutable_test.rb
272
- - test/models/trackable_test.rb
273
- - test/models/validatable_test.rb
274
- - test/models_test.rb
275
- - test/omniauth/config_test.rb
276
- - test/omniauth/url_helpers_test.rb
277
- - test/orm/active_record.rb
278
- - test/orm/mongoid.rb
279
- - test/parameter_sanitizer_test.rb
280
- - test/rails_app/Rakefile
281
- - test/rails_app/app/active_record/admin.rb
282
- - test/rails_app/app/active_record/shim.rb
283
- - test/rails_app/app/active_record/user.rb
284
- - test/rails_app/app/active_record/user_on_engine.rb
285
- - test/rails_app/app/active_record/user_on_main_app.rb
286
- - test/rails_app/app/active_record/user_with_validations.rb
287
- - test/rails_app/app/active_record/user_without_email.rb
288
- - test/rails_app/app/controllers/admins/sessions_controller.rb
289
- - test/rails_app/app/controllers/admins_controller.rb
290
- - test/rails_app/app/controllers/application_controller.rb
291
- - test/rails_app/app/controllers/application_with_fake_engine.rb
292
- - test/rails_app/app/controllers/custom/registrations_controller.rb
293
- - test/rails_app/app/controllers/home_controller.rb
294
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
295
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
296
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
297
- - test/rails_app/app/controllers/users_controller.rb
298
- - test/rails_app/app/helpers/application_helper.rb
299
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
300
- - test/rails_app/app/mailers/users/mailer.rb
301
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
302
- - test/rails_app/app/mongoid/admin.rb
303
- - test/rails_app/app/mongoid/shim.rb
304
- - test/rails_app/app/mongoid/user.rb
305
- - test/rails_app/app/mongoid/user_on_engine.rb
306
- - test/rails_app/app/mongoid/user_on_main_app.rb
307
- - test/rails_app/app/mongoid/user_with_validations.rb
308
- - test/rails_app/app/mongoid/user_without_email.rb
309
- - test/rails_app/app/views/admins/index.html.erb
310
- - test/rails_app/app/views/admins/sessions/new.html.erb
311
- - test/rails_app/app/views/home/admin_dashboard.html.erb
312
- - test/rails_app/app/views/home/index.html.erb
313
- - test/rails_app/app/views/home/join.html.erb
314
- - test/rails_app/app/views/home/private.html.erb
315
- - test/rails_app/app/views/home/user_dashboard.html.erb
316
- - test/rails_app/app/views/layouts/application.html.erb
317
- - test/rails_app/app/views/users/edit_form.html.erb
318
- - test/rails_app/app/views/users/index.html.erb
319
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
320
- - test/rails_app/app/views/users/sessions/new.html.erb
321
- - test/rails_app/bin/bundle
322
- - test/rails_app/bin/rails
323
- - test/rails_app/bin/rake
324
- - test/rails_app/config.ru
325
- - test/rails_app/config/application.rb
326
- - test/rails_app/config/boot.rb
327
- - test/rails_app/config/database.yml
328
- - test/rails_app/config/environment.rb
329
- - test/rails_app/config/environments/development.rb
330
- - test/rails_app/config/environments/production.rb
331
- - test/rails_app/config/environments/test.rb
332
- - test/rails_app/config/initializers/backtrace_silencers.rb
333
- - test/rails_app/config/initializers/devise.rb
334
- - test/rails_app/config/initializers/inflections.rb
335
- - test/rails_app/config/initializers/secret_token.rb
336
- - test/rails_app/config/initializers/session_store.rb
337
- - test/rails_app/config/routes.rb
338
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
339
- - test/rails_app/db/schema.rb
340
- - test/rails_app/lib/shared_admin.rb
341
- - test/rails_app/lib/shared_user.rb
342
- - test/rails_app/lib/shared_user_without_email.rb
343
- - test/rails_app/lib/shared_user_without_omniauth.rb
344
- - test/rails_app/public/404.html
345
- - test/rails_app/public/422.html
346
- - test/rails_app/public/500.html
347
- - test/rails_app/public/favicon.ico
348
- - test/rails_test.rb
349
- - test/routes_test.rb
350
- - test/support/action_controller/record_identifier.rb
351
- - test/support/assertions.rb
352
- - test/support/helpers.rb
353
- - test/support/http_method_compatibility.rb
354
- - test/support/integration.rb
355
- - test/support/locale/en.yml
356
- - test/support/mongoid.yml
357
- - test/support/webrat/integrations/rails.rb
358
- - test/test/controller_helpers_test.rb
359
- - test/test/integration_helpers_test.rb
360
- - test/test_helper.rb
361
- - test/test_models.rb
362
- homepage: https://github.com/plataformatec/devise
201
+ homepage: https://github.com/heartcombo/devise
363
202
  licenses:
364
203
  - MIT
365
204
  metadata: {}
@@ -378,147 +217,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
378
217
  - !ruby/object:Gem::Version
379
218
  version: '0'
380
219
  requirements: []
381
- rubyforge_project:
382
- rubygems_version: 2.6.8
220
+ rubygems_version: 3.0.3
383
221
  signing_key:
384
222
  specification_version: 4
385
223
  summary: Flexible authentication solution for Rails with Warden
386
- test_files:
387
- - test/controllers/custom_registrations_controller_test.rb
388
- - test/controllers/custom_strategy_test.rb
389
- - test/controllers/helper_methods_test.rb
390
- - test/controllers/helpers_test.rb
391
- - test/controllers/inherited_controller_i18n_messages_test.rb
392
- - test/controllers/internal_helpers_test.rb
393
- - test/controllers/load_hooks_controller_test.rb
394
- - test/controllers/passwords_controller_test.rb
395
- - test/controllers/sessions_controller_test.rb
396
- - test/controllers/url_helpers_test.rb
397
- - test/delegator_test.rb
398
- - test/devise_test.rb
399
- - test/failure_app_test.rb
400
- - test/generators/active_record_generator_test.rb
401
- - test/generators/controllers_generator_test.rb
402
- - test/generators/devise_generator_test.rb
403
- - test/generators/install_generator_test.rb
404
- - test/generators/mongoid_generator_test.rb
405
- - test/generators/views_generator_test.rb
406
- - test/helpers/devise_helper_test.rb
407
- - test/integration/authenticatable_test.rb
408
- - test/integration/confirmable_test.rb
409
- - test/integration/database_authenticatable_test.rb
410
- - test/integration/http_authenticatable_test.rb
411
- - test/integration/lockable_test.rb
412
- - test/integration/mounted_engine_test.rb
413
- - test/integration/omniauthable_test.rb
414
- - test/integration/recoverable_test.rb
415
- - test/integration/registerable_test.rb
416
- - test/integration/rememberable_test.rb
417
- - test/integration/timeoutable_test.rb
418
- - test/integration/trackable_test.rb
419
- - test/mailers/confirmation_instructions_test.rb
420
- - test/mailers/email_changed_test.rb
421
- - test/mailers/mailer_test.rb
422
- - test/mailers/reset_password_instructions_test.rb
423
- - test/mailers/unlock_instructions_test.rb
424
- - test/mapping_test.rb
425
- - test/models/authenticatable_test.rb
426
- - test/models/confirmable_test.rb
427
- - test/models/database_authenticatable_test.rb
428
- - test/models/lockable_test.rb
429
- - test/models/omniauthable_test.rb
430
- - test/models/recoverable_test.rb
431
- - test/models/registerable_test.rb
432
- - test/models/rememberable_test.rb
433
- - test/models/serializable_test.rb
434
- - test/models/timeoutable_test.rb
435
- - test/models/trackable_test.rb
436
- - test/models/validatable_test.rb
437
- - test/models_test.rb
438
- - test/omniauth/config_test.rb
439
- - test/omniauth/url_helpers_test.rb
440
- - test/orm/active_record.rb
441
- - test/orm/mongoid.rb
442
- - test/parameter_sanitizer_test.rb
443
- - test/rails_app/Rakefile
444
- - test/rails_app/app/active_record/admin.rb
445
- - test/rails_app/app/active_record/shim.rb
446
- - test/rails_app/app/active_record/user.rb
447
- - test/rails_app/app/active_record/user_on_engine.rb
448
- - test/rails_app/app/active_record/user_on_main_app.rb
449
- - test/rails_app/app/active_record/user_with_validations.rb
450
- - test/rails_app/app/active_record/user_without_email.rb
451
- - test/rails_app/app/controllers/admins/sessions_controller.rb
452
- - test/rails_app/app/controllers/admins_controller.rb
453
- - test/rails_app/app/controllers/application_controller.rb
454
- - test/rails_app/app/controllers/application_with_fake_engine.rb
455
- - test/rails_app/app/controllers/custom/registrations_controller.rb
456
- - test/rails_app/app/controllers/home_controller.rb
457
- - test/rails_app/app/controllers/publisher/registrations_controller.rb
458
- - test/rails_app/app/controllers/publisher/sessions_controller.rb
459
- - test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
460
- - test/rails_app/app/controllers/users_controller.rb
461
- - test/rails_app/app/helpers/application_helper.rb
462
- - test/rails_app/app/mailers/users/from_proc_mailer.rb
463
- - test/rails_app/app/mailers/users/mailer.rb
464
- - test/rails_app/app/mailers/users/reply_to_mailer.rb
465
- - test/rails_app/app/mongoid/admin.rb
466
- - test/rails_app/app/mongoid/shim.rb
467
- - test/rails_app/app/mongoid/user.rb
468
- - test/rails_app/app/mongoid/user_on_engine.rb
469
- - test/rails_app/app/mongoid/user_on_main_app.rb
470
- - test/rails_app/app/mongoid/user_with_validations.rb
471
- - test/rails_app/app/mongoid/user_without_email.rb
472
- - test/rails_app/app/views/admins/index.html.erb
473
- - test/rails_app/app/views/admins/sessions/new.html.erb
474
- - test/rails_app/app/views/home/admin_dashboard.html.erb
475
- - test/rails_app/app/views/home/index.html.erb
476
- - test/rails_app/app/views/home/join.html.erb
477
- - test/rails_app/app/views/home/private.html.erb
478
- - test/rails_app/app/views/home/user_dashboard.html.erb
479
- - test/rails_app/app/views/layouts/application.html.erb
480
- - test/rails_app/app/views/users/edit_form.html.erb
481
- - test/rails_app/app/views/users/index.html.erb
482
- - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
483
- - test/rails_app/app/views/users/sessions/new.html.erb
484
- - test/rails_app/bin/bundle
485
- - test/rails_app/bin/rails
486
- - test/rails_app/bin/rake
487
- - test/rails_app/config.ru
488
- - test/rails_app/config/application.rb
489
- - test/rails_app/config/boot.rb
490
- - test/rails_app/config/database.yml
491
- - test/rails_app/config/environment.rb
492
- - test/rails_app/config/environments/development.rb
493
- - test/rails_app/config/environments/production.rb
494
- - test/rails_app/config/environments/test.rb
495
- - test/rails_app/config/initializers/backtrace_silencers.rb
496
- - test/rails_app/config/initializers/devise.rb
497
- - test/rails_app/config/initializers/inflections.rb
498
- - test/rails_app/config/initializers/secret_token.rb
499
- - test/rails_app/config/initializers/session_store.rb
500
- - test/rails_app/config/routes.rb
501
- - test/rails_app/db/migrate/20100401102949_create_tables.rb
502
- - test/rails_app/db/schema.rb
503
- - test/rails_app/lib/shared_admin.rb
504
- - test/rails_app/lib/shared_user.rb
505
- - test/rails_app/lib/shared_user_without_email.rb
506
- - test/rails_app/lib/shared_user_without_omniauth.rb
507
- - test/rails_app/public/404.html
508
- - test/rails_app/public/422.html
509
- - test/rails_app/public/500.html
510
- - test/rails_app/public/favicon.ico
511
- - test/rails_test.rb
512
- - test/routes_test.rb
513
- - test/support/action_controller/record_identifier.rb
514
- - test/support/assertions.rb
515
- - test/support/helpers.rb
516
- - test/support/http_method_compatibility.rb
517
- - test/support/integration.rb
518
- - test/support/locale/en.yml
519
- - test/support/mongoid.yml
520
- - test/support/webrat/integrations/rails.rb
521
- - test/test/controller_helpers_test.rb
522
- - test/test/integration_helpers_test.rb
523
- - test/test_helper.rb
524
- - test/test_models.rb
224
+ test_files: []