From 6e624486f46ad35afc43ef1118f006b8c35705dc Mon Sep 17 00:00:00 2001 From: Dmitry Rybakov <160598371+comandeo-mongo@users.noreply.github.com> Date: Fri, 22 Nov 2024 08:56:50 +0100 Subject: [PATCH] RUBY-3554 Update required_ruby_version (#2909) --- gemfiles/standard.rb | 12 ++++-------- mongo.gemspec | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/gemfiles/standard.rb b/gemfiles/standard.rb index 6a11bc3404..0b01687a84 100644 --- a/gemfiles/standard.rb +++ b/gemfiles/standard.rb @@ -28,14 +28,10 @@ def standard_dependencies gem 'yajl-ruby', platforms: :mri, require: false gem 'celluloid', platforms: :mri, require: false - # for static analysis -- ignore ruby < 2.6 because of rubocop - # version incompatibilities - if RUBY_VERSION > '2.5.99' - gem 'rubocop', '~> 1.45.1' - gem 'rubocop-performance', '~> 1.16.0' - gem 'rubocop-rake', '~> 0.6.0' - gem 'rubocop-rspec', '~> 2.18.1' - end + gem 'rubocop', '~> 1.45.1' + gem 'rubocop-performance', '~> 1.16.0' + gem 'rubocop-rake', '~> 0.6.0' + gem 'rubocop-rspec', '~> 2.18.1' platform :mri do # Debugger for VSCode. diff --git a/mongo.gemspec b/mongo.gemspec index a4bec6e854..c7921d3946 100644 --- a/mongo.gemspec +++ b/mongo.gemspec @@ -36,7 +36,7 @@ Gem::Specification.new do |s| s.require_paths = ['lib'] s.bindir = 'bin' - s.required_ruby_version = ">= 2.5" + s.required_ruby_version = ">= 2.7" s.add_dependency 'base64' s.add_dependency 'bson', '>=4.14.1', '<6.0.0'