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.
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 G. 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.
Darshana G. wrote:
require ‘rubygems’
gem ‘hpricot’, ‘= 0.6’
try with correct syntax in environment.rb:
config.gem “hpricot”, :version => ‘0.6’, :source =>
“http://code.whytheluckystiff.net”