rubocop -a --only Style/StringLiterals

This commit is contained in:
Piotr Solnica 2020-12-12 07:43:25 +01:00
parent 141123d8ab
commit 507f1442b7
No known key found for this signature in database
GPG Key ID: 66BF2FDA7BA0F29C
5 changed files with 22 additions and 22 deletions

16
Gemfile
View File

@ -1,19 +1,19 @@
# frozen_string_literal: true
source 'https://rubygems.org'
source "https://rubygems.org"
eval_gemfile 'Gemfile.devtools'
eval_gemfile "Gemfile.devtools"
gemspec
group :test do
gem 'activesupport'
gem 'inflecto', '~> 0.0', '>= 0.0.2'
gem 'dry-types', '~> 1.0'
gem 'dry-inflector'
gem "activesupport"
gem "inflecto", "~> 0.0", ">= 0.0.2"
gem "dry-types", "~> 1.0"
gem "dry-inflector"
end
group :tools do
gem 'pry-byebug', platform: :mri
gem 'pry', platform: :jruby
gem "pry-byebug", platform: :mri
gem "pry", platform: :jruby
end

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)

View File

@ -1,3 +1,3 @@
# frozen_string_literal: true
require 'dry/core'
require "dry/core"

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require 'dry/core/version'
require "dry/core/version"
# :nodoc:
module Dry

View File

@ -1,17 +1,17 @@
# frozen_string_literal: true
require_relative 'support/coverage'
require_relative "support/coverage"
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'rspec/version'
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "rspec/version"
begin
require 'pry'
require 'pry-byebug'
require "pry"
require "pry-byebug"
rescue LoadError
end
require 'dry/core'
require "dry/core"
module Test
def self.remove_constants
@ -21,8 +21,8 @@ end
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
if RSpec::Version::STRING >= '4.0.0'
raise 'This condition block can be safely removed'
if RSpec::Version::STRING >= "4.0.0"
raise "This condition block can be safely removed"
else
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
@ -48,14 +48,14 @@ RSpec.configure do |config|
# Allows RSpec to persist some state between runs in order to support
# the `--only-failures` and `--next-failure` CLI options.
config.example_status_persistence_file_path = 'spec/examples.txt'
config.example_status_persistence_file_path = "spec/examples.txt"
config.disable_monkey_patching!
config.warnings = true
# Use the documentation formatter for detailed output
config.default_formatter = 'doc' if config.files_to_run.one?
config.default_formatter = "doc" if config.files_to_run.one?
config.order = :random