Skip to content

Commit 71e4759

Browse files
committed
👷 try to fix dependabot
1 parent a1c99e5 commit 71e4759

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

oauth2.gemspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
# frozen_string_literal: true
33

44
gem_version =
5-
if RUBY_VERSION >= "3.1"
5+
if Gem::Version.new(RUBY_VERSION) >= "3.1"
66
# Loading version into an anonymous module allows version.rb to get code coverage from SimpleCov!
77
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
88
Module.new.tap { |mod| Kernel.load("lib/oauth2/version.rb", mod) }::OAuth2::Version::VERSION
99
else
10-
lib = File.expand_path("lib", __dir__)
11-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12-
require "oauth2/version"
10+
require_relative "lib/oauth2/version"
1311
OAuth2::Version::VERSION
1412
end
1513

0 commit comments

Comments
 (0)