[Rubygems-developers] gembundles

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

On 3/27/07, Chad Woolley <thewoolleyman at gmail.com> wrote:
> What about the potential duplication and conflict of versions?  For
> example, if you multiple versions of a dependency installed as
> first-class gems, then other multiple (and possibly duplicated and
> conflicting) versions "bundled" in with another first-class gem, which
> ones "win"?  What goes on the load path first?  Does it depend on the
> circumstances (which one is loaded first)?

Bundles don't change anything about versioning. Bundles simply include
other gems with them. For example say a gembundle "foo" includes the
gem bar-1.0.0, but you already have bar-1.0.1 installed. Doesn't
matter, bar-1.0.0 will be installed and if foo, or some other gem in
foo, uses

  gem 'bar', '=1.0.0'

then 1.0.0 will be used. otherwsie 1.0.1 will be used. Which is
exactly how gems works now irregardless of bundles.

That's the key thing about bundles, they do nothing more than provide
a way to distribute multiple gems in a single package.


More information about the Rubygems-developers mailing list