It turns out that ruby 1.8.7 introduced an error in which finalizers are no longer guaranteed.
To solve this problem, I added the following code snippet to the .irbrc file:
require 'irb/ext/save-history' Kernel.at_exit do IRB::HistorySavingAbility.create_finalizer.call(IRB.CurrentContext.instance_variable_get(:@io).send(:binding)) end
Scott Nov 17 '09 at 22:57 2009-11-17 22:57
source share