bundle install --standalone seems like a wonderful idea, but I'm having a hard time wrapping my head around how to use it that doesn't wind up requiring you to have rubygems or bundler installed.

It generates a bundler/setup.rb which adds the lib and ext directories of my gems, seemingly in order. Presumably, all I'd need to do is add it to the load path, and all's well.

But bundler/setup.rb doesn't seem to actually require anything.

Now, that's fine, because the normal bundler/setup doesn't require anything either and leaves it to the app to call Bundler.require

Rails by default does the requiring with this little ditty:

if defined?(Bundler)
  Bundler.require(*Rails.groups(:assets => %w(development test)))
end

At the point it hits this, Bundler isn't defined (bundler/setup.rb doesn't define it), so it skips over the block.

So how exactly do I require bundler. If bundle install --standalone actually bundled bundler, presumably, I could manually call require bundler and then have Bundler defined, but it seems to exclude itself from the bundle.

Is there an app out there that actually uses bundle install --standalone, and if so, how?

Edit
Report