devise 4.5.0 → 4.6.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of devise might be problematic. Click here for more details.

Files changed (195) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +30 -1
  3. data/MIT-LICENSE +1 -1
  4. data/README.md +18 -0
  5. data/app/controllers/devise/passwords_controller.rb +1 -0
  6. data/app/controllers/devise/registrations_controller.rb +25 -7
  7. data/app/helpers/devise_helper.rb +10 -19
  8. data/app/views/devise/confirmations/new.html.erb +1 -1
  9. data/app/views/devise/passwords/edit.html.erb +1 -1
  10. data/app/views/devise/passwords/new.html.erb +1 -1
  11. data/app/views/devise/registrations/edit.html.erb +1 -1
  12. data/app/views/devise/registrations/new.html.erb +1 -1
  13. data/app/views/devise/sessions/new.html.erb +2 -2
  14. data/app/views/devise/shared/_error_messages.html.erb +15 -0
  15. data/app/views/devise/shared/_links.html.erb +7 -7
  16. data/app/views/devise/unlocks/new.html.erb +1 -1
  17. data/config/locales/en.yml +1 -0
  18. data/lib/devise.rb +4 -0
  19. data/lib/devise/controllers/helpers.rb +1 -1
  20. data/lib/devise/failure_app.rb +28 -3
  21. data/lib/devise/models/authenticatable.rb +7 -15
  22. data/lib/devise/models/confirmable.rb +4 -1
  23. data/lib/devise/models/database_authenticatable.rb +41 -6
  24. data/lib/devise/models/lockable.rb +2 -2
  25. data/lib/devise/models/registerable.rb +2 -0
  26. data/lib/devise/strategies/database_authenticatable.rb +3 -0
  27. data/lib/devise/test/controller_helpers.rb +1 -1
  28. data/lib/devise/version.rb +1 -1
  29. data/lib/generators/active_record/devise_generator.rb +4 -4
  30. data/lib/generators/devise/controllers_generator.rb +1 -1
  31. data/lib/generators/templates/devise.rb +12 -3
  32. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +1 -1
  33. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +1 -1
  34. metadata +5 -305
  35. data/.gitignore +0 -10
  36. data/.travis.yml +0 -69
  37. data/.yardopts +0 -9
  38. data/CODE_OF_CONDUCT.md +0 -22
  39. data/CONTRIBUTING.md +0 -79
  40. data/Gemfile +0 -39
  41. data/Gemfile.lock +0 -202
  42. data/ISSUE_TEMPLATE.md +0 -19
  43. data/Rakefile +0 -37
  44. data/bin/test +0 -13
  45. data/devise.gemspec +0 -28
  46. data/devise.png +0 -0
  47. data/gemfiles/Gemfile.rails-4.1-stable +0 -32
  48. data/gemfiles/Gemfile.rails-4.1-stable.lock +0 -171
  49. data/gemfiles/Gemfile.rails-4.2-stable +0 -32
  50. data/gemfiles/Gemfile.rails-4.2-stable.lock +0 -192
  51. data/gemfiles/Gemfile.rails-5.0-stable +0 -33
  52. data/gemfiles/Gemfile.rails-5.0-stable.lock +0 -192
  53. data/gemfiles/Gemfile.rails-5.2-rc1 +0 -26
  54. data/gemfiles/Gemfile.rails-5.2-rc1.lock +0 -201
  55. data/guides/bug_report_templates/integration_test.rb +0 -106
  56. data/test/controllers/custom_registrations_controller_test.rb +0 -42
  57. data/test/controllers/custom_strategy_test.rb +0 -66
  58. data/test/controllers/helper_methods_test.rb +0 -24
  59. data/test/controllers/helpers_test.rb +0 -318
  60. data/test/controllers/inherited_controller_i18n_messages_test.rb +0 -53
  61. data/test/controllers/internal_helpers_test.rb +0 -129
  62. data/test/controllers/load_hooks_controller_test.rb +0 -21
  63. data/test/controllers/passwords_controller_test.rb +0 -34
  64. data/test/controllers/sessions_controller_test.rb +0 -108
  65. data/test/controllers/url_helpers_test.rb +0 -67
  66. data/test/delegator_test.rb +0 -21
  67. data/test/devise_test.rb +0 -109
  68. data/test/failure_app_test.rb +0 -346
  69. data/test/generators/active_record_generator_test.rb +0 -130
  70. data/test/generators/controllers_generator_test.rb +0 -50
  71. data/test/generators/devise_generator_test.rb +0 -41
  72. data/test/generators/install_generator_test.rb +0 -26
  73. data/test/generators/mongoid_generator_test.rb +0 -25
  74. data/test/generators/views_generator_test.rb +0 -105
  75. data/test/helpers/devise_helper_test.rb +0 -51
  76. data/test/integration/authenticatable_test.rb +0 -706
  77. data/test/integration/confirmable_test.rb +0 -326
  78. data/test/integration/database_authenticatable_test.rb +0 -110
  79. data/test/integration/http_authenticatable_test.rb +0 -114
  80. data/test/integration/lockable_test.rb +0 -242
  81. data/test/integration/mounted_engine_test.rb +0 -38
  82. data/test/integration/omniauthable_test.rb +0 -148
  83. data/test/integration/recoverable_test.rb +0 -349
  84. data/test/integration/registerable_test.rb +0 -365
  85. data/test/integration/rememberable_test.rb +0 -219
  86. data/test/integration/timeoutable_test.rb +0 -186
  87. data/test/integration/trackable_test.rb +0 -99
  88. data/test/mailers/confirmation_instructions_test.rb +0 -117
  89. data/test/mailers/email_changed_test.rb +0 -132
  90. data/test/mailers/mailer_test.rb +0 -20
  91. data/test/mailers/reset_password_instructions_test.rb +0 -98
  92. data/test/mailers/unlock_instructions_test.rb +0 -93
  93. data/test/mapping_test.rb +0 -136
  94. data/test/models/authenticatable_test.rb +0 -25
  95. data/test/models/confirmable_test.rb +0 -549
  96. data/test/models/database_authenticatable_test.rb +0 -290
  97. data/test/models/lockable_test.rb +0 -352
  98. data/test/models/omniauthable_test.rb +0 -9
  99. data/test/models/recoverable_test.rb +0 -263
  100. data/test/models/registerable_test.rb +0 -9
  101. data/test/models/rememberable_test.rb +0 -184
  102. data/test/models/serializable_test.rb +0 -60
  103. data/test/models/timeoutable_test.rb +0 -53
  104. data/test/models/trackable_test.rb +0 -80
  105. data/test/models/validatable_test.rb +0 -121
  106. data/test/models_test.rb +0 -155
  107. data/test/omniauth/config_test.rb +0 -61
  108. data/test/omniauth/url_helpers_test.rb +0 -53
  109. data/test/orm/active_record.rb +0 -24
  110. data/test/orm/mongoid.rb +0 -15
  111. data/test/parameter_sanitizer_test.rb +0 -105
  112. data/test/rails_app/Rakefile +0 -6
  113. data/test/rails_app/app/active_record/admin.rb +0 -8
  114. data/test/rails_app/app/active_record/shim.rb +0 -4
  115. data/test/rails_app/app/active_record/user.rb +0 -20
  116. data/test/rails_app/app/active_record/user_on_engine.rb +0 -9
  117. data/test/rails_app/app/active_record/user_on_main_app.rb +0 -9
  118. data/test/rails_app/app/active_record/user_with_validations.rb +0 -12
  119. data/test/rails_app/app/active_record/user_without_email.rb +0 -10
  120. data/test/rails_app/app/controllers/admins/sessions_controller.rb +0 -8
  121. data/test/rails_app/app/controllers/admins_controller.rb +0 -8
  122. data/test/rails_app/app/controllers/application_controller.rb +0 -13
  123. data/test/rails_app/app/controllers/application_with_fake_engine.rb +0 -32
  124. data/test/rails_app/app/controllers/custom/registrations_controller.rb +0 -33
  125. data/test/rails_app/app/controllers/home_controller.rb +0 -31
  126. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +0 -4
  127. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +0 -4
  128. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +0 -16
  129. data/test/rails_app/app/controllers/users_controller.rb +0 -33
  130. data/test/rails_app/app/helpers/application_helper.rb +0 -5
  131. data/test/rails_app/app/mailers/users/from_proc_mailer.rb +0 -5
  132. data/test/rails_app/app/mailers/users/mailer.rb +0 -5
  133. data/test/rails_app/app/mailers/users/reply_to_mailer.rb +0 -6
  134. data/test/rails_app/app/mongoid/admin.rb +0 -31
  135. data/test/rails_app/app/mongoid/shim.rb +0 -25
  136. data/test/rails_app/app/mongoid/user.rb +0 -50
  137. data/test/rails_app/app/mongoid/user_on_engine.rb +0 -41
  138. data/test/rails_app/app/mongoid/user_on_main_app.rb +0 -41
  139. data/test/rails_app/app/mongoid/user_with_validations.rb +0 -37
  140. data/test/rails_app/app/mongoid/user_without_email.rb +0 -35
  141. data/test/rails_app/app/views/admins/index.html.erb +0 -1
  142. data/test/rails_app/app/views/admins/sessions/new.html.erb +0 -2
  143. data/test/rails_app/app/views/home/admin_dashboard.html.erb +0 -1
  144. data/test/rails_app/app/views/home/index.html.erb +0 -1
  145. data/test/rails_app/app/views/home/join.html.erb +0 -1
  146. data/test/rails_app/app/views/home/private.html.erb +0 -1
  147. data/test/rails_app/app/views/home/user_dashboard.html.erb +0 -1
  148. data/test/rails_app/app/views/layouts/application.html.erb +0 -24
  149. data/test/rails_app/app/views/users/edit_form.html.erb +0 -1
  150. data/test/rails_app/app/views/users/index.html.erb +0 -1
  151. data/test/rails_app/app/views/users/mailer/confirmation_instructions.erb +0 -1
  152. data/test/rails_app/app/views/users/sessions/new.html.erb +0 -1
  153. data/test/rails_app/bin/bundle +0 -3
  154. data/test/rails_app/bin/rails +0 -4
  155. data/test/rails_app/bin/rake +0 -4
  156. data/test/rails_app/config.ru +0 -4
  157. data/test/rails_app/config/application.rb +0 -48
  158. data/test/rails_app/config/boot.rb +0 -27
  159. data/test/rails_app/config/database.yml +0 -18
  160. data/test/rails_app/config/environment.rb +0 -7
  161. data/test/rails_app/config/environments/development.rb +0 -32
  162. data/test/rails_app/config/environments/production.rb +0 -88
  163. data/test/rails_app/config/environments/test.rb +0 -47
  164. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -9
  165. data/test/rails_app/config/initializers/devise.rb +0 -187
  166. data/test/rails_app/config/initializers/inflections.rb +0 -4
  167. data/test/rails_app/config/initializers/secret_token.rb +0 -5
  168. data/test/rails_app/config/initializers/session_store.rb +0 -3
  169. data/test/rails_app/config/routes.rb +0 -128
  170. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -77
  171. data/test/rails_app/db/schema.rb +0 -57
  172. data/test/rails_app/lib/lazy_load_test_module.rb +0 -5
  173. data/test/rails_app/lib/shared_admin.rb +0 -23
  174. data/test/rails_app/lib/shared_user.rb +0 -32
  175. data/test/rails_app/lib/shared_user_without_email.rb +0 -28
  176. data/test/rails_app/lib/shared_user_without_omniauth.rb +0 -15
  177. data/test/rails_app/public/404.html +0 -26
  178. data/test/rails_app/public/422.html +0 -26
  179. data/test/rails_app/public/500.html +0 -26
  180. data/test/rails_app/public/favicon.ico +0 -0
  181. data/test/rails_test.rb +0 -11
  182. data/test/routes_test.rb +0 -281
  183. data/test/secret_key_finder_test.rb +0 -121
  184. data/test/support/action_controller/record_identifier.rb +0 -12
  185. data/test/support/assertions.rb +0 -30
  186. data/test/support/helpers.rb +0 -83
  187. data/test/support/http_method_compatibility.rb +0 -53
  188. data/test/support/integration.rb +0 -95
  189. data/test/support/locale/en.yml +0 -8
  190. data/test/support/mongoid.yml +0 -6
  191. data/test/support/webrat/integrations/rails.rb +0 -35
  192. data/test/test/controller_helpers_test.rb +0 -193
  193. data/test/test/integration_helpers_test.rb +0 -34
  194. data/test/test_helper.rb +0 -36
  195. data/test/test_models.rb +0 -35
