class Bundler::CLI::Info

def print_gem_path(spec)

def print_gem_path(spec)
  name = spec.name
  if name == "bundler"
    path = File.expand_path("../../..", __dir__)
  else
    path = spec.full_gem_path
    if spec.installation_missing?
      return Bundler.ui.warn "The gem #{name} is missing. It should be installed at #{path}, but was not found"
    end
  end
  Bundler.ui.info path
end