devise 2.0.0.rc → 2.0.0.rc2

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 (75) hide show
  1. data/CHANGELOG.rdoc +94 -74
  2. data/README.rdoc +2 -2
  3. data/app/controllers/devise/confirmations_controller.rb +3 -6
  4. data/app/controllers/devise/omniauth_callbacks_controller.rb +1 -3
  5. data/app/controllers/devise/passwords_controller.rb +3 -6
  6. data/app/controllers/devise/registrations_controller.rb +34 -41
  7. data/app/controllers/devise/sessions_controller.rb +2 -3
  8. data/app/controllers/devise/unlocks_controller.rb +3 -5
  9. data/app/controllers/devise_controller.rb +169 -0
  10. data/app/views/devise/_links.erb +25 -0
  11. data/app/views/devise/confirmations/new.html.erb +1 -1
  12. data/app/views/devise/passwords/edit.html.erb +1 -1
  13. data/app/views/devise/passwords/new.html.erb +1 -1
  14. data/app/views/devise/registrations/new.html.erb +1 -1
  15. data/app/views/devise/sessions/new.html.erb +1 -1
  16. data/app/views/devise/shared/_links.erb +3 -25
  17. data/app/views/devise/unlocks/new.html.erb +1 -1
  18. data/config/locales/en.yml +4 -6
  19. data/lib/devise.rb +15 -11
  20. data/lib/devise/controllers/helpers.rb +8 -2
  21. data/lib/devise/controllers/scoped_views.rb +0 -16
  22. data/lib/devise/controllers/url_helpers.rb +16 -2
  23. data/lib/devise/failure_app.rb +43 -8
  24. data/lib/devise/models.rb +1 -1
  25. data/lib/devise/models/confirmable.rb +12 -9
  26. data/lib/devise/models/lockable.rb +1 -1
  27. data/lib/devise/models/serializable.rb +5 -2
  28. data/lib/devise/modules.rb +2 -2
  29. data/lib/devise/param_filter.rb +1 -1
  30. data/lib/devise/path_checker.rb +5 -1
  31. data/lib/devise/rails.rb +21 -0
  32. data/lib/devise/rails/routes.rb +16 -10
  33. data/lib/devise/rails/warden_compat.rb +0 -83
  34. data/lib/devise/strategies/authenticatable.rb +2 -2
  35. data/lib/devise/version.rb +1 -1
  36. data/lib/generators/active_record/devise_generator.rb +1 -1
  37. data/lib/generators/active_record/templates/migration.rb +0 -10
  38. data/lib/generators/devise/views_generator.rb +6 -14
  39. data/lib/generators/templates/devise.rb +11 -3
  40. data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +1 -1
  41. data/lib/generators/templates/simple_form_for/passwords/edit.html.erb +1 -1
  42. data/lib/generators/templates/simple_form_for/passwords/new.html.erb +1 -1
  43. data/lib/generators/templates/simple_form_for/registrations/new.html.erb +1 -1
  44. data/lib/generators/templates/simple_form_for/sessions/new.html.erb +1 -1
  45. data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +1 -1
  46. data/test/controllers/internal_helpers_test.rb +1 -2
  47. data/test/failure_app_test.rb +24 -20
  48. data/test/generators/active_record_generator_test.rb +3 -13
  49. data/test/generators/views_generator_test.rb +1 -1
  50. data/test/integration/authenticatable_test.rb +4 -7
  51. data/test/integration/http_authenticatable_test.rb +4 -4
  52. data/test/integration/lockable_test.rb +24 -12
  53. data/test/integration/registerable_test.rb +1 -1
  54. data/test/integration/timeoutable_test.rb +18 -4
  55. data/test/integration/token_authenticatable_test.rb +3 -3
  56. data/test/integration/trackable_test.rb +5 -5
  57. data/test/models/confirmable_test.rb +15 -0
  58. data/test/models/database_authenticatable_test.rb +6 -0
  59. data/test/models/lockable_test.rb +13 -0
  60. data/test/rails_app/app/mongoid/user.rb +1 -1
  61. data/test/rails_app/config/routes.rb +3 -5
  62. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +1 -1
  63. data/test/rails_app/lib/shared_admin.rb +1 -0
  64. data/test/rails_app/log/development.log +13 -0
  65. data/test/rails_app/log/test.log +290988 -0
  66. data/test/support/helpers.rb +0 -17
  67. metadata +105 -57
  68. data/.gitignore +0 -10
  69. data/.travis.yml +0 -13
  70. data/Gemfile +0 -35
  71. data/Gemfile.lock +0 -168
  72. data/Rakefile +0 -34
  73. data/devise.gemspec +0 -25
  74. data/lib/devise/controllers/internal_helpers.rb +0 -161
  75. data/lib/devise/controllers/shared_helpers.rb +0 -26
