diff options
| author | lolwut <lol@wut.com> | 2025-12-25 21:05:50 -0600 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-01-06 04:38:12 +0000 |
| commit | 3143543f958d4fa90d0423f84c598286098f1704 (patch) | |
| tree | 4a8a5ad2e80b1fa0beb5e006f82387700a17a2a0 /lib | |
| parent | 1b476606f2294d0ce52a7429c597491ff68b11ce (diff) | |
[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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundler/rubygems_integration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
