class Bundler::Definition

def dependencies_with_bundler

def dependencies_with_bundler
  return dependencies unless @unlocking_bundler
  return dependencies if dependencies.map(&:name).include?("bundler")
  [Dependency.new("bundler", @unlocking_bundler)] + dependencies
end