From 769bc5ce902f1eb4b57dabb3078e2d3213f88719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Thu, 8 Aug 2013 15:40:46 +0200 Subject: [PATCH 1/2] update devise to 2.2.4 --- Gemfile | 2 +- Gemfile.lock | 4 ++-- config/initializers/devise.rb | 8 ++++---- config/locales/devise/devise.en.yml | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index cfd126c0f..7f7da2f61 100644 --- a/Gemfile +++ b/Gemfile @@ -13,7 +13,7 @@ gem 'json', '1.8.0' # Authentication -gem 'devise', '2.1.3' +gem 'devise', '2.2.4' # Background processing diff --git a/Gemfile.lock b/Gemfile.lock index e9ebc6c5a..5ad5fea5a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -91,7 +91,7 @@ GEM nokogiri (>= 1.5.0) rails (~> 3.0) database_cleaner (1.1.0) - devise (2.1.3) + devise (2.2.4) bcrypt-ruby (~> 3.0) orm_adapter (~> 0.1) railties (~> 3.1) @@ -440,7 +440,7 @@ DEPENDENCIES configurate (= 0.0.8) cucumber-rails (= 1.3.1) database_cleaner (= 1.1.0) - devise (= 2.1.3) + devise (= 2.2.4) factory_girl_rails (= 4.2.1) faraday (= 0.8.8) faraday_middleware (= 0.9.0) diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 0f238c1d1..03dbf8e99 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -58,7 +58,7 @@ Devise.setup do |config| # Setup a pepper to generate the encrypted password. config.pepper = "065eb8798b181ff0ea2c5c16aee0ff8b70e04e2ee6bd6e08b49da46924223e39127d5335e466207d42bf2a045c12be5f90e92012a4f05f7fc6d9f3c875f4c95b" - + config.reset_password_within = 2.days # ==> Configuration for :invitable @@ -78,10 +78,10 @@ Devise.setup do |config| # ==> Configuration for :rememberable # The time the user will be remembered without asking for credentials again. config.remember_for = 2.weeks - + # ==> Configuration for :validatable # Range for password length - # config.password_length = 6..20 + # config.password_length = 8..20 # Regex to use to validate the email address # config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i @@ -159,7 +159,7 @@ Devise.setup do |config| # end # manager.default_strategies(:scope => :user).unshift :twitter_oauth # end - + # Sign out via a DELETE request config.sign_out_via = :delete end diff --git a/config/locales/devise/devise.en.yml b/config/locales/devise/devise.en.yml index 34a93d231..a5ac3be04 100644 --- a/config/locales/devise/devise.en.yml +++ b/config/locales/devise/devise.en.yml @@ -10,6 +10,7 @@ en: unauthenticated: 'You need to sign in or sign up before continuing.' unconfirmed: 'You have to confirm your account before continuing.' locked: 'Your account is locked.' + not_found_in_database: 'Invalid email or password.' invalid: 'Invalid username or password.' invalid_token: 'Invalid authentication token.' timeout: 'Your session expired, please sign in again to continue.' @@ -40,7 +41,7 @@ en: send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.' confirmed: 'Your account was successfully confirmed. You are now signed in.' new: - resend_confirmation: "Resend confirmation instructions" + resend_confirmation: "Resend confirmation instructions" registrations: signed_up: 'You have signed up successfully. If enabled, a confirmation was sent to your e-mail.' updated: 'You updated your account successfully.' From 9b92d6a10a0653ce9413eaa49cea116098eec6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Thu, 8 Aug 2013 16:34:56 +0200 Subject: [PATCH 2/2] bump devise to 3.0.2 --- Gemfile | 2 +- Gemfile.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 7f7da2f61..4f8b46de3 100644 --- a/Gemfile +++ b/Gemfile @@ -13,7 +13,7 @@ gem 'json', '1.8.0' # Authentication -gem 'devise', '2.2.4' +gem 'devise', '3.0.2' # Background processing diff --git a/Gemfile.lock b/Gemfile.lock index 5ad5fea5a..9ce8f3b21 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -91,11 +91,11 @@ GEM nokogiri (>= 1.5.0) rails (~> 3.0) database_cleaner (1.1.0) - devise (2.2.4) + devise (3.0.2) bcrypt-ruby (~> 3.0) orm_adapter (~> 0.1) - railties (~> 3.1) - warden (~> 1.2.1) + railties (>= 3.2.6, < 5) + warden (~> 1.2.3) diff-lcs (1.2.4) erubis (2.7.0) ethon (0.5.12) @@ -440,7 +440,7 @@ DEPENDENCIES configurate (= 0.0.8) cucumber-rails (= 1.3.1) database_cleaner (= 1.1.0) - devise (= 2.2.4) + devise (= 3.0.2) factory_girl_rails (= 4.2.1) faraday (= 0.8.8) faraday_middleware (= 0.9.0)