From 4566dc2e70de80b731a63d553afeea32c10b3bbc Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Thu, 4 Feb 2016 11:48:23 -0800 Subject: [PATCH] Update rubocop to version 0.37.0 --- Gemfile.lock | 6 ++++-- config/initializers/secret_token.rb | 2 +- db/migrate/00000000000002_add_devise_to_users.rb | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0d74254..1ece0a8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -168,11 +168,12 @@ GEM http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 3.0) netrc (~> 0.7) - rubocop (0.36.0) - parser (>= 2.3.0.0, < 3.0) + rubocop (0.37.0) + parser (>= 2.3.0.2, < 3.0) powerpack (~> 0.1) rainbow (>= 1.99.1, < 3.0) ruby-progressbar (~> 1.7) + unicode-display_width (~> 0.3) ruby-progressbar (1.7.5) safe_yaml (1.0.4) sass (3.4.21) @@ -212,6 +213,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.7.1) + unicode-display_width (0.3.1) validates_formatting_of (0.9.0) activemodel warden (1.2.6) diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 5964f4d..087e396 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -8,7 +8,7 @@ # You can use `rake secret` to generate a secure secret key. if Rails.env.production? && ENV['SECRET_TOKEN'].blank? - fail 'The SECRET_TOKEN environment variable is not set.\n + raise 'The SECRET_TOKEN environment variable is not set.\n To generate it, run "rake secret", then set it with "heroku config:set SECRET_TOKEN=the_token_you_generated"' end diff --git a/db/migrate/00000000000002_add_devise_to_users.rb b/db/migrate/00000000000002_add_devise_to_users.rb index cea013a..5d83a25 100644 --- a/db/migrate/00000000000002_add_devise_to_users.rb +++ b/db/migrate/00000000000002_add_devise_to_users.rb @@ -43,6 +43,6 @@ class AddDeviseToUsers < ActiveRecord::Migration def down # By default, we don't want to make any assumption about how to roll back a migration when your # model already existed. Please edit below which fields you would like to remove in this migration. - fail ActiveRecord::IrreversibleMigration + raise ActiveRecord::IrreversibleMigration end end