We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c99e5 commit 71e4759Copy full SHA for 71e4759
oauth2.gemspec
@@ -2,14 +2,12 @@
2
# frozen_string_literal: true
3
4
gem_version =
5
- if RUBY_VERSION >= "3.1"
+ if Gem::Version.new(RUBY_VERSION) >= "3.1"
6
# Loading version into an anonymous module allows version.rb to get code coverage from SimpleCov!
7
# See: https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
8
Module.new.tap { |mod| Kernel.load("lib/oauth2/version.rb", mod) }::OAuth2::Version::VERSION
9
else
10
- lib = File.expand_path("lib", __dir__)
11
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
12
- require "oauth2/version"
+ require_relative "lib/oauth2/version"
13
OAuth2::Version::VERSION
14
end
15
0 commit comments