From: James Edward Gray II Date: 2007-02-06T01:22:58+09:00 Subject: Re: Mixing Rake and Turn On Feb 5, 2007, at 10:17 AM, Tim Pease wrote: > On 2/5/07, Jan Friedrich wrote: >> Daniel Berger wrote: >> > t.ruby_opts << '-rturn' >> This doesn't work if you have installed turn via rubygems: >> >> /usr/bin/ruby1.8: no such file to load -- turn (LoadError) >> rake aborted! >> >> You cannot load gems with the -r option of the ruby interpreter. >> > > > t.ruby_opts << '-rubygems' > t.ruby_opts << '-rturn' > > That should work, correct? No, I don't think so. Ruby's -r switch is not implemented by calling Ruby's require() method, so RubyGems cannot override it. James Edward Gray II