@@ -1,10 +1,30 @@
1
- == 2.0.0.rc
1
+ == 2.0.0.rc2
2
2
 
3
3
  Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0
4
4
 
5
+ * bug fix
6
+ * Fix incorrect message for locked account (by @jigyasa)
7
+ * Regenerate confirmation token on reconfirmation (by @nashby)
8
+ * Allow alternate ORMs to run compatibility setup code before Authenticatable is included (by @jm81)
9
+ * Do not run validations unless on reconfirmable branch
10
+
11
+ * enhancements
12
+ * Redirect to the previous URL on timeout
13
+ * Inherit from the same Devise parent controller (by @sj26)
14
+ * Allow parent_controller to be customizable via Devise.parent_controller, useful for engines
15
+ * Allow router_name to be customizable via Devise.router_name, useful for engines
16
+
17
+ * deprecation
18
+ * Move devise/shared/_links.erb to devise/_links.erb
19
+ * Devise only supports Rails 3.1 forward
20
+ * Deprecated support for nested devise_for blocks
21
+ * Deprecated support to devise.registrations.reasons and devise.registrations.inactive_signed_up in favor of devise.registrations.signed_up_but_*
22
+
23
+ == 2.0.0.rc
24
+
5
25
  * enhancements
6
- * Add support for e-mail reconfirmation on change (by github.com/Mandaryn and github.com/heimidal)
7
- * Redirect users to sign in page after unlock (by github.com/nashby)
26
+ * Add support for e-mail reconfirmation on change (by @Mandaryn and @heimidal)
27
+ * Redirect users to sign in page after unlock (by @nashby)
8
28
 
9
29
  * deprecation
10
30
  * Devise.apply_schema is deprecated
@@ -19,15 +39,15 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
19
39
  == 1.5.3
20
40
 
21
41
  * bug fix
22
- * Ensure delegator converts scope to symbol (by github.com/dmitriy-kiriyenko)
42
+ * Ensure delegator converts scope to symbol (by @dmitriy-kiriyenko)
23
43
  * Ensure passing :format => false to devise_for is not permanent
24
44
  * Ensure path checker does not check invalid routes
25
45
 
26
46
  == 1.5.2
27
47
 
28
48
  * enhancements
29
- * Add support for Rails 3.1 new mass assignment conventions (by github.com/kirs)
30
- * Add timeout_in method to Timeoutable, it can be overridden in a model (by github.com/lest)
49
+ * Add support for Rails 3.1 new mass assignment conventions (by @kirs)
50
+ * Add timeout_in method to Timeoutable, it can be overridden in a model (by @lest)
31
51
 
32
52
  * bug fix
33
53
  * OmniAuth error message now shows the proper option (:strategy_class instead of :klass)
@@ -42,10 +62,10 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
42
62
  * enhancements
43
63
  * Timeoutable also skips tracking if skip_trackable is given
44
64
  * devise_for now accepts :failure_app as an option
45
- * Models can select the proper mailer via devise_mailer method (by github.com/locomotivecms)
46
- * Migration generator now uses the change method (by github.com/nashby)
47
- * Support to markerb templates on the mailer generator (by github.com/sbounmy)
48
- * Support for Omniauth 1.0 (older versions are no longer supported) (by github.com/TamiasSibiricus)
65
+ * Models can select the proper mailer via devise_mailer method (by @locomotivecms)
66
+ * Migration generator now uses the change method (by @nashby)
67
+ * Support to markerb templates on the mailer generator (by @sbounmy)
68
+ * Support for Omniauth 1.0 (older versions are no longer supported) (by @TamiasSibiricus)
49
69
 
50
70
  * bug fix
51
71
  * Allow idempotent API requests
@@ -88,7 +108,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
88
108
 
89
109
  * bug fix
90
110
  * Failure app tries the root path if a session one does not exist
91
- * No need to finalize Devise helpers all the time (by github.com/bradleypriest)
111
+ * No need to finalize Devise helpers all the time (by @bradleypriest)
92
112
  * Reset password shows proper message if user is not active
