[ruby/rubygems] Compare like values in find_bundler

The input to this method is not guaranteed to be a string, it could be a `Gem::Version` this normalizes the comparison.

https://github.com/ruby/rubygems/commit/1f43c7a988
This commit is contained in:
lolwut 2025-12-25 21:05:50 -06:00 committed by git
parent 1b476606f2
commit 3143543f95

View File

@ -432,7 +432,7 @@ module Bundler
end
def find_bundler(version)
find_name("bundler").find {|s| s.version.to_s == version }
find_name("bundler").find {|s| s.version.to_s == version.to_s }
end
def find_name(name)