@@ -35,6 +35,22 @@ module Devise
35
35
  attr_accessor :password_confirmation
36
36
  end
37
37
 
38
+ def initialize(*args, &block)
39
+ @skip_email_changed_notification = false
40
+ @skip_password_change_notification = false
41
+ super
42
+ end
43
+
44
+ # Skips sending the email changed notification after_update
45
+ def skip_email_changed_notification!
46
+ @skip_email_changed_notification = true
47
+ end
48
+
49
+ # Skips sending the password change notification after_update
50
+ def skip_password_change_notification!
51
+ @skip_password_change_notification = true
52
+ end
53
+
38
54
  def self.required_fields(klass)
39
55
  [:encrypted_password] + klass.authentication_keys
40
56
  end
@@ -44,7 +60,7 @@ module Devise
44
60
  # the hashed password.
45
61
  def password=(new_password)
46
62
  @password = new_password
47
- self.encrypted_password = password_digest(@password) if @password.present?
63
+ self.encrypted_password = password_digest(@password)
48
64
  end
49
65
 
50
66
  # Verifies whether a password (ie from sign in) is the user password.
@@ -54,7 +70,7 @@ module Devise
54
70
 
55
71
  # Set password and password confirmation to nil
56
72
  def clean_up_passwords
57
- self.password = self.password_confirmation = nil
73
+ @password = @password_confirmation = nil
58
74
  end
