[ANN] Tar2RubyScript

I’m pleased to announce the birth of Tar2RubyScript.

Tar2RubyScript generates a base64 encoded string from an
existing tar archive and concatenates that string as comments
with another Ruby script. The result is just one file, a
pure Ruby script, containing multiple files, stored as
comments
.

When the generated script (call it ‘The Application’) is
executed, it splits up into two parts (the script and the
encoded archive), decodes the base64 encoded string to a
temporary tar archive, unpacks the archive to a temporary
directory, jumps to that directory, eventually jumps to an
existing subdirectory, and finally executes init.rb . Et voila,
your application is up and running.

Because The Application is pure Ruby and no other programs or
libraries are needed (not even tar!), it’s easy to distribute
The Application to friends. They don’t have to install or
unpack anything but Ruby.

Tar2RubyScript is meant for distributing applications written
in Ruby, although it can be used for distributing applications
written in other languages, after small modifications to
Tar2RubyScript.

More information and download on
http://www.erikveen.dds.nl/tar2rubyscript/ .

gegroet,
Erik V.

That is really cool!
No need to look at Makeself anymore.

Great job!

···

On Tue, Aug 19, 2003 at 07:22:10AM +0900, Erik Veenstra wrote:

I’m pleased to announce the birth of Tar2RubyScript.

Tar2RubyScript generates a base64 encoded string from an
existing tar archive and concatenates that string as comments
with another Ruby script. The result is just one file, a
pure Ruby script, containing multiple files, stored as
comments
.

When the generated script (call it ‘The Application’) is
executed, it splits up into two parts (the script and the
encoded archive), decodes the base64 encoded string to a
temporary tar archive, unpacks the archive to a temporary
directory, jumps to that directory, eventually jumps to an
existing subdirectory, and finally executes init.rb . Et voila,
your application is up and running.

Because The Application is pure Ruby and no other programs or
libraries are needed (not even tar!), it’s easy to distribute
The Application to friends. They don’t have to install or
unpack anything but Ruby.

Tar2RubyScript is meant for distributing applications written
in Ruby, although it can be used for distributing applications
written in other languages, after small modifications to
Tar2RubyScript.

More information and download on
Tar2RubyScript - A Tool for Distributing Ruby Applications .

gegroet,
Erik V.


Daniel Carrera, Math PhD student at UMD. PGP KeyID: 9AF77A88
.-“~~~”-. On the menu of a Swiss restaurant:
/ O O \ “Our wines leave you nothing to hope for”
: s :
\ _/ / Sign outside a Hong Kong tailor shop:
`-.
_.-’ “Ladies may have a fit upstairs”

Excellent work! I definitely can make use of this.

Erik Veenstra wrote:

···

I’m pleased to announce the birth of Tar2RubyScript.

Tar2RubyScript generates a base64 encoded string from an
existing tar archive and concatenates that string as comments
with another Ruby script. The result is just one file, a
pure Ruby script, containing multiple files, stored as
comments
.

When the generated script (call it ‘The Application’) is
executed, it splits up into two parts (the script and the
encoded archive), decodes the base64 encoded string to a
temporary tar archive, unpacks the archive to a temporary
directory, jumps to that directory, eventually jumps to an
existing subdirectory, and finally executes init.rb . Et voila,
your application is up and running.

Because The Application is pure Ruby and no other programs or
libraries are needed (not even tar!), it’s easy to distribute
The Application to friends. They don’t have to install or
unpack anything but Ruby.

Tar2RubyScript is meant for distributing applications written
in Ruby, although it can be used for distributing applications
written in other languages, after small modifications to
Tar2RubyScript.

More information and download on
Tar2RubyScript - A Tool for Distributing Ruby Applications .

gegroet,
Erik V.

“Erik Veenstra” pan@erikveen.dds.nl wrote in message
news:pan.2003.08.18.17.21.49.427260@erikveen.dds.nl

I’m pleased to announce the birth of Tar2RubyScript.

Tar2RubyScript generates a base64 encoded string from an
existing tar archive and concatenates that string as comments
with another Ruby script. The result is just one file, a
pure Ruby script, containing multiple files, stored as
comments
.

When the generated script (call it ‘The Application’) is
executed, it splits up into two parts (the script and the
encoded archive), decodes the base64 encoded string to a
temporary tar archive, unpacks the archive to a temporary
directory, jumps to that directory, eventually jumps to an
existing subdirectory, and finally executes init.rb . Et
voila, your application is up and running.

Because The Application is pure Ruby and no other programs or
libraries are needed (not even tar!), it’s easy to distribute
The Application to friends. They don’t have to install or
unpack anything but Ruby.

Tar2RubyScript is meant for distributing applications written
in Ruby, although it can be used for distributing
applications written in other languages, after small
modifications to Tar2RubyScript.

More information and download on
Tar2RubyScript - A Tool for Distributing Ruby Applications .

gegroet, Erik V.

Version 0.1.1 is now available. A little bug concerning file
locking under Windows is fixed.

gegroet,
Erik V.