From: Jim Weirich Date: 2005-06-19T11:08:52+09:00 Subject: Re: Confusion about gems and non-gems working together. On Saturday 18 June 2005 04:10 pm, Chad Fowler wrote: > > In all the cases where I had these problems, I had non-gem installs of > > earlier versions of the packages. In many cases, it seems like code > > inside of files associated with these earlier versions would get > > executed instead of the code that the newer gem would use. > > [...] > > Has anyone else experienced anything like this? If so, how did you > > handle it? > > I haven't, but I don't use non-gem libs much anymore. [...] > As long as the gem version of the library > is before the non-gem version in the load path (which it should be), you > should get the gem version of the lib. If no explicit require_gem is done on the library, then the non-gem version will take precedence. If there is no non-gem version, or an explicit require_gem has requested the library, then the gem version will be used. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)