[ruby-it] How to use more than one gem version in the same application

Paolo Montrasio paolo a paolomontrasio.com
Lun 9 Nov 2009 15:48:15 CET


I don't think it's feasible but as you wrote your question in English 
you probably wanted to post your question to the general Ruby forum at 
http://www.ruby-forum.com/forum/4 and not to the Italian one at 
http://www.ruby-forum.com/forum/19
You'll also find more people to advise you there.

Regards
Paolo

Darshana Gangwal wrote:
> Hi All,
> 
> I am using Hpricot library for html parsing.
> The strange thing that I observed is some html parsing is working with
> hpricot gem version 0.6 and some with hpricot gem version 0.8.1.
> 
> So, I tried with using specific version of hpricot gem with following
> command:
> 
> require 'rubygems'
> gem 'hpricot', '= 0.6'
> 
> But its giving error:
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:280:in `activate': can't
> activate hpr
> icot (= 0.6, runtime) for [], already activated
> hpricot-0.8.1-x86-mswin32 for []
>  (Gem::LoadError)
> 
> I want to know how to use more than one gem version in the same ruby
> application?
> Is this feasible, if yes thn how?
> 
> Any pointer will be helpful to me.
> Thanks in advance.

-- 
Posted via http://www.ruby-forum.com/.


More information about the Ml mailing list