From: Leslie Viljoen Date: 2009-10-14T22:55:01+09:00 Subject: Re: Hey you! Stop using relative requires! On Wed, Oct 14, 2009 at 2:01 PM, Intransition wrote: > I recently came across two different programs that had this line in a > bin/ executable: > >  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../ > lib")) > > This stuff makes me sad. The use of RubyGems is masking some bad > practices here. The above code would not work with a traditional site > installation. Why? require_relative has just been added to Ruby 1.9 and I wish it had been there from the start. How else can you bundle some application specific library code with an app? If I don't require rubygems, none of my programs work. I don't understand any of your points, so can you give some reasons?