93
113
  * `clean_up_passwords` sets the accessors to nil to skip validations
94
114
 
@@ -123,7 +143,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
123
143
  * enhancements
124
144
  * Add :defaults and :format support on router
125
145
  * Add simple form generators
126
- * Better localization for devise_error_messages! (by github.com/zedtux)
146
+ * Better localization for devise_error_messages! (by @zedtux)
127
147
 
128
148
  * bug fix
129
149
  * Ensure to_xml is properly white listened
@@ -132,20 +152,20 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
132
152
  == 1.4.0
133
153
 
134
154
  * enhancements
135
- * Added authenticated and unauthenticated to the router to route the used based on his status (by github.com/sj26)
136
- * Improve e-mail regexp (by github.com/rodrigoflores)
137
- * Add strip_whitespace_keys and default to e-mail (by github.com/swrobel)
138
- * Do not run format and uniqueness validations on e-mail if it hasn't changed (by github.com/Thibaut)
139
- * Added update_without_password to update models but not allowing the password to change (by github.com/fschwahn)
140
- * Added config.paranoid, check the generator for more information (by github.com/rodrigoflores)
155
+ * Added authenticated and unauthenticated to the router to route the used based on his status (by @sj26)
156
+ * Improve e-mail regexp (by @rodrigoflores)
157
+ * Add strip_whitespace_keys and default to e-mail (by @swrobel)
158
+ * Do not run format and uniqueness validations on e-mail if it hasn't changed (by @Thibaut)
159
+ * Added update_without_password to update models but not allowing the password to change (by @fschwahn)
160
+ * Added config.paranoid, check the generator for more information (by @rodrigoflores)
141
161
 
142
162
  * bug fix
143
163
  * password_required? should not affect length validation
144
164
  * User cannot access sign up and similar pages if he is already signed in through a cookie or token
145
- * Do not convert booleans to strings on finders (by github.com/xavier)
146
- * Run validations even if current_password fails (by github.com/crx)
147
- * Devise now honors routes constraints (by github.com/macmartine)
148
- * Do not return the user resource when requesting instructions (by github.com/rodrigoflores)
165
+ * Do not convert booleans to strings on finders (by @xavier)
166
+ * Run validations even if current_password fails (by @crx)
167
+ * Devise now honors routes constraints (by @macmartine)
168
+ * Do not return the user resource when requesting instructions (by @rodrigoflores)
149
169
 
150
170
  == 1.3.4
151
171
 
@@ -160,31 +180,31 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
160
180
  == 1.3.2
161
181
 
162
182
  * bug fix
163
- * Fix another regression related to reset_password_sent_at (by github.com/alexdreher)
183
+ * Fix another regression related to reset_password_sent_at (by @alexdreher)
164
184
 
165
185
  == 1.3.1
166
186
 
167
187
  * enhancements
168
- * Improve failure_app responses (by github.com/indirect)
188
+ * Improve failure_app responses (by @indirect)
169
189
  * sessions/new and registrations/new also respond to xml and json now
170
190
 
171
191
  * bug fix
172
- * Fix a regression that occurred if reset_password_sent_at is not present (by github.com/stevehodgkiss)
192
+ * Fix a regression that occurred if reset_password_sent_at is not present (by @stevehodgkiss)
173
193
 
174
194
  == 1.3.0
175
195
 
176
196
  * enhancements
177
- * All controllers can now handle different mime types than html using Responders (by github.com/sikachu)
178
- * Added reset_password_within as configuration option to send the token for recovery (by github.com/jdguyot)
179
- * Bump password length to 128 characters (by github.com/k33l0r)
180
- * Add :only as option to devise_for (by github.com/timoschilling)
181
- * Allow to override path after sending password instructions (by github.com/irohiroki)
182
- * require_no_authentication has its own flash message (by github.com/jackdempsey)
197
+ * All controllers can now handle different mime types than html using Responders (by @sikachu)
198
+ * Added reset_password_within as configuration option to send the token for recovery (by @jdguyot)
199
+ * Bump password length to 128 characters (by @k33l0r)
200
+ * Add :only as option to devise_for (by @timoschilling)
201
+ * Allow to override path after sending password instructions (by @irohiroki)
202
+ * require_no_authentication has its own flash message (by @jackdempsey)
183
203
 
184
204
  * bug fix
