rubygems troubles

H

hemant

Scenario#1:
In my rails app, i use several awesome gems. Gem X depends on 0.4
version of rubyforge, while Gem Y, depends on 1.0 version of rubyforge
gem. They all come with that value hardcoded in gemspecs. Now, this
creates loads of troubles. I have managed to fix this somehow till now
fortunately, because in my case, if gem X had hardcoded version of
rubyforge, gem Y didn't had hardcoded dependency.

How to solve this?

Scenario#2:
Locking your program to a particular gem version is a good idea, but
its such a bad idea for distributable libraries.

Scenario#3:
Totally mysterious error messages, heck i run command buildr and get:

/usr/local/lib/site_ruby/1.8/rubygems.rb:142:in `activate': can't
activate rubyforge (~> 0.4, runtime), already activated
rubyforge-1.0.0 (Gem::Exception)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:49:in `gem'





--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org
 
R

Roger Pack

Scenario#3:
Totally mysterious error messages, heck i run command buildr and get:

/usr/local/lib/site_ruby/1.8/rubygems.rb:142:in `activate': can't
activate rubyforge (~> 0.4, runtime), already activated
rubyforge-1.0.0 (Gem::Exception)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:158:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:157:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:49:in `gem'

impossible to 'deactivate' gems currently, AFAIK--you could, however,
'hard require' the files of another gem, by hand, to 'overwrite' the
already loaded one.
-R
 

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

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top