load a local gem while an older lib version still exists

E

Edouard Dantes

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
 
S

Stefan Lang

2009/1/28 Edouard Dantes said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top