From 6e1ffa4841ea19a078a057765d1118efc81bc676 Mon Sep 17 00:00:00 2001 From: Duncan Brown Date: Thu, 23 Jun 2022 22:40:26 +0100 Subject: [PATCH] We officially support Ruby >= 2.7.5 Adding .ruby-version made rubocop want to enforce 3.1 syntax, which isn't what we said we'd support in the gemspec (we said 2.3 (!)) - bump that to 2.7, which is the earliest minor version any of our live services use --- .rubocop.yml | 1 + dfe-analytics.gemspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index db7baac6..7db440ce 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -42,6 +42,7 @@ Style/EachWithObject: Enabled: false AllCops: + TargetRubyVersion: 2.7 NewCops: enable Exclude: - 'spec/dummy/db/schema.rb' diff --git a/dfe-analytics.gemspec b/dfe-analytics.gemspec index 3b5676e9..173db871 100644 --- a/dfe-analytics.gemspec +++ b/dfe-analytics.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.summary = 'Event pump for DfE Rails applications' spec.homepage = 'https://teacher-services-tech-docs.london.cloudapps.digital/#teacher-services-technical-documentation' spec.license = 'MIT' - spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') + spec.required_ruby_version = Gem::Requirement.new('>= 2.7.5') spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"