[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

migrating my ruby gems

dave rose

11/6/2006 4:40:00 PM

...i would like to upgrade to 1.8.5.1...but my large gem collection are
preventing...i have so many gems stored into my 1.8.2. Windows directory
structure ...is there a quick way to do this????

--
Posted via http://www.ruby-....

2 Answers

Jano Svitok

11/6/2006 5:27:00 PM

0

On 11/6/06, Dave Rose <bitdoger2@yahoo.com> wrote:
> ...i would like to upgrade to 1.8.5.1...but my large gem collection are
> preventing...i have so many gems stored into my 1.8.2. Windows directory
> structure ...is there a quick way to do this????

I do:

rename c:\ruby to c:\ruby-182
install 1.8.5 into c:\ruby

then go to C:\ruby-182\lib\ruby\gems\1.8\cache and do
gem install *.gem

I suppose there will be problems with dependencies (order of
installation), so if anything fails, I install the gems individually.

Then I'd do global update and remove older no more needed gems.

David Vallner

11/6/2006 11:40:00 PM

0

Dave Rose wrote:
> ...i would like to upgrade to 1.8.5.1...but my large gem collection are
> preventing...i have so many gems stored into my 1.8.2. Windows directory
> structure ...is there a quick way to do this????
>

Back up the 1.8.2 folder, copying over the lib/ruby/gems directory from
the backup to the fresh 1.8.5 install, gem update, gem clean. If
rubygems is at least halfways worth its salt as a package manager (which
I hope it does), it should recuperate from that. Futzing with them
manually hopefully won't be required.

David Vallner