185
205
  * Fix a bug where configuration options were being included too late
186
- * Ensure Devise::TestHelpers can be used to tests Devise internal controllers (by github.com/jwilger)
187
- * valid_password? should not choke on empty passwords (by github.com/mikel)
206
+ * Ensure Devise::TestHelpers can be used to tests Devise internal controllers (by @jwilger)
207
+ * valid_password? should not choke on empty passwords (by @mikel)
188
208
  * Calling devise more than once does not include previously added modules anymore
189
209
  * downcase_keys before validation
190
210
 
@@ -211,16 +231,16 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
211
231
 
212
232
  * bug fix
213
233
  * Fix an issue causing infinite redirects in production
214
- * rails g destroy works properly with devise generators (by github.com/andmej)
215
- * before_failure callbacks should work on test helpers (by github.com/twinge)
216
- * rememberable cookie now is httponly by default (by github.com/JamesFerguson)
217
- * Add missing confirmation_keys (by github.com/JohnPlummer)
234
+ * rails g destroy works properly with devise generators (by @andmej)
235
+ * before_failure callbacks should work on test helpers (by @twinge)
236
+ * rememberable cookie now is httponly by default (by @JamesFerguson)
237
+ * Add missing confirmation_keys (by @JohnPlummer)
218
238
  * Ensure after_* hooks are called on RegistrationsController
219
239
  * When using database_authenticatable Devise will now only create an email field when appropriate (if using default authentication_keys or custom authentication_keys with email included)
220
- * Ensure stateless token does not trigger timeout (by github.com/pixelauthority)
240
+ * Ensure stateless token does not trigger timeout (by @pixelauthority)
221
241
  * Implement handle_unverified_request for Rails 3.0.4 compatibility and improve FailureApp reliance on symbols
222
242
  * Consider namespaces while generating routes
223
- * Custom failure apps no longer ignored in test mode (by github.com/jaghion)
243
+ * Custom failure apps no longer ignored in test mode (by @jaghion)
224
244
  * Do not depend on ActiveModel::Dirty
225
245
  * Manual sign_in now triggers remember token
226
246
  * Be sure to halt strategies on failures
@@ -229,7 +249,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
229
249
  * Ensure there is no Mongoid injection
230
250
 
231
251
  * deprecations
232
- * Deprecated anybody_signed_in? in favor of signed_in? (by github.com/gavinhughes)
252
+ * Deprecated anybody_signed_in? in favor of signed_in? (by @gavinhughes)
233
253
  * Removed --haml and --slim view templates
234
254
  * Devise::OmniAuth helpers were deprecated and removed in favor of Omniauth.config.test_mode
235
255
 
@@ -242,11 +262,11 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
242
262
  * enhancements
243
263
  * Added OmniAuth support
244
264
  * Added ORM adapter to abstract ORM iteraction
245
- * sign_out_via is available in the router to configure the method used for sign out (by github.com/martinrehfeld)
246
- * Improved Ajax requests handling in failure app (by github.com/spastorino)
265
+ * sign_out_via is available in the router to configure the method used for sign out (by @martinrehfeld)
266
+ * Improved Ajax requests handling in failure app (by @spastorino)
247
267
  * Added request_keys to easily use request specific values (like subdomain) in authentication
248
268
  * Increased the size of friendly_token to 60 characters (reduces the chances of a successful brute attack)
249
- * Ensure the friendly token does not include "_" or "-" since some e-mails may not autolink it properly (by github.com/rymai)
269
+ * Ensure the friendly token does not include "_" or "-" since some e-mails may not autolink it properly (by @rymai)
250
270
  * Extracted encryptors into :encryptable for better bcrypt support
251
271
  * :rememberable is now able to use salt as token if no remember_token is provided
252
272
  * Store the salt in session and expire the session if the user changes his password
@@ -255,7 +275,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
255
275
  * Sign up now check if the user is active or not and redirect him accordingly setting the inactive_signed_up message
256
276
  * Use ActiveModel#to_key instead of #id
257
277
  * sign_out_all_scopes now destroys the whole session
258
- * Added case_insensitive_keys that automatically downcases the given keys, by default downcases only e-mail (by github.com/adahl)
278
+ * Added case_insensitive_keys that automatically downcases the given keys, by default downcases only e-mail (by @adahl)
259
279
 
260
280
  * default behavior changes
261
281
  * sign_out_all_scopes defaults to true as security measure
