Introducing the enable_dual_booting method, that one has to call
in their Gemfile.
Bootboot shouldn't care about the ENV var for dualbooting, that's up
to the app to tell when to dualboot.
Modified the ENV variable that controls dualboot for
DEPENDENCIES_NEXT. Bootboot has to know it in advance in order to
keep the Gemfile_next.lock in sync.
Few fixes on the GemfileNextSyncinc such as:
1) The Gemfile_next.lock wasn't updated when a gem was removed
2) We don't want to update the Gemfile_next.lock when the default
lockfile is already Gemfile_next.lock
Need to monkeypatch the
Bundler::SharedHelpers.default_lockfile
as well as the Installer will use it to generate the lockfile https://github.com/bundler/bundler/blob/2760d72d3b2a1070b279536c33d3a89aaad7426b/lib/bundler/installer.rb#L315Introducing the
enable_dual_booting
method, that one has to call in their Gemfile. Bootboot shouldn't care about the ENV var for dualbooting, that's up to the app to tell when to dualboot.Modified the ENV variable that controls dualboot for
DEPENDENCIES_NEXT
. Bootboot has to know it in advance in order to keep theGemfile_next.lock
in sync.Few fixes on the GemfileNextSyncinc such as: 1) The Gemfile_next.lock wasn't updated when a gem was removed 2) We don't want to update the Gemfile_next.lock when the default lockfile is already Gemfile_next.lock