We’re using Bundler 0.9.26, Rails 2.3.8, JRuby 1.5.0, and packaging it
all with Warbler 1.1.0.
Do I need to package Bundler itself for use at runtime?
At the moment I can skip it if I put logic like this in our
preinitializer.rb file:
begin
require File.expand_path('../../.bundle/environment',
FILE)
rescue LoadError
require ‘rubygems’
require ‘bundler’
require Bundler.setup
end
But, looking at this commit:
http://github.com/rails/rails/commit/ca378659bcaa41f5bd231b6792bf50c941e7fd12
…and the 0.10.0 entry in the changelog:
http://github.com/carlhuda/bundler/blob/master/CHANGELOG.md
…Makes me suspect that this technique is deprecated or will be shortly.
Does this mean that we should ship Bundler?
-Matt