From: bbiker Date: 2007-04-16T01:30:05+09:00 Subject: Re: using 'require' On Apr 15, 3:25 am, John Joyce wrote: > on my PPC Mac and on the Dreamhost Debian Linux servers, > is in the loadpath, it comes first, but only appears as . so > you might not see it at first! > That's a common linux and OSX is a common BSD so I'd assume it may be > a windows issue. > On Apr 15, 2007, at 2:39 PM, Chris Carter wrote: > > > > > On 4/14/07, Jeff wrote: > >> On Mar 2, 4:12 pm, Peter Bailey wrote: > >> > That worked, Tim. Thanks. I just put my file into ../ruby/lib/ > >> 1.8. Cool. > > >> > -- > >> > Posted viahttp://www.ruby-forum.com/. > > >> Matz, if you're out there -- could 1.9 change the default behavior of > >> 'require' and 'load' to always include the current directory '.' in > >> the searchpath? > > >> I ask because threads like this one seem to come up a lot, especially > >> for those of us new to Ruby, and it makes me think that it > >> justifies a > >> change in how the searchpath works. > > >> Thanks! > >> Jeff > >> softiesonrails.com > > > On my machine '.' is in the loadpath. > > > saurasaurusrex:~ cdcarter$ ruby -e "p $:" > > ["/usr/local/lib/ruby/site_ruby/1.8", > > "/usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.7.1", > > "/usr/local/lib/ruby/site_ruby", "/usr/local/lib/ruby/1.8", > > "/usr/local/lib/ruby/1.8/i686-darwin8.7.1", "."] > > > also: > >http://pastie.caboo.se/53939 > > > -- > > Chris Carter > > concentrationstudios.com > > brynmawrcs.com- Hide quoted text - > > - Show quoted text - This is not a window issue. C:\Documents and Settings\Owner>ruby -e "p $:" ["c:/ruby/lib/ruby/site_ruby/1.8", "c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt", "c:/ruby/lib/ruby/site_ruby", "c:/ruby/lib/ruby/1.8", "c:/ruby/lib/ruby/1.8/i386-mswin32", "."]