| Short description: |
Ruby Compiler |
| Category: |
Application/Compiler |
| Status: |
stable |
| Created: |
2003-10-17 19:51:21 GMT |
| Last update: |
2005-01-18 23:29:30 GMT |
| Owner: |
Erik Veenstra
(Projects of this owner) |
| Homepage: |
http://www.erikveen.dds.nl/rubyscript2exe/index.html |
| Download: |
http://www.erikveen.dds.nl/rubyscript2exe/download/rubyscript2exe.rb
|
| License: |
GPL |
| Dependency: |
|
| Description: |
RubyScript2Exe transforms your Ruby script into a standalone
Windows or Linux 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 exe-file (Windows) or bin-file (Linux). And that's
what we want!
Because of the gathering of files from your own Ruby
installation, RubyScript2Exe creates an executable for the
platform it's being run on. No cross compile.
And when I say Windows, I mean both Windows (RubyInstaller,
MinGW and MSWin32) and Cygwin. But the generated exe under
Cygwin is very, very big, because its exe's are very big
(static?) and it includes cygwin1.dll, so it can run on
machines without Cygwin.
There is one more advantage: Because there might be some
incompatibilities between the different Ruby versions, you have
to test your script with every single version. Unless you
distribute your version of Ruby with your script...
The combination of Tar2RubyScript and RubyScript2Exe is of
special interest: A complete Ruby application can be
distributed as one executable:
* Tar2RubyScript creates a standalone Ruby script (or RBA, Ruby
Archive) of the application and its directory. This RBA can
run on "the Ruby platform". This means that Ruby itself must
be installed on the targeted system.
* RubyScript2Exe avoids this dependency by compiling a
rubyscript (in casu the RBA), the Ruby interpreter and the
Ruby runtime environment into one executable.
This combination isn't necessary. Each application can be used
without the other.
What's the difference between RubyScript2Exe and AllInOneRuby?
Well, RubyScript2Exe includes an application (your script) and
only parts of the rubylib tree (it's stripped specifically for
that application). AllInOneRuby contains a complete Ruby
installation: it includes no application, but it does include
the complete rubylib tree. You can use allinoneruby.exe like
ruby.exe (Windows) and allinoneruby.bin like ruby (Linux)
that's already installed on your system. In other words: the
executable, generated with RubyScript2Exe, is an application;
the one generated with AllInOneRuby "is" Ruby.
|
| Versions: |
[0.5.3 (2007-05-30)]
[0.5.2 (2007-04-15)]
[0.5.0 (2006-07-30)]
[0.4.4 (2006-07-03)]
[0.4.1 (2005-12-03)]
[0.4.0 (2005-10-17)]
[0.3.6 (2005-06-14)]
[0.3.5 (2005-06-03)]
[0.3.4 (2005-05-21)]
[0.3.3 (2005-03-26)]
[0.3.2 (2005-01-18)]
[0.3.1 (2005-01-13)]
[0.3.0 (2004-12-27)]
[0.2.1 (2004-12-18)]
[0.2.0 (2004-12-08)]
[0.1.21 (2004-08-04)]
[0.1.20 (2004-07-30)]
[0.1.19 (2004-07-30)]
[0.1.18 (2004-06-27)]
[0.1.17 (2004-06-22)]
[0.1.16 (2004-06-11)]
[0.1.15 (2004-05-15)]
[0.1.14 (2004-05-04)]
[0.1.13 (2004-04-28)]
[0.1.12 (2004-04-24)]
[0.1.11 (2004-04-04)]
|