From: Robert Klemme Date: 2010-09-03T05:45:13+09:00 Subject: Re: 1.9 require problem On 09/02/2010 10: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') You can as well modify $: or set RUBYLIB in the environment. > 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. Maybe it's not so much a change in behavior or rather a changed default setting of $:. Kind regards robert