Sha256: fad8532946ee8866416e4aa21fad1b30c95c1b31871b1d738ebbc54397b1e6a8

Contents?: true

Size: 720 Bytes

Versions: 46

Compression:

Stored size: 720 Bytes

Contents

# 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

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
rubygems-update-3.0.9 bundler/lib/bundler/setup.rb
rubygems-update-2.7.11 bundler/lib/bundler/setup.rb
rubygems-update-3.0.8 bundler/lib/bundler/setup.rb
rubygems-update-3.0.7 bundler/lib/bundler/setup.rb
rubygems-update-3.0.6 bundler/lib/bundler/setup.rb
rubygems-update-3.0.5 bundler/lib/bundler/setup.rb
rubygems-update-3.0.4 bundler/lib/bundler/setup.rb
rubygems-update-2.7.10 bundler/lib/bundler/setup.rb
bundler-2.0.2 lib/bundler/setup.rb
rubygems-update-2.7.9 bundler/lib/bundler/setup.rb
rubygems-update-3.0.3 bundler/lib/bundler/setup.rb
bundler-2.0.1 lib/bundler/setup.rb
bundler-2.0.0 lib/bundler/setup.rb
rubygems-update-3.0.2 bundler/lib/bundler/setup.rb
bundler-2.0.0.pre.3 lib/bundler/setup.rb
bundler-1.17.3 lib/bundler/setup.rb
rubygems-update-3.0.1 bundler/lib/bundler/setup.rb
rubygems-update-3.0.0 bundler/lib/bundler/setup.rb
bundler-1.17.2 lib/bundler/setup.rb
bundler-2.0.0.pre.2 lib/bundler/setup.rb