diff --git a/.rubocop.yml b/.rubocop.yml index 6d28114..6bc2f46 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -19,8 +19,7 @@ Layout/HashAlignment: - key Layout/LineLength: - Exclude: - - "*.gemspec" + Max: 120 Layout/SpaceAroundEqualsInParameterDefault: EnforcedStyle: no_space diff --git a/Rakefile b/Rakefile index faf8b2d..c59f842 100644 --- a/Rakefile +++ b/Rakefile @@ -31,12 +31,9 @@ namespace :bump do lowest_minor = RubyVersions.lowest_supported_minor latest = RubyVersions.latest - replace_in_file "tomo-plugin-rollbar.gemspec", - /ruby_version = ">= (.*)"/ => lowest - + replace_in_file "tomo-plugin-rollbar.gemspec", /ruby_version = ">= (.*)"/ => lowest replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => lowest_minor - replace_in_file ".circleci/config.yml", - %r{circleci/ruby:([\d\.]+)} => latest + replace_in_file ".circleci/config.yml", %r{circleci/ruby:([\d\.]+)} => latest travis = YAML.safe_load(open(".travis.yml")) travis["rvm"] = RubyVersions.latest_supported_patches + ["ruby-head"] @@ -87,9 +84,7 @@ module RubyVersions def versions @_versions ||= begin - yaml = URI.open( - "https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml" - ) + yaml = URI.open("https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml") YAML.safe_load(yaml, symbolize_names: true) end end