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:

Cheers,
Ganesh G.
SageWork(http://sagework.com) Simplify IT

On Fri, Jul 25, 2008 at 2:37 PM, Swamy G.
[email protected]

Did this technique work? After trying to move from 1.0.1 to 0.9.4 the
gem list command gave weird results. I would install gems using the
new 0.9.4 version (so I think) but ‘gem list’ does not show the newly
installed gems.

On Jul 27, 11:16 pm, Swamy G. [email protected]

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.