@@ -264,12 +284,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
264
284
 
265
285
  * bugfix
266
286
  * after_sign_in_path_for always receives a resource
267
- * Do not execute Warden::Callbacks on Devise::TestHelpers (by github.com/sgronblo)
268
- * Allow password recovery and account unlocking to change used keys (by github.com/RStankov)
287
+ * Do not execute Warden::Callbacks on Devise::TestHelpers (by @sgronblo)
288
+ * Allow password recovery and account unlocking to change used keys (by @RStankov)
269
289
  * FailureApp now properly handles nil request.format
270
290
  * Fix a bug causing FailureApp to return with HTTP Auth Headers for IE7
271
291
  * Ensure namespaces has proper scoped views
272
- * Ensure Devise does not set empty flash messages (by github.com/sxross)
292
+ * Ensure Devise does not set empty flash messages (by @sxross)
273
293
 
274
294
  == 1.1.6
275
295
 
@@ -294,11 +314,11 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
294
314
 
295
315
  * bugfix
296
316
  * Add reply-to to e-mail headers by default
297
- * Updated the views generator to respect the rails :template_engine option (by github.com/fredwu)
317
+ * Updated the views generator to respect the rails :template_engine option (by @fredwu)
298
318
  * Check the type of HTTP Authentication before using Basic headers
299
- * Avoid invalid_salt errors by checking salt presence (by github.com/thibaudgg)
300
- * Forget user deletes the right cookie before logout, not remembering the user anymore (by github.com/emtrane)
301
- * Fix for failed first-ever logins on PostgreSQL where column default is nil (by github.com/bensie)
319
+ * Avoid invalid_salt errors by checking salt presence (by @thibaudgg)
320
+ * Forget user deletes the right cookie before logout, not remembering the user anymore (by @emtrane)
321
+ * Fix for failed first-ever logins on PostgreSQL where column default is nil (by @bensie)
302
322
  * :default options is now honored in migrations
303
323
 
304
324
  == 1.1.2
@@ -314,16 +334,16 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
314
334
  == 1.1.0
315
335
 
316
336
  * enhancements
317
- * Rememberable module allows user to be remembered across browsers and is enabled by default (by github.com/trevorturk)
318
- * Rememberable module allows you to activate the period the remember me token is extended (by github.com/trevorturk)
337
+ * Rememberable module allows user to be remembered across browsers and is enabled by default (by @trevorturk)
338
+ * Rememberable module allows you to activate the period the remember me token is extended (by @trevorturk)
319
339
  * devise_for can now be used together with scope method in routes but with a few limitations (check the documentation)
320
340
  * Support `as` or `devise_scope` in the router to specify controller access scope
321
- * HTTP Basic Auth can now be disabled/enabled for xhr(ajax) requests using http_authenticatable_on_xhr option (by github.com/pellja)
341
+ * HTTP Basic Auth can now be disabled/enabled for xhr(ajax) requests using http_authenticatable_on_xhr option (by @pellja)
322
342
 
323
343
  * bug fix
324
344
  * Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts
325
345
  * Devise should respect script_name and path_info contracts
326
- * Fix a bug when accessing a path with (.:format) (by github.com/klacointe)
346
+ * Fix a bug when accessing a path with (.:format) (by @klacointe)
327
347
  * Do not add unlock routes unless unlock strategy is email or both
328
348
  * Email should be case insensitive
329
349
  * Store classes as string in session, to avoid serialization and stale data issues
@@ -334,10 +354,10 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
334
354
  == 1.1.rc2
335
355
 
336
356
  * enhancements
337
- * Allow to set cookie domain for the remember token. (by github.com/mantas)
357
+ * Allow to set cookie domain for the remember token. (by @mantas)
338
358
  * Added navigational formats to specify when it should return a 302 and when a 401.
339
- * Added authenticate(scope) support in routes (by github.com/wildchild)
340
- * Added after_update_path_for to registrations controller (by github.com/thedelchop)
359
+ * Added authenticate(scope) support in routes (by @wildchild)
360
+ * Added after_update_path_for to registrations controller (by @thedelchop)
341
361
  * Allow the mailer object to be replaced through config.mailer = "MyOwnMailer"
342
362
 
343
363
  * bug fix
@@ -385,10 +405,10 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
385
405
 
386
406
  * enhancements
387
407
  * Support for latest MongoMapper
