RAA - tar2rubyscript/0.4.6

tar2rubyscript / 0.4.6

Short description: A tool for distributing your Ruby-application
Category: Application/Package management
Status: stable
Created: 2003-08-31 16:03:51 GMT
Last update: 2005-06-20 22:23:07 GMT
Owner: Erik Veenstra (Projects of this owner)
Homepage: http://www.erikveen.dds.nl/tar2rubyscript/index.html
Download: http://www.erikveen.dds.nl/tar2rubyscript/download/tar2rubyscript.rb
License: GPL
Dependency:
None
Description:

Tar2RubyScript transforms a directory, containing your
application, and its subdirectories, into one single Ruby
script, along with some code to handle this archive. This
script can be distributed to our friends. When they've
installed Ruby, they just have to double click on it and your
application is up and running!

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 Archive).

"It's Ruby's JAR..."

Like packing related application files into one RBA
application, you could as well pack related library files into
one RBA library. Now you don't need to install the compound
library in the traditional way before using it. Just require
the RBA.

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 entry 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:

* 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.

Versions: [0.4.8 (2006-07-03)] [0.4.7 (2005-06-24)] [0.4.6 (2005-06-20)] [0.4.5 (2005-03-26)] [0.4.4 (2005-01-18)] [0.4.3 (2005-01-13)] [0.4.2 (2004-12-27)] [0.4.1 (2004-12-18)] [0.4.0 (2004-12-03)] [0.3.8 (2004-06-07)]

Edit this project (for project owner)

back to RAA top