# Lost Gem Scripts

**URL:** <https://www.ruby-forum.com/t/lost-gem-scripts/67662>\
**Category:** Ruby\
**Created:** [September 5, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/lost-gem-scripts/67662 "2006-09-05T23:32:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 5, 2006, 11:32pm UTC](https://www.ruby-forum.com/t/lost-gem-scripts/67662/1 "2006-09-05T23:32:40Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [September 5, 2006, 11:36pm UTC](https://www.ruby-forum.com/t/lost-gem-scripts/67662/2 "2006-09-05T23:36:40Z")

</div>

On Wed, Sep 06, 2006, removed\_email\_address@domain.invalid 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