388
- * Added anybody_signed_in? helper (by github.com/SSDany)
408
+ * Added anybody_signed_in? helper (by @SSDany)
389
409
 
390
410
  * bug fix
391
- * confirmation_required? is properly honored on active? calls. (by github.com/paulrosania)
411
+ * confirmation_required? is properly honored on active? calls. (by @paulrosania)
392
412
 
393
413
  == 1.0.7
394
414
 
@@ -429,7 +449,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
429
449
  == 1.0.2
430
450
 
431
451
  * enhancements
432
- * Allows you set mailer content type (by github.com/glennr)
452
+ * Allows you set mailer content type (by @glennr)
433
453
 
434
454
  * bug fix
435
455
  * Uses the same content type as request on http authenticatable 401 responses
@@ -462,12 +482,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
462
482
 
463
483
  * enhancements
464
484
  * Added gemspec to repo
465
- * Added token authenticatable (by github.com/grimen)
485
+ * Added token authenticatable (by @grimen)
466
486
 
467
487
  == 0.9.1
468
488
 
469
489
  * bug fix
470
- * Allow bigger salt size (by github.com/jgeiger)
490
+ * Allow bigger salt size (by @jgeiger)
471
491
  * Fix relative url root
472
492
 
473
493
  == 0.9.0
@@ -477,11 +497,11 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
477
497
  * :success and :failure flash messages are now :notice and :alert
478
498
 
479
499
  * enhancements
480
- * Added devise lockable (by github.com/mhfs)
500
+ * Added devise lockable (by @mhfs)
481
501
  * Warden 0.9.0 compatibility
482
502
  * Mongomapper 0.6.10 compatibility
483
- * Added Devise.add_module as hooks for extensions (by github.com/grimen)
484
- * Ruby 1.9.1 compatibility (by github.com/grimen)
503
+ * Added Devise.add_module as hooks for extensions (by @grimen)
504
+ * Ruby 1.9.1 compatibility (by @grimen)
485
505
 
486
506
  * bug fix
487
507
  * Accept path prefix not starting with slash
@@ -490,10 +510,10 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
490
510
  == 0.8.2
491
511
 
492
512
  * enhancements
493
- * Allow Devise.mailer_sender to be a proc (by github.com/grimen)
513
+ * Allow Devise.mailer_sender to be a proc (by @grimen)
494
514
 
495
515
  * bug fix
496
- * Fix bug with passenger, update is required to anyone deploying on passenger (by github.com/dvdpalm)
516
+ * Fix bug with passenger, update is required to anyone deploying on passenger (by @dvdpalm)
497
517
 
498
518
  == 0.8.1
499
519
 
@@ -510,11 +530,11 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
510
530
  * enhancements
511
531
  * Warden 0.8.0 compatibility
512
532
  * Add an easy for map.connect "sign_in", :controller => "sessions", :action => "new" to work
513
- * Added :bcrypt encryptor (by github.com/capotej)
533
+ * Added :bcrypt encryptor (by @capotej)
514
534
 
515
535
  * bug fix
516
536
  * sign_in_count is also increased when user signs in via password change, confirmation, etc..
517
- * More DataMapper compatibility (by github.com/lancecarlson)
537
+ * More DataMapper compatibility (by @lancecarlson)
518
538
 
519
539
  * deprecation
520
540
  * Removed DeviseMailer.sender
@@ -554,7 +574,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
554
574
  == 0.7.1
555
575
 
556
576
  * enhancements
557
- * Small enhancements for other plugins compatibility (by github.com/grimen)
577
+ * Small enhancements for other plugins compatibility (by @grimen)
558
578
 
559
579
  == 0.7.0
560
580
 
@@ -648,9 +668,9 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
648
668
  * Fixed a bug where remember me module was not working properly
649
669
 
650
670
  * enhancements
651
- * Moved encryption strategy into the Encryptors module to allow several algorithms (by github.com/mhfs)
652
- * Implemented encryptors for Clearance, Authlogic and Restful-Authentication (by github.com/mhfs)
653
- * Added support for MongoMapper (by github.com/shingara)
671
+ * Moved encryption strategy into the Encryptors module to allow several algorithms (by @mhfs)
672
+ * Implemented encryptors for Clearance, Authlogic and Restful-Authentication (by @mhfs)
673
+ * Added support for MongoMapper (by @shingara)
654
674
 
655
675
  == 0.4.3
656
676
 