59
75
 
60
76
  # Update record attributes when :current_password matches, otherwise
@@ -65,6 +81,15 @@ module Devise
65
81
  # their password). In case the password field is rejected, the confirmation
66
82
  # is also rejected as long as it is also blank.
67
83
  def update_with_password(params, *options)
84
+ if options.present?
85
+ ActiveSupport::Deprecation.warn <<-DEPRECATION.strip_heredoc
86
+ [Devise] The second argument of `DatabaseAuthenticatable#update_with_password`
87
+ (`options`) is deprecated and it will be removed in the next major version.
88
+ It was added to support a feature deprecated in Rails 4, so you can safely remove it
89
+ from your code.
90
+ DEPRECATION
91
+ end
92
+
68
93
  current_password = params.delete(:current_password)
69
94
 
70
95
  if params[:password].blank?
@@ -98,6 +123,15 @@ module Devise
98
123
  # end
99
124
  #
100
125
  def update_without_password(params, *options)
126
+ if options.present?
127
+ ActiveSupport::Deprecation.warn <<-DEPRECATION.strip_heredoc
128
+ [Devise] The second argument of `DatabaseAuthenticatable#update_without_password`
129
+ (`options`) is deprecated and it will be removed in the next major version.
130
+ It was added to support a feature deprecated in Rails 4, so you can safely remove it
131
+ from your code.
132
+ DEPRECATION
133
+ end
134
+
101
135
  params.delete(:password)
