||A tool for distributing your Ruby-application
||2003-08-31 16:03:51 GMT
||2004-06-07 19:21:09 GMT
(Projects of this owner)
Tar2RubyScript generates a standalone Ruby script from an
existing TAR archive or directory, which contains a complete
Ruby application (scripts plus files). When this Ruby script is
run, it does a temporary installation of that application, just
before executing it. So, it's a way of executing your
application, not of installing it. You might think of it as the
Ruby version of Java's JAR... Let's call it an RBA (Ruby
"It's Ruby's JAR..."
Because the RBA is pure Ruby and no other programs or libraries
are needed, it's easy to distribute it to friends. They don't
have to install anything but Ruby itself.
Unlike the JAR-people, we don't need a new extension for RBA's.
A JAR isn't a Java Class, it contains a Java class; an RBA both
is and contains a Ruby script. It's also easier to change the
format of an RBA in the future, because the algorithm to handle
the RBA comes with it at a cost in bytes of less then 10K.
Another difference between the two is the starting point: JAR
does something with a manifest; RBA just loads init.rb. And,
well, they compress, we don't.
The combination of Tar2RubyScript and RubyScript2Exe is of
special interest: A complete Ruby application can be
distributed as one executable (for Windows):
* 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 (for Windows).