downgrading rubygems

Hi, When I did a gem -v, it showed me the version as 1.0.1. I want to downgrade this to version 0.9.0. How can I do this? Thanks a lot

If don’t mind me asking, is there a specific reason to downgrade rubygems?

Not sure if there is failproof way of downgrading rubygems. If downgrade rubygems, you current gems might stop working.

You can manually overwrite the current gem installation tho’

Download rubygems 0.9.0 http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz

tar -xvf rubygems-0.9.0.tgz

cd rubygems

sudo ruby setup.rb

Leopard:rubygems-0.9.0 gg$ gem env

Rubygems Environment:

  • VERSION: 0.9.0 (0.9.0)

  • INSTALLATION DIRECTORY: /Library/Ruby/Gems

  • GEM PATH:

  • /Library/Ruby/Gems

  • REMOTE SOURCES:

  • http://gems.rubyforge.org

Cheers,

Ganesh Gunasegaran

SageWork(http://sagework.com) Simplify IT

The code that i'm working on uses the 'require_gem' method to load gems. But since this method has been deprecated since 0.9.1 , the code throws an error wherever 'require_gem' is used. I dont want to change the code, so thats why I wanted to downgrade rubygem. Thanks for your reply.