scripts/irbrc.rb in rvm-1.0.14 vs scripts/irbrc.rb in rvm-1.0.15

- old
+ new

@@ -30,10 +30,10 @@ lines = Readline::HISTORY.to_a.reverse.uniq.reverse lines = lines[-maxhistsize, maxhistsize] if lines.compact.length > maxhistsize File::open(histfile, "w+") { |io| io.puts lines.join("\n") } end -rescue +rescue LoadError puts "Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.\nYou may follow 'rvm notes' for dependencies and/or read the docs page http://rvm.beginrescueend.com/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries." end # Calculate the ruby string. rvm_ruby_string = ENV["rvm_ruby_string"] || `rvm tools identifier`.strip.split("@", 2)[0]