From: _why Date: 2006-12-05T02:03:47+09:00 Subject: Re: Intermittant problem with Hpricot On Mon, Dec 04, 2006 at 04:06:58AM +0900, David Vallner wrote: > Allison Newman wrote: > > Ahhh, ok, so I have to require 'hpricot' regardless of whether I have > > already done a require_gem 'hpricot'. Seems a little odd that! I'll > > have to add it to my list of "not principle of least surprise" examples > > :-) Thankyou > > > > Not really, the two methods aren't supposed to do the same at all. > > require_gem means load a gem with the name "hpricot", and then load the > library (usually .rb) files the gem's author presumes you'll want. You are talking about "autorequire", David. Which is long gone.[1] In other words, require_gem should no longer be used to load any Ruby code. It should only be used to tell RubyGems which version you'll be needing. You know? _why [1] http://redhanded.hobix.com/inspect/autorequireIsBasicallyGoneEveryone.html