From: Tom Werner Date: 2007-11-14T17:04:40+09:00 Subject: Re: How to reload available rubygems in a long running process ------=_Part_4410_3602423.1195027458167 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/13/07, Eric Hodel wrote: > > On Nov 13, 2007, at 23:39 , Tom Werner wrote: > > On 11/13/07, Eric Hodel wrote: > >> On Nov 12, 2007, at 10:48 , Tom Werner wrote: > >>> I have not been able to find an easy way to have rubygems reload > >>> its cache of available gems from a running Ruby program. Does > >>> anyone know of a decent way to accomplish this? > >> > >> Gem.clear_paths > > > > This does not appear to work. Here is my test procedure: > > > > [...] > > Hrm, with RubyGems 0.9.4.7 I ran your script and I get one fail, not > two. > > Interesting. I've verified that it does indeed work with 0.9.4.7. I was previously using 0.9.4. Thanks for your help! -- Tom Preston-Werner * Libraries: Chronic (chronic.rubyforge.org) God (god.rubyforge.org) Fuzed (fuzed.rubyforge.org) * Site: rubyisawesome.com ------=_Part_4410_3602423.1195027458167--