102
136
  params.delete(:password_confirmation)
103
137
 
@@ -164,26 +198,27 @@ module Devise
164
198
  # See https://github.com/plataformatec/devise-encryptable for examples
165
199
  # of other hashing engines.
166
200
  def password_digest(password)
201
+ return if password.blank?
167
202
  Devise::Encryptor.digest(self.class, password)
168
203
  end
169
204
 
170
205
  if Devise.activerecord51?
171
206
  def send_email_changed_notification?
172
- self.class.send_email_changed_notification && saved_change_to_email?
207
+ self.class.send_email_changed_notification && saved_change_to_email? && !@skip_email_changed_notification
173
208
  end
174
209
  else
175
210
  def send_email_changed_notification?
176
- self.class.send_email_changed_notification && email_changed?
211
+ self.class.send_email_changed_notification && email_changed? && !@skip_email_changed_notification
177
212
  end
178
213
  end
179
214
 
180
215
  if Devise.activerecord51?
181
216
  def send_password_change_notification?
182
- self.class.send_password_change_notification && saved_change_to_encrypted_password?
217
+ self.class.send_password_change_notification && saved_change_to_encrypted_password? && !@skip_password_change_notification
183
218
  end
184
219
  else
185
220
  def send_password_change_notification?
186
- self.class.send_password_change_notification && encrypted_password_changed?
221
+ self.class.send_password_change_notification && encrypted_password_changed? && !@skip_password_change_notification
187
222
  end
