# Rubyscript2exe and gem

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-and-gem/57630>\
**Category:** Ruby\
**Created:** [April 12, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-and-gem/57630 "2006-04-12T16:53:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![giom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e56c9b/32.png) [@giom](https://www.ruby-forum.com/u/giom)\
**Post date:** [April 12, 2006, 4:53pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-and-gem/57630/1 "2006-04-12T16:53:30Z")

</div>

Is there a way to tag files in a gem according to their “function”,  
like documentation, code, etc. The reason I am wondering about this is  
when I pack a program up with rubyscript2exe, it packages the entire  
directory of a gem if one is required. For example, with FXRuby, all  
the rdoc and C header files are packed up… 8 megs of useless data as  
far as the ruby app is concerned (just the .so and 1 directory of ruby  
files are actually needed).

If the the files were tagged, rubyscript2exe could make an intelligent  
decision on what to include from the gem directory.

I am now thinking of having a separate installation of ruby without gem  
and hand installed libraries just to run rubyscript2exe and avoid this  
problem. But this seems long and more painful than it should be.

Any thoughts? Any better solution?

Guillaume.
