From 3143543f958d4fa90d0423f84c598286098f1704 Mon Sep 17 00:00:00 2001 From: lolwut Date: Thu, 25 Dec 2025 21:05:50 -0600 Subject: [PATCH] [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 --- lib/bundler/rubygems_integration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index d8f95cffb8..e04ef23259 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -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)