[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

load a local gem while an older lib version still exists

Edouard Dantes

1/28/2009 11:31:00 AM

Hi

I have installed the mechanize 0.9.0.gem on ubuntu.

The older mechanize-hpricot installed from the ubuntu repository is
still the default.

How can i load/make the new version the default?

Note that i want to keep the old one because i have already written a
few things that need it.

thanks for your comments
--
Posted via http://www.ruby-....

1 Answer

Stefan Lang

1/28/2009 2:02:00 PM

0

2009/1/28 Edouard Dantes <edrd.dantes@gmail.com>:
> Hi
>
> I have installed the mechanize 0.9.0.gem on ubuntu.
>
> The older mechanize-hpricot installed from the ubuntu repository is
> still the default.
>
> How can i load/make the new version the default?

Assuming the gem name is "mechanize", put this
_before_ calling require:

gem "mechanize", ">= 0.9.0"

> Note that i want to keep the old one because i have already written a
> few things that need it.
>
> thanks for your comments

Stefan