summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2025-11-16 12:28:31 -0800
committergit <svn-admin@ruby-lang.org>2025-11-21 04:03:43 +0000
commit8b116ee8b982f838d8464b7ee310f37bc3282efb (patch)
tree4229c7e0f90c60ac34c3648f984e06d053148b1e
parent9aa09b4620fd633ef2ffaff4bdae5e344b173ee6 (diff)
[ruby/rubygems] create a gem version instead of comparing with a string
https://github.com/ruby/rubygems/commit/c1e3d4d63b
-rw-r--r--lib/rubygems.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index c398c985f5..8530a2a893 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -287,7 +287,7 @@ module Gem
# RubyGems now uses this new `Gem.activate_and_load_bin_path` helper in
# binstubs, which is of course not overridden in Bundler since it didn't
# exist at the time. So, include the override here to workaround that.
- load ENV["BUNDLE_BIN_PATH"] if ENV["BUNDLE_BIN_PATH"] && spec.version <= "2.5.22"
+ load ENV["BUNDLE_BIN_PATH"] if ENV["BUNDLE_BIN_PATH"] && spec.version <= Gem::Version.create("2.5.22")
# Make sure there's no version of Bundler in `$LOAD_PATH` that's different
# from the version we just activated. If that was the case (it happens
@@ -666,7 +666,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
# warnings in platform constants
def self.load_bundler_extensions(version)
- return unless version <= "2.6.9"
+ return unless version <= Gem::Version.create("2.6.9")
previous_platforms = {}