From 61c582b0454e497c313766b2aa091fbcd9dac35b Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 27 Apr 2018 22:57:04 +0300 Subject: [PATCH] Fix Style/StringLiterals --- .rubocop_todo.yml | 14 +--------- Appraisals | 8 +++--- gemfiles/rails_4_2.gemfile | 52 +++++++++++++++++++------------------- gemfiles/rails_5_0.gemfile | 48 +++++++++++++++++------------------ gemfiles/rails_5_1.gemfile | 48 +++++++++++++++++------------------ lib/devise_token_auth.rb | 12 ++++----- 6 files changed, 85 insertions(+), 97 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0b2de271b..fddcaa8f6 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 100` -# on 2018-04-27 22:49:03 +0300 using RuboCop version 0.55.0. +# on 2018-04-27 22:54:41 +0300 using RuboCop version 0.55.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -503,18 +503,6 @@ Style/SpecialGlobalVars: Exclude: - 'devise_token_auth.gemspec' -# Offense count: 106 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. -# SupportedStyles: single_quotes, double_quotes -Style/StringLiterals: - Exclude: - - 'Appraisals' - - 'gemfiles/rails_4_2.gemfile' - - 'gemfiles/rails_5_0.gemfile' - - 'gemfiles/rails_5_1.gemfile' - - 'lib/devise_token_auth.rb' - # Offense count: 7 # Cop supports --auto-correct. Style/SymbolLiteral: diff --git a/Appraisals b/Appraisals index 4558c869b..e293ca2e4 100644 --- a/Appraisals +++ b/Appraisals @@ -2,9 +2,9 @@ { name: '4-2', version: '4.2.10' } ].each do |rails| appraise "rails-#{rails[:name]}" do - gem "mysql2", "~> 0.4.10" - gem "pg", "~> 0.21" - gem "rails", "~> #{rails[:version]}" + gem 'mysql2', '~> 0.4.10' + gem 'pg', '~> 0.21' + gem 'rails', "~> #{rails[:version]}" end end @@ -13,6 +13,6 @@ end { name: '5-1', version: '5.1.6' }, ].each do |rails| appraise "rails-#{rails[:name]}" do - gem "rails", "~> #{rails[:version]}" + gem 'rails', "~> #{rails[:version]}" end end diff --git a/gemfiles/rails_4_2.gemfile b/gemfiles/rails_4_2.gemfile index 1bc7c37ed..c09e9c9cf 100644 --- a/gemfiles/rails_4_2.gemfile +++ b/gemfiles/rails_4_2.gemfile @@ -1,39 +1,39 @@ # This file was generated by Appraisal -source "https://rubygems.org" +source 'https://rubygems.org' -gem "mysql2", "~> 0.4.10" -gem "pg", "~> 0.21" -gem "rails", "~> 4.2.10" +gem 'mysql2', '~> 0.4.10' +gem 'pg', '~> 0.21' +gem 'rails', '~> 4.2.10' group :development, :test do - gem "attr_encrypted" - gem "figaro", git: "https://github.com/laserlemon/figaro" - gem "omniauth-facebook", git: "https://github.com/mkdynamic/omniauth-facebook" - gem "omniauth-github", git: "https://github.com/intridea/omniauth-github" - gem "omniauth-google-oauth2", git: "https://github.com/zquestz/omniauth-google-oauth2" - gem "rack-cors", require: "rack/cors" - gem "thor" - gem "faker" - gem "fuzz_ball" - gem "guard" - gem "guard-minitest" - gem "minitest" - gem "minitest-focus" - gem "minitest-rails" - gem "minitest-reporters" - gem "mocha" - gem "pry" - gem "pry-remote" + gem 'attr_encrypted' + gem 'figaro', git: 'https://github.com/laserlemon/figaro' + gem 'omniauth-facebook', git: 'https://github.com/mkdynamic/omniauth-facebook' + gem 'omniauth-github', git: 'https://github.com/intridea/omniauth-github' + gem 'omniauth-google-oauth2', git: 'https://github.com/zquestz/omniauth-google-oauth2' + gem 'rack-cors', require: 'rack/cors' + gem 'thor' + gem 'faker' + gem 'fuzz_ball' + gem 'guard' + gem 'guard-minitest' + gem 'minitest' + gem 'minitest-focus' + gem 'minitest-rails' + gem 'minitest-reporters' + gem 'mocha' + gem 'pry' + gem 'pry-remote' end group :test do - gem "codeclimate-test-reporter", require: nil - gem "rails-controller-testing" + gem 'codeclimate-test-reporter', require: nil + gem 'rails-controller-testing' end group :development do - gem "github_changelog_generator" + gem 'github_changelog_generator' end -gemspec path: "../" +gemspec path: '../' diff --git a/gemfiles/rails_5_0.gemfile b/gemfiles/rails_5_0.gemfile index 8ff29fc8a..5ec13451b 100644 --- a/gemfiles/rails_5_0.gemfile +++ b/gemfiles/rails_5_0.gemfile @@ -1,37 +1,37 @@ # This file was generated by Appraisal -source "https://rubygems.org" +source 'https://rubygems.org' -gem "rails", "~> 5.0.7" +gem 'rails', '~> 5.0.7' group :development, :test do - gem "attr_encrypted" - gem "figaro", git: "https://github.com/laserlemon/figaro" - gem "omniauth-facebook", git: "https://github.com/mkdynamic/omniauth-facebook" - gem "omniauth-github", git: "https://github.com/intridea/omniauth-github" - gem "omniauth-google-oauth2", git: "https://github.com/zquestz/omniauth-google-oauth2" - gem "rack-cors", require: "rack/cors" - gem "thor" - gem "faker" - gem "fuzz_ball" - gem "guard" - gem "guard-minitest" - gem "minitest" - gem "minitest-focus" - gem "minitest-rails" - gem "minitest-reporters" - gem "mocha" - gem "pry" - gem "pry-remote" + gem 'attr_encrypted' + gem 'figaro', git: 'https://github.com/laserlemon/figaro' + gem 'omniauth-facebook', git: 'https://github.com/mkdynamic/omniauth-facebook' + gem 'omniauth-github', git: 'https://github.com/intridea/omniauth-github' + gem 'omniauth-google-oauth2', git: 'https://github.com/zquestz/omniauth-google-oauth2' + gem 'rack-cors', require: 'rack/cors' + gem 'thor' + gem 'faker' + gem 'fuzz_ball' + gem 'guard' + gem 'guard-minitest' + gem 'minitest' + gem 'minitest-focus' + gem 'minitest-rails' + gem 'minitest-reporters' + gem 'mocha' + gem 'pry' + gem 'pry-remote' end group :test do - gem "codeclimate-test-reporter", require: nil - gem "rails-controller-testing" + gem 'codeclimate-test-reporter', require: nil + gem 'rails-controller-testing' end group :development do - gem "github_changelog_generator" + gem 'github_changelog_generator' end -gemspec path: "../" +gemspec path: '../' diff --git a/gemfiles/rails_5_1.gemfile b/gemfiles/rails_5_1.gemfile index 8e4189419..d6056a442 100644 --- a/gemfiles/rails_5_1.gemfile +++ b/gemfiles/rails_5_1.gemfile @@ -1,37 +1,37 @@ # This file was generated by Appraisal -source "https://rubygems.org" +source 'https://rubygems.org' -gem "rails", "~> 5.1.6" +gem 'rails', '~> 5.1.6' group :development, :test do - gem "attr_encrypted" - gem "figaro", git: "https://github.com/laserlemon/figaro" - gem "omniauth-facebook", git: "https://github.com/mkdynamic/omniauth-facebook" - gem "omniauth-github", git: "https://github.com/intridea/omniauth-github" - gem "omniauth-google-oauth2", git: "https://github.com/zquestz/omniauth-google-oauth2" - gem "rack-cors", require: "rack/cors" - gem "thor" - gem "faker" - gem "fuzz_ball" - gem "guard" - gem "guard-minitest" - gem "minitest" - gem "minitest-focus" - gem "minitest-rails" - gem "minitest-reporters" - gem "mocha" - gem "pry" - gem "pry-remote" + gem 'attr_encrypted' + gem 'figaro', git: 'https://github.com/laserlemon/figaro' + gem 'omniauth-facebook', git: 'https://github.com/mkdynamic/omniauth-facebook' + gem 'omniauth-github', git: 'https://github.com/intridea/omniauth-github' + gem 'omniauth-google-oauth2', git: 'https://github.com/zquestz/omniauth-google-oauth2' + gem 'rack-cors', require: 'rack/cors' + gem 'thor' + gem 'faker' + gem 'fuzz_ball' + gem 'guard' + gem 'guard-minitest' + gem 'minitest' + gem 'minitest-focus' + gem 'minitest-rails' + gem 'minitest-reporters' + gem 'mocha' + gem 'pry' + gem 'pry-remote' end group :test do - gem "codeclimate-test-reporter", require: nil - gem "rails-controller-testing" + gem 'codeclimate-test-reporter', require: nil + gem 'rails-controller-testing' end group :development do - gem "github_changelog_generator" + gem 'github_changelog_generator' end -gemspec path: "../" +gemspec path: '../' diff --git a/lib/devise_token_auth.rb b/lib/devise_token_auth.rb index e80ecf04e..38c1390e3 100644 --- a/lib/devise_token_auth.rb +++ b/lib/devise_token_auth.rb @@ -1,9 +1,9 @@ -require "devise" -require "devise_token_auth/engine" -require "devise_token_auth/controllers/helpers" -require "devise_token_auth/controllers/url_helpers" -require "devise_token_auth/url" -require "devise_token_auth/errors" +require 'devise' +require 'devise_token_auth/engine' +require 'devise_token_auth/controllers/helpers' +require 'devise_token_auth/controllers/url_helpers' +require 'devise_token_auth/url' +require 'devise_token_auth/errors' module DeviseTokenAuth end