Land #4851, fix rb-readline-r7 checker

bug/bundler_fix
Tod Beardsley 2015-02-26 15:18:54 -06:00
commit 14b46161e3
No known key found for this signature in database
GPG Key ID: BD63D0A3EA19CAAC
1 changed files with 1 additions and 1 deletions

View File

@ -725,7 +725,7 @@ protected
if opts['RealReadline']
# Remove the gem version from load path to be sure we're getting the
# stdlib readline.
gem_dir = Gem::Specification.find_all_by_name('rb-readline').first.gem_dir
gem_dir = Gem::Specification.find_all_by_name('rb-readline-r7').first.gem_dir
rb_readline_path = File.join(gem_dir, "lib")
index = $LOAD_PATH.index(rb_readline_path)
# Bundler guarantees that the gem will be there, so it should be safe to