188
223
  end
189
224
 
@@ -112,8 +112,8 @@ module Devise
112
112
  end
113
113
 
114
114
  def increment_failed_attempts
115
- self.failed_attempts ||= 0
116
- self.failed_attempts += 1
115
+ self.class.increment_counter(:failed_attempts, id)
116
+ reload
117
117
  end
118
118
 
119
119
  def unauthenticated_message
@@ -21,6 +21,8 @@ module Devise
21
21
  def new_with_session(params, session)
22
22
  new(params)
23
23
  end
24
+
25
+ Devise::Models.config(self, :sign_in_after_change_password)
24
26
  end
25
27
  end
26
28
  end
@@ -16,6 +16,9 @@ module Devise
16
16
  success!(resource)
17
17
  end
18
18
 
19
+ # In paranoid mode, hash the password even when a resource doesn't exist for the given authentication key.
20
+ # This is necessary to prevent enumeration attacks - e.g. the request is faster when a resource doesn't
21
+ # exist in the database if the password hashing algorithm is not called.
19
22
  mapping.to.new.password = password if !hashed && Devise.paranoid
20
23
  unless resource
21
24
  Devise.paranoid ? fail(:invalid) : fail(:not_found_in_database)
@@ -139,7 +139,7 @@ module Devise
139
139
 
140
140
  status, headers, response = Devise.warden_config[:failure_app].call(env).to_a
141
141
  @controller.response.headers.merge!(headers)
142
- @controller.response.content_type = headers["Content-Type"] unless Rails.version.start_with?('5')
142
+ @controller.response.content_type = headers["Content-Type"] unless Rails::VERSION::MAJOR >= 5
143
143
  @controller.status = status
144
144
  @controller.response.body = response.body
145
145
  nil # causes process return @response
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Devise
4
- VERSION = "4.5.0".freeze
4
+ VERSION = "4.6.0".freeze
5
5
  end
@@ -82,8 +82,8 @@ RUBY
82
82
  postgresql?
83
83
  end
84
84
 
85
- def rails5?
86
- Rails.version.start_with? '5'
85
+ def rails5_and_up?
86
+ Rails::VERSION::MAJOR >= 5
87
87
  end
88
88
 
89
89
  def postgresql?
@@ -92,13 +92,13 @@ RUBY
92
92
  end
93
93
 
94
94
  def migration_version
95
- if rails5?
95
+ if rails5_and_up?
96
96
  "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
97
97
  end
98
98
  end
99
99
 
100
100
  def primary_key_type
101
- primary_key_string if rails5?
101
+ primary_key_string if rails5_and_up?
102
102
  end
103
103
 
104
104
  def primary_key_string
@@ -18,7 +18,7 @@ module Devise
18
18
 
19
19
  This will create a controller class at app/controllers/users/sessions_controller.rb like this:
20
20
 
21
- class Users::ConfirmationsController < Devise::ConfirmationsController
21
+ class Users::SessionsController < Devise::SessionsController
22
22
  content...
23
23
  end
24
24
  DESC
@@ -9,7 +9,7 @@ Devise.setup do |config|
9
9
  # Devise will use the `secret_key_base` as its `secret_key`
10
10
  # by default. You can change it below and use your own secret key.
11
11
  # config.secret_key = '<%= SecureRandom.hex(64) %>'
