Skip to content

Commit 3143543

Browse files
lolwutmatzbot
authored andcommitted
[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. ruby/rubygems@1f43c7a988
1 parent 1b47660 commit 3143543

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/bundler/rubygems_integration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def default_specs
432432
end
433433

434434
def find_bundler(version)
435-
find_name("bundler").find {|s| s.version.to_s == version }
435+
find_name("bundler").find {|s| s.version.to_s == version.to_s }
436436
end
437437

438438
def find_name(name)

0 commit comments

Comments
 (0)