[Nitro] Facets 2.0 and the World of Bundles

transfire at gmail.com transfire at gmail.com
Tue Mar 27 23:34:16 EDT 2007



On Mar 27, 7:04 pm, "George Moschovitis"
<george.moschovi... at gmail.com> wrote:
> Tom,
>
> this sounds interesting, but I don't really understand  how this works
> from this email. And to tell  you the truth I am quite happy with he
> current (1.8) mega-library aproach. However, I would love to see your
> new system. Can I download the code somewhere?

I have a prototype that works like this:

Lets say I have a couple of gems: hello_world.gem
and adios_world.gem.

 % gembundle build tryme hello_world-1.0.0.gem adios_world-1.0.0.gem

This creates a tar.gz file called, tryme.gembundle which simply
contains the two listed gems, Then...

 % gembundle install tryme.gembundle
 Successfully installed hello_world, version 1.0.0
 Successfully installed adios_world, version 1.0.0

The intsall command just copies the bundle to a temp location, unpacks
it and installs the contained gems (with the -y option). That's it.

Now that's just the prototype of course. The real version would
integrate into the current gem command itself, and would actually
build ordinary gems with an extra bundle section. So one would just do

  gem build --bundle foo.gemspec

And all the dependencies of foo would be bundled into the new foo gem.
There could also be a bundle subcommand to take a regular gem and
generate a bundled version from it.as well as a to include on certain
dependencies but not others.

T.



More information about the Nitro-general mailing list