From: Eivind Eklund Date: 2006-01-16T23:16:31+09:00 Subject: Re: Resetting ruby On 1/16/06, List Recv wrote: > I'm looking for a fast way to "reset" Ruby. That is, to reset the > interpreter back to a fresh state, or, even better, a fresh state + > keeping some required ruby-gems. > > My goal is to make a continuos test runner, and avoid the overhead of > having to restart ruby and require the gems each times. I've got code for this kind of testrunner; no specific optimizations, though. It's a plain testrunner using pipes for communication and a fork to separate out the execution. There's something clumsy about it - I don't remember what it was. If you're dead set on doing this inside a single Ruby process, this won't help - if you want an easy way out, I'll try to dig up the code - it wasn't in the obvious places :-/ Eivind.