From 5aff2e7bac620aecbba587cc7d87508527f4835f Mon Sep 17 00:00:00 2001 From: autobolt Date: Thu, 21 May 2026 03:52:47 -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 --- oauth.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth.gemspec b/oauth.gemspec index c9ef680a..da4eafd9 100644 --- a/oauth.gemspec +++ b/oauth.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