Skip to content

Commit

Permalink
Fix Style/StringLiterals
Browse files Browse the repository at this point in the history
  • Loading branch information
dks17 committed Apr 27, 2018
1 parent 5c96cb8 commit 61c582b
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 97 deletions.
14 changes: 1 addition & 13 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
52 changes: 26 additions & 26 deletions gemfiles/rails_4_2.gemfile
Original file line number Diff line number Diff line change
@@ -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: '../'
48 changes: 24 additions & 24 deletions gemfiles/rails_5_0.gemfile
Original file line number Diff line number Diff line change
@@ -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: '../'
48 changes: 24 additions & 24 deletions gemfiles/rails_5_1.gemfile
Original file line number Diff line number Diff line change
@@ -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: '../'
12 changes: 6 additions & 6 deletions lib/devise_token_auth.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 61c582b

Please sign in to comment.