devise 2.2.8 → 3.0.0.rc

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 (61) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +2 -17
  3. data/CHANGELOG.rdoc +4 -20
  4. data/Gemfile +3 -4
  5. data/Gemfile.lock +68 -64
  6. data/README.md +50 -30
  7. data/app/controllers/devise/confirmations_controller.rb +1 -2
  8. data/app/controllers/devise/passwords_controller.rb +1 -1
  9. data/app/controllers/devise/registrations_controller.rb +13 -6
  10. data/app/controllers/devise/sessions_controller.rb +5 -1
  11. data/app/controllers/devise/unlocks_controller.rb +1 -1
  12. data/app/controllers/devise_controller.rb +4 -21
  13. data/devise.gemspec +1 -1
  14. data/gemfiles/{Gemfile.rails-3.1.x → Gemfile.rails-3.2.x} +3 -7
  15. data/gemfiles/{Gemfile.rails-3.1.x.lock → Gemfile.rails-3.2.x.lock} +47 -58
  16. data/lib/devise.rb +8 -10
  17. data/lib/devise/controllers/helpers.rb +11 -0
  18. data/lib/devise/controllers/rememberable.rb +0 -1
  19. data/lib/devise/models/authenticatable.rb +0 -1
  20. data/lib/devise/models/confirmable.rb +5 -0
  21. data/lib/devise/parameter_sanitizer.rb +59 -0
  22. data/lib/devise/rails/warden_compat.rb +2 -9
  23. data/lib/devise/strategies/database_authenticatable.rb +3 -6
  24. data/lib/devise/version.rb +1 -1
  25. data/lib/generators/active_record/devise_generator.rb +1 -4
  26. data/lib/generators/templates/devise.rb +0 -6
  27. data/test/controllers/helpers_test.rb +1 -1
  28. data/test/controllers/internal_helpers_test.rb +13 -3
  29. data/test/controllers/passwords_controller_test.rb +1 -1
  30. data/test/generators/active_record_generator_test.rb +1 -3
  31. data/test/integration/authenticatable_test.rb +3 -17
  32. data/test/integration/http_authenticatable_test.rb +1 -1
  33. data/test/integration/recoverable_test.rb +11 -1
  34. data/test/integration/registerable_test.rb +8 -6
  35. data/test/integration/rememberable_test.rb +13 -15
  36. data/test/models/database_authenticatable_test.rb +0 -13
  37. data/test/models/validatable_test.rb +12 -2
  38. data/test/omniauth/url_helpers_test.rb +4 -1
  39. data/test/orm/active_record.rb +1 -0
  40. data/test/parameter_sanitizer_test.rb +51 -0
  41. data/test/rails_app/Rakefile +0 -4
  42. data/test/rails_app/app/mongoid/shim.rb +2 -3
  43. data/test/rails_app/bin/bundle +3 -0
  44. data/test/rails_app/bin/rails +4 -0
  45. data/test/rails_app/bin/rake +4 -0
  46. data/test/rails_app/config/application.rb +1 -2
  47. data/test/rails_app/config/boot.rb +3 -3
  48. data/test/rails_app/config/environment.rb +2 -2
  49. data/test/rails_app/config/environments/development.rb +23 -7
  50. data/test/rails_app/config/environments/production.rb +68 -17
  51. data/test/rails_app/config/environments/test.rb +18 -15
  52. data/test/rails_app/config/initializers/secret_token.rb +8 -2
  53. data/test/rails_app/config/initializers/session_store.rb +1 -0
  54. data/test/rails_app/config/routes.rb +1 -1
  55. data/test/rails_app/lib/shared_user.rb +0 -1
  56. data/test/routes_test.rb +22 -20
  57. data/test/test_helper.rb +7 -0
  58. data/test/test_models.rb +0 -1
  59. metadata +31 -27
  60. data/lib/devise/hooks/csrf_cleaner.rb +0 -5
  61. data/test/rails_app/script/rails +0 -10
@@ -1,5 +0,0 @@
1
- Warden::Manager.after_authentication do |record, warden, options|
2
- if Devise.clean_up_csrf_token_on_authentication
3
- warden.request.session.try(:delete, :_csrf_token)
4
- end
5
- end
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- ENV_PATH = File.expand_path('../../config/environment', __FILE__)
5
- BOOT_PATH = File.expand_path('../../config/boot', __FILE__)
6
- APP_PATH = File.expand_path('../../config/application', __FILE__)
7
- ROOT_PATH = File.expand_path('../..', __FILE__)
8
-
9
- require BOOT_PATH
10
- require 'rails/commands'