class Bundler::Standalone

def gem_path(path, spec)

def gem_path(path, spec)
  full_path = Pathname.new(path).absolute? ? path : File.join(spec.full_gem_path, path)
  if spec.source.instance_of?(Source::Path)
    full_path
  else
    Pathname.new(full_path).relative_path_from(Bundler.root.join(bundler_path)).to_s
  end
rescue TypeError
  error_message = "#{spec.name} #{spec.version} has an invalid gemspec"
  raise Gem::InvalidSpecificationException.new(error_message)
end