From d0babe32af60892d36832b0dfbe170b690d708f8 Mon Sep 17 00:00:00 2001 From: Nick Campbell Date: Fri, 24 May 2019 08:57:37 +0100 Subject: [PATCH] Upgrade min Ruby patch version & Rubocop version --- .rubocop.yml | 3 +++ companies-house-rest.gemspec | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index dccc2a7..c0d282e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,9 @@ inherit_gem: gc_ruboconfig: rubocop.yml +AllCops: + TargetRubyVersion: 2.5 + Metrics/MethodLength: Max: 15 diff --git a/companies-house-rest.gemspec b/companies-house-rest.gemspec index 95a1f8b..535d9a4 100644 --- a/companies-house-rest.gemspec +++ b/companies-house-rest.gemspec @@ -20,12 +20,12 @@ Gem::Specification.new do |spec| spec.bindir = "exe" spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.required_ruby_version = ">= 2.5.1" + spec.required_ruby_version = ">= 2.5.5" spec.add_runtime_dependency "activesupport", ">= 4.2", "< 6" spec.add_runtime_dependency "virtus", "~> 1.0", ">= 1.0.5" - spec.add_development_dependency "gc_ruboconfig", "~> 2.3" + spec.add_development_dependency "gc_ruboconfig", "~> 2.4" spec.add_development_dependency "rake", "~> 12.0" spec.add_development_dependency "rspec", "~> 3.5" spec.add_development_dependency "rspec_junit_formatter", "~> 0.4.1"