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