[ruby-it] How to use more than one gem version in the same application
Darshana Gangwal
darshna.17 a gmail.com
Lun 9 Nov 2009 05:55:25 CET
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