On Sep 2, 5:32=A0pm, James Byrne <byrn... / harte-lyne.ca> wrote:
> James Byrne wrote:
> > As of this morning I am just starting to work with Ruby 1.9. =A0I note
> > that there seems to be some behaviour change between 1.8 and 1.9 with
> > respect to require.
> =A0 . =A0.
>
> > 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(
> =A0 =A0 =A0 =A0 =A0 File.dirname(__FILE__) + '/../lib/deploy/pg_access_se=
tup')
>
> Then the problem is resolved. =A0However, 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