diff --git a/.rubocop.yml b/.rubocop.yml index d2dbe5b..3c04d28 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,6 +7,7 @@ inherit_gem: AllCops: Exclude: - 'spec/**/*' + SuggestExtensions: false Style/MethodCallWithoutArgsParentheses: Enabled: false @@ -17,7 +18,7 @@ Style/StringLiterals: Layout/EmptyLineAfterGuardClause: Enabled: false -Metrics/LineLength: +Layout/LineLength: Max: 120 AllowedPatterns: - '^\s*#' @@ -30,3 +31,6 @@ Style/ClassMethodsDefinitions: Naming/FileName: Enabled: false + +Style/SpecialGlobalVars: + Enabled: false diff --git a/money.gemspec b/money.gemspec index 3c1e69f..a3fbc90 100644 --- a/money.gemspec +++ b/money.gemspec @@ -1,8 +1,6 @@ # -*- encoding: utf-8 -*- # frozen_string_literal: true -require 'English' - require_relative "lib/money/version" Gem::Specification.new do |s| @@ -27,7 +25,7 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 3.0' - s.files = %x(git ls-files).split($INPUT_RECORD_SEPARATOR) + s.files = %x(git ls-files).split($/) s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) } s.require_paths = ["lib"] end