[ANN] darb 0.2

J

Joel VanderWerf

Darb 0.2

http://redshift.sourceforge.net/darb

Combines a main.rb file and list of library files that it requires into
a single executable script file. The library files are embedded in the
DATA section of this script and loaded using a custom implementation of
require that reads from DATA.

Changes since 0.1:

- better help text

- empty command line outputs help, as do -h and --help

- generates a hashbang line if darb itself has one

- format of feature name in $LOADED_FEATURES is now consistent with
Kernel#require

- now works correctly when some or all input files have cr-lf instead of
just lf

- archives generated on windows run on unix/linux and vice versa

Still broken:

- autoload doesn't look inside the archive, so autoload of external
libraries is ok, but not autoload of archived files. Since ruby's
autoload code does not call #require, getting this to work will involve
reimplementing autoload using #const_missing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top