12
-
12
+
13
13
  # ==> Controller configuration
14
14
  # Configure the parent class to the devise controllers.
15
15
  # config.parent_controller = 'DeviseController'
@@ -126,8 +126,11 @@ Devise.setup do |config|
126
126
  # A period that the user is allowed to access the website even without
127
127
  # confirming their account. For instance, if set to 2.days, the user will be
128
128
  # able to access the website for two days without confirming their account,
129
- # access will be blocked just in the third day. Default is 0.days, meaning
130
- # the user cannot access the website without confirming their account.
129
+ # access will be blocked just in the third day.
130
+ # You can also set it to nil, which will allow the user to access the website
131
+ # without confirming their account.
132
+ # Default is 0.days, meaning the user cannot access the website without
133
+ # confirming their account.
131
134
  # config.allow_unconfirmed_access_for = 2.days
132
135
 
133
136
  # A period that the user is allowed to confirm their account before their
@@ -287,4 +290,10 @@ Devise.setup do |config|
287
290
  # ActiveSupport.on_load(:devise_failure_app) do
288
291
  # include Turbolinks::Controller
289
292
  # end
293
+
294
+ # ==> Configuration for :registerable
295
+
296
+ # When set to false, does not sign a user in automatically after their password is
297
+ # changed. Defaults to true, so a user is signed in automatically after changing a password.
298
+ # config.sign_in_after_change_password = true
290
299
  end
@@ -12,7 +12,7 @@
12
12
 
13
13
  <%= f.input :password,
14
14
  hint: "leave it blank if you don't want to change it",
15
- required: false
15
+ required: false,
16
16
  input_html: { autocomplete: "new-password" } %>
17
17
  <%= f.input :password_confirmation,
18
18
  required: false,
@@ -6,7 +6,7 @@
6
6
  <div class="form-inputs">
7
7
  <%= f.input :email,
8
8
  required: true,
9
- autofocus: true ,
9
+ autofocus: true,
10
10
  input_html: { autocomplete: "email" }%>
11
11
  <%= f.input :password,
12
12
  required: true,
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.5.0
4
+ version: 4.6.0
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: 2018-08-15 00:00:00.000000000 Z
12
+ date: 2019-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: warden
@@ -93,18 +93,9 @@ executables: []
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
- - ".gitignore"
97
- - ".travis.yml"
98
- - ".yardopts"
99
96
  - CHANGELOG.md
100
- - CODE_OF_CONDUCT.md
101
- - CONTRIBUTING.md
102
- - Gemfile
103
- - Gemfile.lock
104
- - ISSUE_TEMPLATE.md
105
97
  - MIT-LICENSE
106
98
  - README.md
107
- - Rakefile
108
99
  - app/controllers/devise/confirmations_controller.rb
109
100
  - app/controllers/devise/omniauth_callbacks_controller.rb
110
101
  - app/controllers/devise/passwords_controller.rb
@@ -125,21 +116,10 @@ files:
125
116
  - app/views/devise/registrations/edit.html.erb
126
117
  - app/views/devise/registrations/new.html.erb
127
118
  - app/views/devise/sessions/new.html.erb
119
+ - app/views/devise/shared/_error_messages.html.erb
128
120
  - app/views/devise/shared/_links.html.erb
129
121
  - app/views/devise/unlocks/new.html.erb
130
- - bin/test
131
122
  - 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
123
  - lib/devise.rb
144
124
  - lib/devise/controllers/helpers.rb
145
125
  - lib/devise/controllers/rememberable.rb
@@ -224,146 +204,6 @@ files:
224
204
  - lib/generators/templates/simple_form_for/registrations/new.html.erb
225
205
  - lib/generators/templates/simple_form_for/sessions/new.html.erb
226
206
  - 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
207
  homepage: https://github.com/plataformatec/devise
368
208
  licenses:
369
209
  - MIT
@@ -384,148 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
384
224
  version: '0'
385
225
  requirements: []
386
226
  rubyforge_project:
387
- rubygems_version: 2.7.4
227
+ rubygems_version: 2.6.13
388
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: []