# RubyScript2Exe 0.5.0

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-0-5-0/100525>\
**Category:** Ruby\
**Created:** [July 29, 2006, 9:02pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-0-5-0/100525 "2006-07-29T21:02:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikveen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/59ef9b/32.png) [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Post date:** [July 29, 2006, 9:02pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-0-5-0/100525/1 "2006-07-29T21:02:18Z")

</div>

I just released RubyScript2Exe 0.5.0.

I added something I wanted to add for a long time: Support for  
directories. Usually, an application is more than just a  
program or a script. It consists of libraries, documentation,  
help files, configuration files, images, licenses, readmes, and  
so on. You can embed all of them in one single executable. This  
directory is available via RUBYSCRIPT2EXE.appdir(item, &block).

This version is not compatible with previous versions! Please  
reread the section “3.3. From Inside your Application” if  
you’re already familiar with RubyScript2Exe. If your script  
knew about RubyScript2Exe, well, it doesn’t anymore… You have  
to change a couple of things. Minor changes, takes only a  
couple of minutes. Sorry about this… ;]

For compatibility reasons, I had to update AllInOneRuby as  
well. Only low level changes. Forget about it. Just update.

More information and download on:

[http://www.erikveen.dds.nl/rubyscript2exe/index.html](http://www.erikveen.dds.nl/rubyscript2exe/index.html)  
[AllInOneRuby - A "Just-in-Time and Temporary Installation of Ruby"](http://www.erikveen.dds.nl/allinoneruby/index.html)

gegroet,  
Erik V. - [http://www.erikveen.dds.nl/](http://www.erikveen.dds.nl/)

* * *

WHAT IS RUBYSCRIPT2EXE?

RubyScript2Exe transforms your Ruby application into a  
standalone, compressed Windows, Linux or Mac OS X (Darwin)  
executable. You can look at it as a “compiler”. Not in the  
sense of a source-code-to-byte-code compiler, but as a  
“collector”, for it collects all necessary files to run your  
script on an other machine: the Ruby script, the Ruby  
interpreter and the Ruby runtime library (stripped down for  
this script). Anyway, the result is the same: a standalone  
executable (application.exe). And that’s what we want!

* * *

CHANGES:

- Added support for directories.

- Introduced require “rubyscript2exe.rb”.

- Added a check for readability in EEE.

- Replaced RUBYSCRIPT2EXE\_\* by RUBYSCRIPT._= and  
RUBYSCRIPT2EXE::_ (see application.rb).

- Added RUBYSCRIPT2EXE.appdir(item) and  
RUBYSCRIPT2EXE.is\_compil\*?.

- If you already used RubyScript2Exe before, please reread the  
section “From Inside your Application”, since it isn’t 100%  
backwards compatible.

---

<div class="post-metadata">

**Author:** ![erikveen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/59ef9b/32.png) [@erikveen](https://www.ruby-forum.com/u/erikveen)\
**Post date:** [July 30, 2006, 12:29am UTC](https://www.ruby-forum.com/t/rubyscript2exe-0-5-0/100525/2 "2006-07-30T00:29:38Z")

</div>

On 7/29/06, Erik V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I just released RubyScript2Exe 0.5.0.
> 
> I added something I wanted to add for a long time: Support for  
> directories. Usually, an application is more than just a  
> program or a script. It consists of libraries, documentation,  
> help files, configuration files, images, licenses, readmes, and  
> so on. You can embed all of them in one single executable. This  
> directory is available via RUBYSCRIPT2EXE.appdir(item, &block).

Thanks for your work! These scripts are extremely useful!
