Permalink
Switch branches/tags
0-8-stable 0-9-stable 1-0-stable 1-1-stable 1-2-stable 1-3-stable 1-5-stable 1-6-stable 1-7-stable 1-8-stable 1-9-stable 1-10-stable 1-11-stable 1-12-stable 1-13-stable 1-14-stable 1-15-stable 1-16-stable 1-17-stable 1-99-dev 1_13_2_changelog_edit 2-0-dev-archived 2-0-dev 2-0-stable 171 3982-clean-rubylib 4064 aa-implicit-ruby-versions aa-revert-4998 auto autobundle bump_ruby_2.4_in_travis checksum clean_local_test_run colby/bundler-2-docs colby/bundler-2-install-doc colby/remove-bundler-init-default-gemsrb colby/spec-system-bundler colby/test-6689 colby/travis-build-stages colby/update-rubocop-ruby-version config_location default-travis-emails dont_run_git_commands_during_runtime dwr-metadata execless fetchers_fetchers_everywhere fix_missing_gem_dir further_disablement gem_tasks gemfile_hashing gh-pages greysteil/print-errors-to-stderr homu-tmp indirect/deprecation-with-warnings indirect/playbooks issue-3671 master modify_gem_build_warning_spec molinillo new-index old-gem-version parallel_threads platforms refactor-resolver remove-bundle_ruby remove-old-ruby remove-self-hosted-yaml remove_gem_build_warning_exception removing_the_spec_gil resolve-running-ruby retry_network rgb-manpage-additions rubygems22_exts rubymorillo-patch-1 seg-binstubs-shebang seg-bundle-gem-github-source seg-bundle-gem-invalid-constant seg-default-command seg-definition-from-lockfile seg-definition-to-ruby seg-deprecate-github-git-source seg-downloader-error seg-dsl-force-version seg-error-report seg-hot-mess-in-proc-specs seg-implicitly-lock-ruby seg-in-process-tests seg-install-if-eval seg-json-gemfile seg-lockfile-corrupted-no-deadlock seg-no-warning-when-updating-sha-not-version seg-package-all-platforms-without seg-package-install-no-git seg-parallel-travis seg-release-no-changes seg-release-tasks seg-remove-fakeweb seg-split-gem-download-from-install seg-travis-run-against-setup-rg segiddins/bundle-gem-rubocop-option segiddins/bundle-gem-version-file segiddins/fail-gracefully-when-resetting-to-rev-fails segiddins/fix-bundle-exec-bundle-install-git-extension segiddins/gemspec-force-ruby-platform segiddins/log-everything-in-tmp segiddins/sys-install-command segiddins/updater-use-more-filesystem-access sequential_fallback sources spec-for-3896 staging test_default_gems travis-docker try unsupported_sources update-rubocop user_agent user_agent2
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 720 Bytes
# frozen_string_literal: true
require "bundler/shared_helpers"
if Bundler::SharedHelpers.in_bundle?
require "bundler"
if STDOUT.tty? || ENV["BUNDLER_FORCE_TTY"]
begin
Bundler.setup
rescue Bundler::BundlerError => e
puts "\e[31m#{e.message}\e[0m"
puts e.backtrace.join("\n") if ENV["DEBUG"]
if e.is_a?(Bundler::GemNotFound)
puts "\e[33mRun `bundle install` to install missing gems.\e[0m"
end
exit e.status_code
end
else
Bundler.setup
end
# Add bundler to the load path after disabling system gems
bundler_lib = File.expand_path("../..", __FILE__)
$LOAD_PATH.unshift(bundler_lib) unless $LOAD_PATH.include?(bundler_lib)
Bundler.ui = nil
end