@@ -1,4 +1,4 @@
1
- *IMPORTANT:* Devise 2.0.0.rc is out. If you are upgrading, please read: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0
1
+ *IMPORTANT:* Devise 2.0.0.rc is out. If you are upgrading, please read: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0-migration-schema-style
2
2
 
3
3
  == Devise
4
4
 
@@ -212,7 +212,7 @@ Devise allows you to set up as many roles as you want. For example, you may have
212
212
 
213
213
  We built Devise to help you quickly develop an application that uses authentication. However, we don't want to be in your way when you need to customize it.
214
214
 
215
- Since Devise is an engine, all its views are packaged inside the gem. These views will help you get started, but after sometime you may want to change them. If this is the case, you just need to invoke the following generator, and it will copy all views to your application:
215
+ Since Devise is an engine, all its views are packaged inside the gem. These views will help you get started, but after some time you may want to change them. If this is the case, you just need to invoke the following generator, and it will copy all views to your application:
216
216
 
217
217
  rails generate devise:views
218
218
 
@@ -1,10 +1,7 @@
1
- class Devise::ConfirmationsController < ApplicationController
2
- include Devise::Controllers::InternalHelpers
3
-
1
+ class Devise::ConfirmationsController < DeviseController
4
2
  # GET /resource/confirmation/new
5
3
  def new
6
4
  build_resource({})
7
- render_with_scope :new
8
5
  end
9
6
 
10
7
  # POST /resource/confirmation
@@ -14,7 +11,7 @@ class Devise::ConfirmationsController < ApplicationController
14
11
  if successfully_sent?(resource)
15
12
  respond_with({}, :location => after_resending_confirmation_instructions_path_for(resource_name))
16
13
  else
17
- respond_with_navigational(resource){ render_with_scope :new }
14
+ respond_with(resource)
18
15
  end
19
16
  end
20
17
 
@@ -27,7 +24,7 @@ class Devise::ConfirmationsController < ApplicationController
27
24
  sign_in(resource_name, resource)
28
25
  respond_with_navigational(resource){ redirect_to after_confirmation_path_for(resource_name, resource) }
29
26
  else
30
- respond_with_navigational(resource.errors, :status => :unprocessable_entity){ render_with_scope :new }
27
+ respond_with_navigational(resource.errors, :status => :unprocessable_entity){ render :new }
31
28
  end
32
29
  end
33
30
 
@@ -1,6 +1,4 @@
1
- class Devise::OmniauthCallbacksController < ApplicationController
2
- include Devise::Controllers::InternalHelpers
3
-
1
+ class Devise::OmniauthCallbacksController < DeviseController
4
2
  def failure
5
3
  set_flash_message :alert, :failure, :kind => failed_strategy.name.to_s.humanize, :reason => failure_message
6
4
  redirect_to after_omniauth_failure_path_for(resource_name)
@@ -1,11 +1,9 @@
1
- class Devise::PasswordsController < ApplicationController
1
+ class Devise::PasswordsController < DeviseController
2
2
  prepend_before_filter :require_no_authentication
3
- include Devise::Controllers::InternalHelpers
4
3
 
5
4
  # GET /resource/password/new
6
5
  def new
7
6
  build_resource({})
8
- render_with_scope :new
9
7
  end
10
8
 
11
9
  # POST /resource/password
@@ -15,7 +13,7 @@ class Devise::PasswordsController < ApplicationController
15
13
  if successfully_sent?(resource)
16
14
  respond_with({}, :location => after_sending_reset_password_instructions_path_for(resource_name))
17
15
  else
18
- respond_with_navigational(resource){ render_with_scope :new }
16
+ respond_with(resource)
19
17
  end
20
18
  end
21
19
 
@@ -23,7 +21,6 @@ class Devise::PasswordsController < ApplicationController
23
21
  def edit
24
22
  self.resource = resource_class.new
25
23
  resource.reset_password_token = params[:reset_password_token]
26
- render_with_scope :edit
27
24
  end
28
25
 
29
26
  # PUT /resource/password
@@ -36,7 +33,7 @@ class Devise::PasswordsController < ApplicationController
36
33
  sign_in(resource_name, resource)
37
34
  respond_with resource, :location => after_sign_in_path_for(resource)
38
35
  else
39
- respond_with_navigational(resource){ render_with_scope :edit }
36
+ respond_with resource
40
37
  end
41
38
  end
42
39