From: Luis Lavena Date: 2010-09-03T05:45:13+09:00 Subject: Re: 1.9 require problem On Sep 2, 5:32 pm, James Byrne wrote: > James Byrne wrote: > > As of this morning I am just starting to work with Ruby 1.9.  I note > > that there seems to be some behaviour change between 1.8 and 1.9 with > > respect to require. >   .  . > > > If anyone here can tell me what I need to change to get this to work > > under Ruby 1.9 AND Ruby 1.8 I would be most obliged, > > I discover that if I do this: > > require File.expand_path( >           File.dirname(__FILE__) + '/../lib/deploy/pg_access_setup') > > Then the problem is resolved.  However, I do not understand why this is > now necessary or what benefit accrues from introducing this change in > behaviour between 1.8 and 1.9. $LOADED_FEATURES now tracks files with full paths to avoid requires with File.dirname(__FILE__) load the same file twice. -- Luis Lavena