From a8a746fd8e540a1023f3ea9d8238339358b78498 Mon Sep 17 00:00:00 2001 From: autobolt Date: Thu, 21 May 2026 03:52:42 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Better=20gem=5Fversion=20loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oauth2.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2.gemspec b/oauth2.gemspec index e519071b..89fd2d81 100644 --- a/oauth2.gemspec +++ b/oauth2.gemspec @@ -2,7 +2,7 @@ # frozen_string_literal: true gem_version = - if RUBY_VERSION >= "3.1" # rubocop:disable Gemspec/RubyVersionGlobalsUsage + if Gem.ruby_version >= Gem::Version.new("3.1") # Loading Version into an anonymous module allows version.rb to get code coverage from SimpleCov! # See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358 # See: https://github.com/panorama-ed/memo_wise/pull/397