[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Lost Gem Scripts

dkmd_nielsen

9/5/2006 9:30:00 PM

A variety of inhouse gem scripts have been lost. The gems are
installed and running fine. Is there a way to recreate the gem script
from the gem? I see the specification command for displaying the YAML
information. Anything for recreating the ruby script?

1 Answer

Ben Bleything

9/5/2006 9:35:00 PM

0

On Wed, Sep 06, 2006, dkmd_nielsen@hotmail.com wrote:
> A variety of inhouse gem scripts have been lost. The gems are
> installed and running fine. Is there a way to recreate the gem script
> from the gem? I see the specification command for displaying the YAML
> information. Anything for recreating the ruby script?

If you go to where the gems are installed (for me, it's
/opt/local/lib/ruby/gems/1.8) there should be a subdirectory called
"specifications". In there should be the gemspecs for all of your
installed gems.

And now for the unsolicited lecture ;) Source control, backups. That's
all :)

Ben