Skip to content

Commit 1f43c7a

Browse files
author
lolwut
committed
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.
1 parent 9b68025 commit 1f43c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundler/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)