mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[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:
parent
1b476606f2
commit
3143543f95
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user