mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Explicitly require rb-readline
On my 1.8 on mac-os installed with rbenv with no readline, "require 'readline'" raises a LoadError even when rb-readline is installed.
This commit is contained in:
parent
8f827ea403
commit
af8a21bb4f
1 changed files with 5 additions and 1 deletions
|
@ -216,7 +216,11 @@ require 'tempfile'
|
|||
require 'pathname'
|
||||
|
||||
begin
|
||||
require 'readline'
|
||||
begin
|
||||
require 'readline'
|
||||
rescue LoadError => e
|
||||
require 'rb-readline'
|
||||
end
|
||||
rescue LoadError
|
||||
warn "You're running a version of ruby with no Readline support"
|
||||
warn "Please `gem install rb-readline` or recompile ruby --with-readline."
|
||||
|
|
Loading…
Reference in a new issue