diff --git a/Rakefile b/Rakefile index 1ece77e55..e96e6932b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + begin require 'bundler/setup' rescue LoadError diff --git a/app/controllers/devise_token_auth/application_controller.rb b/app/controllers/devise_token_auth/application_controller.rb index 510ff2ec0..99efaa169 100644 --- a/app/controllers/devise_token_auth/application_controller.rb +++ b/app/controllers/devise_token_auth/application_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class ApplicationController < DeviseController include DeviseTokenAuth::Concerns::SetUserByToken diff --git a/app/controllers/devise_token_auth/concerns/resource_finder.rb b/app/controllers/devise_token_auth/concerns/resource_finder.rb index 4a18a51dc..9ee1a4386 100644 --- a/app/controllers/devise_token_auth/concerns/resource_finder.rb +++ b/app/controllers/devise_token_auth/concerns/resource_finder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth::Concerns::ResourceFinder extend ActiveSupport::Concern include DeviseTokenAuth::Controllers::Helpers diff --git a/app/controllers/devise_token_auth/concerns/set_user_by_token.rb b/app/controllers/devise_token_auth/concerns/set_user_by_token.rb index 3eefae950..1715461c4 100644 --- a/app/controllers/devise_token_auth/concerns/set_user_by_token.rb +++ b/app/controllers/devise_token_auth/concerns/set_user_by_token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth::Concerns::SetUserByToken extend ActiveSupport::Concern include DeviseTokenAuth::Concerns::ResourceFinder diff --git a/app/controllers/devise_token_auth/confirmations_controller.rb b/app/controllers/devise_token_auth/confirmations_controller.rb index 441cc3448..ed14894a0 100644 --- a/app/controllers/devise_token_auth/confirmations_controller.rb +++ b/app/controllers/devise_token_auth/confirmations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class ConfirmationsController < DeviseTokenAuth::ApplicationController def show diff --git a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb index 52a140d10..c0917716b 100644 --- a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +++ b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class OmniauthCallbacksController < DeviseTokenAuth::ApplicationController diff --git a/app/controllers/devise_token_auth/passwords_controller.rb b/app/controllers/devise_token_auth/passwords_controller.rb index 8de8b2759..92fdd0230 100644 --- a/app/controllers/devise_token_auth/passwords_controller.rb +++ b/app/controllers/devise_token_auth/passwords_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class PasswordsController < DeviseTokenAuth::ApplicationController before_action :set_user_by_token, :only => [:update] diff --git a/app/controllers/devise_token_auth/registrations_controller.rb b/app/controllers/devise_token_auth/registrations_controller.rb index 7b6ea0996..2dc38066e 100644 --- a/app/controllers/devise_token_auth/registrations_controller.rb +++ b/app/controllers/devise_token_auth/registrations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class RegistrationsController < DeviseTokenAuth::ApplicationController before_action :set_user_by_token, only: [:destroy, :update] diff --git a/app/controllers/devise_token_auth/sessions_controller.rb b/app/controllers/devise_token_auth/sessions_controller.rb index 559d456c5..7ffa97aa8 100644 --- a/app/controllers/devise_token_auth/sessions_controller.rb +++ b/app/controllers/devise_token_auth/sessions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # see http://www.emilsoman.com/blog/2013/05/18/building-a-tested/ module DeviseTokenAuth class SessionsController < DeviseTokenAuth::ApplicationController diff --git a/app/controllers/devise_token_auth/token_validations_controller.rb b/app/controllers/devise_token_auth/token_validations_controller.rb index fccc8cafc..4d82fdec4 100644 --- a/app/controllers/devise_token_auth/token_validations_controller.rb +++ b/app/controllers/devise_token_auth/token_validations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class TokenValidationsController < DeviseTokenAuth::ApplicationController skip_before_action :assert_is_devise_resource!, :only => [:validate_token] diff --git a/app/controllers/devise_token_auth/unlocks_controller.rb b/app/controllers/devise_token_auth/unlocks_controller.rb index de1cf9017..13faa023d 100644 --- a/app/controllers/devise_token_auth/unlocks_controller.rb +++ b/app/controllers/devise_token_auth/unlocks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class UnlocksController < DeviseTokenAuth::ApplicationController skip_after_action :update_auth_header, :only => [:create, :show] diff --git a/app/models/devise_token_auth/concerns/user.rb b/app/models/devise_token_auth/concerns/user.rb index bb009ea81..32ccdcbf6 100644 --- a/app/models/devise_token_auth/concerns/user.rb +++ b/app/models/devise_token_auth/concerns/user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bcrypt' module DeviseTokenAuth::Concerns::User diff --git a/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb b/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb index f47053f3a..7d3b5536e 100644 --- a/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb +++ b/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth::Concerns::UserOmniauthCallbacks extend ActiveSupport::Concern diff --git a/app/validators/email_validator.rb b/app/validators/email_validator.rb index de50350b3..441cc598b 100644 --- a/app/validators/email_validator.rb +++ b/app/validators/email_validator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EmailValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) unless value =~ /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i @@ -18,4 +20,4 @@ def email_invalid_message message end -end \ No newline at end of file +end diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index e2c9d047b..d6f92d0f1 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| diff --git a/lib/devise_token_auth.rb b/lib/devise_token_auth.rb index e80ecf04e..28af93b3a 100644 --- a/lib/devise_token_auth.rb +++ b/lib/devise_token_auth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "devise" require "devise_token_auth/engine" require "devise_token_auth/controllers/helpers" diff --git a/lib/devise_token_auth/controllers/helpers.rb b/lib/devise_token_auth/controllers/helpers.rb index 89b8babae..fb070cf52 100644 --- a/lib/devise_token_auth/controllers/helpers.rb +++ b/lib/devise_token_auth/controllers/helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth module Controllers module Helpers diff --git a/lib/devise_token_auth/controllers/url_helpers.rb b/lib/devise_token_auth/controllers/url_helpers.rb index 0aad7c36f..b54c15424 100644 --- a/lib/devise_token_auth/controllers/url_helpers.rb +++ b/lib/devise_token_auth/controllers/url_helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth module Controllers module UrlHelpers diff --git a/lib/devise_token_auth/engine.rb b/lib/devise_token_auth/engine.rb index a47ef307a..d2d44fd79 100644 --- a/lib/devise_token_auth/engine.rb +++ b/lib/devise_token_auth/engine.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'devise_token_auth/rails/routes' module DeviseTokenAuth diff --git a/lib/devise_token_auth/errors.rb b/lib/devise_token_auth/errors.rb index 33762593b..ca9fd5a0c 100644 --- a/lib/devise_token_auth/errors.rb +++ b/lib/devise_token_auth/errors.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth module Errors class NoResourceDefinedError < StandardError ; end diff --git a/lib/devise_token_auth/rails/routes.rb b/lib/devise_token_auth/rails/routes.rb index e3e248a2a..4167d7e7c 100644 --- a/lib/devise_token_auth/rails/routes.rb +++ b/lib/devise_token_auth/rails/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ActionDispatch::Routing class Mapper def mount_devise_token_auth_for(resource, opts) diff --git a/lib/devise_token_auth/url.rb b/lib/devise_token_auth/url.rb index 999e6c7ba..a0532eba3 100644 --- a/lib/devise_token_auth/url.rb +++ b/lib/devise_token_auth/url.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth::Url def self.generate(url, params = {}) diff --git a/lib/devise_token_auth/version.rb b/lib/devise_token_auth/version.rb index 03f22c59d..d769b2e1b 100644 --- a/lib/devise_token_auth/version.rb +++ b/lib/devise_token_auth/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth VERSION = '0.1.43' end diff --git a/lib/generators/devise_token_auth/install_generator.rb b/lib/generators/devise_token_auth/install_generator.rb index 17b592593..f7785f651 100644 --- a/lib/generators/devise_token_auth/install_generator.rb +++ b/lib/generators/devise_token_auth/install_generator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration diff --git a/lib/generators/devise_token_auth/install_views_generator.rb b/lib/generators/devise_token_auth/install_views_generator.rb index 4ba5d97d1..38b7a7580 100644 --- a/lib/generators/devise_token_auth/install_views_generator.rb +++ b/lib/generators/devise_token_auth/install_views_generator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module DeviseTokenAuth class InstallViewsGenerator < Rails::Generators::Base source_root File.expand_path('../../../../app/views/devise/mailer', __FILE__) diff --git a/lib/generators/devise_token_auth/templates/devise_token_auth.rb b/lib/generators/devise_token_auth/templates/devise_token_auth.rb index af7acd737..dec712ecb 100644 --- a/lib/generators/devise_token_auth/templates/devise_token_auth.rb +++ b/lib/generators/devise_token_auth/templates/devise_token_auth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + DeviseTokenAuth.setup do |config| # By default the authorization headers will change after each request. The # client is responsible for keeping track of the changing tokens. Change diff --git a/lib/generators/devise_token_auth/templates/user.rb b/lib/generators/devise_token_auth/templates/user.rb index 3567ec5dc..a6cb47a23 100644 --- a/lib/generators/devise_token_auth/templates/user.rb +++ b/lib/generators/devise_token_auth/templates/user.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class <%= user_class %> < ActiveRecord::Base # Include default devise modules. Others available are: diff --git a/lib/tasks/devise_token_auth_tasks.rake b/lib/tasks/devise_token_auth_tasks.rake index af47beff8..0e8215572 100644 --- a/lib/tasks/devise_token_auth_tasks.rake +++ b/lib/tasks/devise_token_auth_tasks.rake @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # desc "Explaining what the task does" # task :devise_token_auth do # # Task goes here diff --git a/test/controllers/custom/custom_confirmations_controller_test.rb b/test/controllers/custom/custom_confirmations_controller_test.rb index ffe076588..f680ba194 100644 --- a/test/controllers/custom/custom_confirmations_controller_test.rb +++ b/test/controllers/custom/custom_confirmations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class Custom::ConfirmationsControllerTest < ActionController::TestCase diff --git a/test/controllers/custom/custom_omniauth_callbacks_controller_test.rb b/test/controllers/custom/custom_omniauth_callbacks_controller_test.rb index dcd4b0ad6..32077dfa6 100644 --- a/test/controllers/custom/custom_omniauth_callbacks_controller_test.rb +++ b/test/controllers/custom/custom_omniauth_callbacks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class Custom::OmniauthCallbacksControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/custom/custom_passwords_controller_test.rb b/test/controllers/custom/custom_passwords_controller_test.rb index 25755574a..d2f7ea0cd 100644 --- a/test/controllers/custom/custom_passwords_controller_test.rb +++ b/test/controllers/custom/custom_passwords_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class Custom::PasswordsControllerTest < ActionController::TestCase diff --git a/test/controllers/custom/custom_registrations_controller_test.rb b/test/controllers/custom/custom_registrations_controller_test.rb index 16c68b989..d38b695a9 100644 --- a/test/controllers/custom/custom_registrations_controller_test.rb +++ b/test/controllers/custom/custom_registrations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class Custom::RegistrationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/custom/custom_sessions_controller_test.rb b/test/controllers/custom/custom_sessions_controller_test.rb index 11187c8dc..7a313bcb9 100644 --- a/test/controllers/custom/custom_sessions_controller_test.rb +++ b/test/controllers/custom/custom_sessions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class Custom::SessionsControllerTest < ActionController::TestCase diff --git a/test/controllers/custom/custom_token_validations_controller_test.rb b/test/controllers/custom/custom_token_validations_controller_test.rb index 7d6321ce0..0f424ac6f 100644 --- a/test/controllers/custom/custom_token_validations_controller_test.rb +++ b/test/controllers/custom/custom_token_validations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class Custom::TokenValidationsControllerTest < ActionDispatch::IntegrationTest diff --git a/test/controllers/demo_group_controller_test.rb b/test/controllers/demo_group_controller_test.rb index cf334f125..374c3bf60 100644 --- a/test/controllers/demo_group_controller_test.rb +++ b/test/controllers/demo_group_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/demo_mang_controller_test.rb b/test/controllers/demo_mang_controller_test.rb index 85b542fed..7d410196e 100644 --- a/test/controllers/demo_mang_controller_test.rb +++ b/test/controllers/demo_mang_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/demo_user_controller_test.rb b/test/controllers/demo_user_controller_test.rb index 793e7a038..676ca9dbf 100644 --- a/test/controllers/demo_user_controller_test.rb +++ b/test/controllers/demo_user_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/devise_token_auth/confirmations_controller_test.rb b/test/controllers/devise_token_auth/confirmations_controller_test.rb index 36f8841fa..dc719f86c 100644 --- a/test/controllers/devise_token_auth/confirmations_controller_test.rb +++ b/test/controllers/devise_token_auth/confirmations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb b/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb index 40ba9881c..f1c9f7a8d 100644 --- a/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb +++ b/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? # was the user redirected to the right page? diff --git a/test/controllers/devise_token_auth/passwords_controller_test.rb b/test/controllers/devise_token_auth/passwords_controller_test.rb index 490be7da7..ee9565a24 100644 --- a/test/controllers/devise_token_auth/passwords_controller_test.rb +++ b/test/controllers/devise_token_auth/passwords_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/devise_token_auth/registrations_controller_test.rb b/test/controllers/devise_token_auth/registrations_controller_test.rb index ee987ba10..d57a079a3 100644 --- a/test/controllers/devise_token_auth/registrations_controller_test.rb +++ b/test/controllers/devise_token_auth/registrations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/devise_token_auth/sessions_controller_test.rb b/test/controllers/devise_token_auth/sessions_controller_test.rb index 5de4da388..8fe6bfa20 100644 --- a/test/controllers/devise_token_auth/sessions_controller_test.rb +++ b/test/controllers/devise_token_auth/sessions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/devise_token_auth/token_validations_controller_test.rb b/test/controllers/devise_token_auth/token_validations_controller_test.rb index 67dade450..dda39dc92 100644 --- a/test/controllers/devise_token_auth/token_validations_controller_test.rb +++ b/test/controllers/devise_token_auth/token_validations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/devise_token_auth/unlocks_controller_test.rb b/test/controllers/devise_token_auth/unlocks_controller_test.rb index 2333348cf..59969ee88 100644 --- a/test/controllers/devise_token_auth/unlocks_controller_test.rb +++ b/test/controllers/devise_token_auth/unlocks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/overrides/confirmations_controller_test.rb b/test/controllers/overrides/confirmations_controller_test.rb index d22934f3d..78dd6a924 100644 --- a/test/controllers/overrides/confirmations_controller_test.rb +++ b/test/controllers/overrides/confirmations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/overrides/omniauth_callbacks_controller_test.rb b/test/controllers/overrides/omniauth_callbacks_controller_test.rb index 1144ea63b..1ee782559 100644 --- a/test/controllers/overrides/omniauth_callbacks_controller_test.rb +++ b/test/controllers/overrides/omniauth_callbacks_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/overrides/passwords_controller_test.rb b/test/controllers/overrides/passwords_controller_test.rb index b22def810..a373dddfd 100644 --- a/test/controllers/overrides/passwords_controller_test.rb +++ b/test/controllers/overrides/passwords_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/overrides/registrations_controller_test.rb b/test/controllers/overrides/registrations_controller_test.rb index d8e55a8c9..06c585fb3 100644 --- a/test/controllers/overrides/registrations_controller_test.rb +++ b/test/controllers/overrides/registrations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/overrides/sessions_controller_test.rb b/test/controllers/overrides/sessions_controller_test.rb index 5a89cae3f..2fdcfa74b 100644 --- a/test/controllers/overrides/sessions_controller_test.rb +++ b/test/controllers/overrides/sessions_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/controllers/overrides/token_validations_controller_test.rb b/test/controllers/overrides/token_validations_controller_test.rb index 4dd286778..880f868ff 100644 --- a/test/controllers/overrides/token_validations_controller_test.rb +++ b/test/controllers/overrides/token_validations_controller_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' # was the web request successful? diff --git a/test/dummy/Rakefile b/test/dummy/Rakefile index ba6b733dd..da4efd575 100644 --- a/test/dummy/Rakefile +++ b/test/dummy/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. diff --git a/test/dummy/app/controllers/application_controller.rb b/test/dummy/app/controllers/application_controller.rb index bf0f6fb13..db3587745 100644 --- a/test/dummy/app/controllers/application_controller.rb +++ b/test/dummy/app/controllers/application_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ApplicationController < ActionController::Base include DeviseTokenAuth::Concerns::SetUserByToken diff --git a/test/dummy/app/controllers/auth_origin_controller.rb b/test/dummy/app/controllers/auth_origin_controller.rb index be14dc00f..1a40401be 100644 --- a/test/dummy/app/controllers/auth_origin_controller.rb +++ b/test/dummy/app/controllers/auth_origin_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AuthOriginController < ApplicationController def redirected head :ok diff --git a/test/dummy/app/controllers/custom/confirmations_controller.rb b/test/dummy/app/controllers/custom/confirmations_controller.rb index 8e29e8976..31ee06c2c 100644 --- a/test/dummy/app/controllers/custom/confirmations_controller.rb +++ b/test/dummy/app/controllers/custom/confirmations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Custom::ConfirmationsController < DeviseTokenAuth::ConfirmationsController def show diff --git a/test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb b/test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb index 68d0fa748..a2b51e696 100644 --- a/test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb +++ b/test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Custom::OmniauthCallbacksController < DeviseTokenAuth::OmniauthCallbacksController def omniauth_success super do |resource| diff --git a/test/dummy/app/controllers/custom/passwords_controller.rb b/test/dummy/app/controllers/custom/passwords_controller.rb index 3f7b6a828..d3a6b03d3 100644 --- a/test/dummy/app/controllers/custom/passwords_controller.rb +++ b/test/dummy/app/controllers/custom/passwords_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Custom::PasswordsController < DeviseTokenAuth::PasswordsController def create diff --git a/test/dummy/app/controllers/custom/registrations_controller.rb b/test/dummy/app/controllers/custom/registrations_controller.rb index 36d90a29e..9994c0f85 100644 --- a/test/dummy/app/controllers/custom/registrations_controller.rb +++ b/test/dummy/app/controllers/custom/registrations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Custom::RegistrationsController < DeviseTokenAuth::RegistrationsController def create diff --git a/test/dummy/app/controllers/custom/sessions_controller.rb b/test/dummy/app/controllers/custom/sessions_controller.rb index 57809020e..91fb0e195 100644 --- a/test/dummy/app/controllers/custom/sessions_controller.rb +++ b/test/dummy/app/controllers/custom/sessions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Custom::SessionsController < DeviseTokenAuth::SessionsController def create diff --git a/test/dummy/app/controllers/custom/token_validations_controller.rb b/test/dummy/app/controllers/custom/token_validations_controller.rb index 4bfca82bb..d4ee4fda8 100644 --- a/test/dummy/app/controllers/custom/token_validations_controller.rb +++ b/test/dummy/app/controllers/custom/token_validations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Custom::TokenValidationsController < DeviseTokenAuth::TokenValidationsController def validate_token diff --git a/test/dummy/app/controllers/demo_group_controller.rb b/test/dummy/app/controllers/demo_group_controller.rb index e31a54c87..169fedfd2 100644 --- a/test/dummy/app/controllers/demo_group_controller.rb +++ b/test/dummy/app/controllers/demo_group_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DemoGroupController < ApplicationController devise_token_auth_group :member, contains: [:user, :mang] before_action :authenticate_member! diff --git a/test/dummy/app/controllers/demo_mang_controller.rb b/test/dummy/app/controllers/demo_mang_controller.rb index 7d052867a..c7388115c 100644 --- a/test/dummy/app/controllers/demo_mang_controller.rb +++ b/test/dummy/app/controllers/demo_mang_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DemoMangController < ApplicationController before_action :authenticate_mang! diff --git a/test/dummy/app/controllers/demo_user_controller.rb b/test/dummy/app/controllers/demo_user_controller.rb index a17789fbd..6a9488b3c 100644 --- a/test/dummy/app/controllers/demo_user_controller.rb +++ b/test/dummy/app/controllers/demo_user_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class DemoUserController < ApplicationController before_action :authenticate_user! diff --git a/test/dummy/app/controllers/overrides/confirmations_controller.rb b/test/dummy/app/controllers/overrides/confirmations_controller.rb index af6648067..9d51f5e8c 100644 --- a/test/dummy/app/controllers/overrides/confirmations_controller.rb +++ b/test/dummy/app/controllers/overrides/confirmations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Overrides class ConfirmationsController < DeviseTokenAuth::ConfirmationsController def show diff --git a/test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb b/test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb index 5fee2d4fe..3c27d3186 100644 --- a/test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb +++ b/test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Overrides class OmniauthCallbacksController < DeviseTokenAuth::OmniauthCallbacksController DEFAULT_NICKNAME = "stimpy" diff --git a/test/dummy/app/controllers/overrides/passwords_controller.rb b/test/dummy/app/controllers/overrides/passwords_controller.rb index 87471e00c..d568e6459 100644 --- a/test/dummy/app/controllers/overrides/passwords_controller.rb +++ b/test/dummy/app/controllers/overrides/passwords_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Overrides class PasswordsController < DeviseTokenAuth::PasswordsController OVERRIDE_PROOF = "(^^,)" diff --git a/test/dummy/app/controllers/overrides/registrations_controller.rb b/test/dummy/app/controllers/overrides/registrations_controller.rb index 5c6be0ce4..429f12c11 100644 --- a/test/dummy/app/controllers/overrides/registrations_controller.rb +++ b/test/dummy/app/controllers/overrides/registrations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Overrides class RegistrationsController < DeviseTokenAuth::RegistrationsController OVERRIDE_PROOF = "(^^,)" diff --git a/test/dummy/app/controllers/overrides/sessions_controller.rb b/test/dummy/app/controllers/overrides/sessions_controller.rb index faa2df58f..20b6fabda 100644 --- a/test/dummy/app/controllers/overrides/sessions_controller.rb +++ b/test/dummy/app/controllers/overrides/sessions_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Overrides class SessionsController < DeviseTokenAuth::SessionsController OVERRIDE_PROOF = "(^^,)" diff --git a/test/dummy/app/controllers/overrides/token_validations_controller.rb b/test/dummy/app/controllers/overrides/token_validations_controller.rb index 7d65ca00a..bab35f595 100644 --- a/test/dummy/app/controllers/overrides/token_validations_controller.rb +++ b/test/dummy/app/controllers/overrides/token_validations_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Overrides class TokenValidationsController < DeviseTokenAuth::TokenValidationsController OVERRIDE_PROOF = '(^^,)' diff --git a/test/dummy/app/helpers/application_helper.rb b/test/dummy/app/helpers/application_helper.rb index d180b1854..a0764ef32 100644 --- a/test/dummy/app/helpers/application_helper.rb +++ b/test/dummy/app/helpers/application_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module ApplicationHelper COLOR_NAMES = [ "Acid green", diff --git a/test/dummy/app/models/evil_user.rb b/test/dummy/app/models/evil_user.rb index c483f6b04..60a41fe0d 100644 --- a/test/dummy/app/models/evil_user.rb +++ b/test/dummy/app/models/evil_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class EvilUser < ActiveRecord::Base include DeviseTokenAuth::Concerns::User end diff --git a/test/dummy/app/models/lockable_user.rb b/test/dummy/app/models/lockable_user.rb index 79e34a6b2..1c53f5cb2 100644 --- a/test/dummy/app/models/lockable_user.rb +++ b/test/dummy/app/models/lockable_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class LockableUser < ActiveRecord::Base # Include default devise modules. devise :database_authenticatable, :registerable, :lockable diff --git a/test/dummy/app/models/mang.rb b/test/dummy/app/models/mang.rb index 9dd3c18b6..26a2c14ef 100644 --- a/test/dummy/app/models/mang.rb +++ b/test/dummy/app/models/mang.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Mang < ActiveRecord::Base include DeviseTokenAuth::Concerns::User end diff --git a/test/dummy/app/models/nice_user.rb b/test/dummy/app/models/nice_user.rb index a151ae1e2..300056732 100644 --- a/test/dummy/app/models/nice_user.rb +++ b/test/dummy/app/models/nice_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class NiceUser < ActiveRecord::Base # Include default devise modules. devise :database_authenticatable, :registerable, diff --git a/test/dummy/app/models/only_email_user.rb b/test/dummy/app/models/only_email_user.rb index c6fee9c45..fc31239b2 100644 --- a/test/dummy/app/models/only_email_user.rb +++ b/test/dummy/app/models/only_email_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class OnlyEmailUser < ActiveRecord::Base # Include default devise modules. devise :database_authenticatable, :registerable diff --git a/test/dummy/app/models/scoped_user.rb b/test/dummy/app/models/scoped_user.rb index 5dca1286f..44b22649d 100644 --- a/test/dummy/app/models/scoped_user.rb +++ b/test/dummy/app/models/scoped_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class ScopedUser < ActiveRecord::Base # Include default devise modules. devise :database_authenticatable, :registerable, diff --git a/test/dummy/app/models/unconfirmable_user.rb b/test/dummy/app/models/unconfirmable_user.rb index 64fb15e53..392d146e9 100644 --- a/test/dummy/app/models/unconfirmable_user.rb +++ b/test/dummy/app/models/unconfirmable_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UnconfirmableUser < ActiveRecord::Base # Include default devise modules. devise :database_authenticatable, :registerable, diff --git a/test/dummy/app/models/unregisterable_user.rb b/test/dummy/app/models/unregisterable_user.rb index 44f596d40..659beea0f 100644 --- a/test/dummy/app/models/unregisterable_user.rb +++ b/test/dummy/app/models/unregisterable_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class UnregisterableUser < ActiveRecord::Base # Include default devise modules. devise :database_authenticatable, diff --git a/test/dummy/app/models/user.rb b/test/dummy/app/models/user.rb index 17df68f5e..679ba10e9 100644 --- a/test/dummy/app/models/user.rb +++ b/test/dummy/app/models/user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class User < ActiveRecord::Base include DeviseTokenAuth::Concerns::User diff --git a/test/dummy/config/application.rb b/test/dummy/config/application.rb index ff7cd58d8..c212f34d4 100644 --- a/test/dummy/config/application.rb +++ b/test/dummy/config/application.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require File.expand_path('../boot', __FILE__) require 'rack/cors' diff --git a/test/dummy/config/boot.rb b/test/dummy/config/boot.rb index 6266cfc50..18536532a 100644 --- a/test/dummy/config/boot.rb +++ b/test/dummy/config/boot.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__) diff --git a/test/dummy/config/environment.rb b/test/dummy/config/environment.rb index ee8d90dc6..3fa662183 100644 --- a/test/dummy/config/environment.rb +++ b/test/dummy/config/environment.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Load the Rails application. require File.expand_path('../application', __FILE__) diff --git a/test/dummy/config/environments/development.rb b/test/dummy/config/environments/development.rb index 4a908bafb..9a14a1bd5 100644 --- a/test/dummy/config/environments/development.rb +++ b/test/dummy/config/environments/development.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. diff --git a/test/dummy/config/environments/production.rb b/test/dummy/config/environments/production.rb index a6ed58747..fe23e903f 100644 --- a/test/dummy/config/environments/production.rb +++ b/test/dummy/config/environments/production.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. diff --git a/test/dummy/config/environments/test.rb b/test/dummy/config/environments/test.rb index 4fd5b040b..0d52cbc1d 100644 --- a/test/dummy/config/environments/test.rb +++ b/test/dummy/config/environments/test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. diff --git a/test/dummy/config/initializers/assets.rb b/test/dummy/config/initializers/assets.rb index d2f4ec33a..761905a73 100644 --- a/test/dummy/config/initializers/assets.rb +++ b/test/dummy/config/initializers/assets.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. diff --git a/test/dummy/config/initializers/backtrace_silencers.rb b/test/dummy/config/initializers/backtrace_silencers.rb index 59385cdf3..4b63f2893 100644 --- a/test/dummy/config/initializers/backtrace_silencers.rb +++ b/test/dummy/config/initializers/backtrace_silencers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. diff --git a/test/dummy/config/initializers/cookies_serializer.rb b/test/dummy/config/initializers/cookies_serializer.rb index 7a06a89f0..0a23b25ec 100644 --- a/test/dummy/config/initializers/cookies_serializer.rb +++ b/test/dummy/config/initializers/cookies_serializer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. -Rails.application.config.action_dispatch.cookies_serializer = :json \ No newline at end of file +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/test/dummy/config/initializers/devise.rb b/test/dummy/config/initializers/devise.rb index d5c41f257..7663405c8 100644 --- a/test/dummy/config/initializers/devise.rb +++ b/test/dummy/config/initializers/devise.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Devise.setup do |config| config.authentication_keys = [:email, :nickname] end diff --git a/test/dummy/config/initializers/devise_token_auth.rb b/test/dummy/config/initializers/devise_token_auth.rb index a34435e15..8b5521c98 100644 --- a/test/dummy/config/initializers/devise_token_auth.rb +++ b/test/dummy/config/initializers/devise_token_auth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + DeviseTokenAuth.setup do |config| # By default the authorization headers will change after each request. The # client is responsible for keeping track of the changing tokens. Change diff --git a/test/dummy/config/initializers/figaro.rb b/test/dummy/config/initializers/figaro.rb index 6c1e819d3..77000b344 100644 --- a/test/dummy/config/initializers/figaro.rb +++ b/test/dummy/config/initializers/figaro.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + #Figaro.require("GITHUB_KEY", "GITHUB_SECRET", "FACEBOOK_KEY", "FACEBOOK_SECRET", "GOOGLE_KEY", "GOOGLE_SECRET") diff --git a/test/dummy/config/initializers/filter_parameter_logging.rb b/test/dummy/config/initializers/filter_parameter_logging.rb index 4a994e1e7..7a4f47b4c 100644 --- a/test/dummy/config/initializers/filter_parameter_logging.rb +++ b/test/dummy/config/initializers/filter_parameter_logging.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. diff --git a/test/dummy/config/initializers/inflections.rb b/test/dummy/config/initializers/inflections.rb index ac033bf9d..dc8474221 100644 --- a/test/dummy/config/initializers/inflections.rb +++ b/test/dummy/config/initializers/inflections.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/test/dummy/config/initializers/mime_types.rb b/test/dummy/config/initializers/mime_types.rb index dc1899682..be6fedc53 100644 --- a/test/dummy/config/initializers/mime_types.rb +++ b/test/dummy/config/initializers/mime_types.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/test/dummy/config/initializers/omniauth.rb b/test/dummy/config/initializers/omniauth.rb index 93376412f..0a3d1dd5c 100644 --- a/test/dummy/config/initializers/omniauth.rb +++ b/test/dummy/config/initializers/omniauth.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.config.middleware.use OmniAuth::Builder do |b| provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET'], scope: 'email,profile' provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'] diff --git a/test/dummy/config/initializers/session_store.rb b/test/dummy/config/initializers/session_store.rb index e766b67b1..969d977f5 100644 --- a/test/dummy/config/initializers/session_store.rb +++ b/test/dummy/config/initializers/session_store.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. Rails.application.config.session_store :cookie_store, key: '_dummy_session' diff --git a/test/dummy/config/initializers/wrap_parameters.rb b/test/dummy/config/initializers/wrap_parameters.rb index 33725e95f..246168a42 100644 --- a/test/dummy/config/initializers/wrap_parameters.rb +++ b/test/dummy/config/initializers/wrap_parameters.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which diff --git a/test/dummy/config/routes.rb b/test/dummy/config/routes.rb index c0b6472ea..5f4f48d45 100644 --- a/test/dummy/config/routes.rb +++ b/test/dummy/config/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + Rails.application.routes.draw do # when using multiple models, controllers will default to the first available # devise mapping. routes for subsequent devise mappings will need to defined diff --git a/test/dummy/config/spring.rb b/test/dummy/config/spring.rb index 0a67539ff..c337c61d2 100644 --- a/test/dummy/config/spring.rb +++ b/test/dummy/config/spring.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + Spring.application_root = './test/dummy' diff --git a/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb b/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb index 87b65272c..7e3486e7b 100644 --- a/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb +++ b/test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb b/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb index d820b8bfa..1952a61e2 100644 --- a/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb +++ b/test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateMangs < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20140829044006_add_operating_thetan_to_user.rb b/test/dummy/db/migrate/20140829044006_add_operating_thetan_to_user.rb index df644d592..163ba4103 100644 --- a/test/dummy/db/migrate/20140829044006_add_operating_thetan_to_user.rb +++ b/test/dummy/db/migrate/20140829044006_add_operating_thetan_to_user.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddOperatingThetanToUser < ActiveRecord::Migration[4.2] def change add_column :users, :operating_thetan, :integer diff --git a/test/dummy/db/migrate/20140916224624_add_favorite_color_to_mangs.rb b/test/dummy/db/migrate/20140916224624_add_favorite_color_to_mangs.rb index eb97800a1..16365929d 100644 --- a/test/dummy/db/migrate/20140916224624_add_favorite_color_to_mangs.rb +++ b/test/dummy/db/migrate/20140916224624_add_favorite_color_to_mangs.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class AddFavoriteColorToMangs < ActiveRecord::Migration[4.2] def change add_column :mangs, :favorite_color, :string diff --git a/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb b/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb index 216eccdad..e90f47249 100644 --- a/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb +++ b/test/dummy/db/migrate/20140928231203_devise_token_auth_create_evil_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateEvilUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb b/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb index 2518ebb33..0d6d88649 100644 --- a/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb +++ b/test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateOnlyEmailUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb b/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb index 19c7c46b2..c9e0ec4de 100644 --- a/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb +++ b/test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateUnregisterableUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20150409095712_devise_token_auth_create_nice_users.rb b/test/dummy/db/migrate/20150409095712_devise_token_auth_create_nice_users.rb index 81c3b47c4..d4e816245 100644 --- a/test/dummy/db/migrate/20150409095712_devise_token_auth_create_nice_users.rb +++ b/test/dummy/db/migrate/20150409095712_devise_token_auth_create_nice_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateNiceUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb b/test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb index 34ca72b89..bdc06b995 100644 --- a/test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb +++ b/test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateUnconfirmableUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb b/test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb index 31c7f750d..8aadb08f9 100644 --- a/test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb +++ b/test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateScopedUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb b/test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb index 990844135..5309aae72 100644 --- a/test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb +++ b/test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + include MigrationDatabaseHelper class DeviseTokenAuthCreateLockableUsers < ActiveRecord::Migration[4.2] diff --git a/test/dummy/lib/migration_database_helper.rb b/test/dummy/lib/migration_database_helper.rb index fba916c25..7af096f67 100644 --- a/test/dummy/lib/migration_database_helper.rb +++ b/test/dummy/lib/migration_database_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # polyfill Rails >= 5 versioned migrations unless ActiveRecord::Migration.respond_to?(:[]) @@ -38,4 +40,4 @@ def database_name def database_version ActiveRecord::Base.connection.select_value('SELECT VERSION()') end -end \ No newline at end of file +end diff --git a/test/integration/navigation_test.rb b/test/integration/navigation_test.rb index 97a94c9bb..51aed4b7b 100644 --- a/test/integration/navigation_test.rb +++ b/test/integration/navigation_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class NavigationTest < ActionDispatch::IntegrationTest diff --git a/test/lib/devise_token_auth/url_test.rb b/test/lib/devise_token_auth/url_test.rb index 6f75a4526..262dd9b3d 100644 --- a/test/lib/devise_token_auth/url_test.rb +++ b/test/lib/devise_token_auth/url_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class DeviseTokenAuth::UrlTest < ActiveSupport::TestCase diff --git a/test/lib/generators/devise_token_auth/install_generator_test.rb b/test/lib/generators/devise_token_auth/install_generator_test.rb index ac08adc55..d540767fd 100644 --- a/test/lib/generators/devise_token_auth/install_generator_test.rb +++ b/test/lib/generators/devise_token_auth/install_generator_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' require 'fileutils' require 'generators/devise_token_auth/install_generator' diff --git a/test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb b/test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb index af734f38e..ac1cd8e3b 100644 --- a/test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb +++ b/test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' require 'fileutils' require 'generators/devise_token_auth/install_generator' diff --git a/test/lib/generators/devise_token_auth/install_views_generator_test.rb b/test/lib/generators/devise_token_auth/install_views_generator_test.rb index 33e2c7102..564b2ca0b 100644 --- a/test/lib/generators/devise_token_auth/install_views_generator_test.rb +++ b/test/lib/generators/devise_token_auth/install_views_generator_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' require 'fileutils' require 'generators/devise_token_auth/install_views_generator' diff --git a/test/models/only_email_user_test.rb b/test/models/only_email_user_test.rb index 9575c9ec6..bae9da3d2 100644 --- a/test/models/only_email_user_test.rb +++ b/test/models/only_email_user_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class OnlyEmailUserTest < ActiveSupport::TestCase diff --git a/test/models/user_test.rb b/test/models/user_test.rb index e6269bdb8..6309ae6e3 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'test_helper' class UserTest < ActiveSupport::TestCase diff --git a/test/test_helper.rb b/test/test_helper.rb index 479224a07..9b9bc8e93 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'simplecov' SimpleCov.start 'rails'