class Bundler::Repository

def source_index

def source_index
  index = Gem::SourceIndex.from_gems_in(@path.join("specifications"))
  index.each { |n, spec| spec.loaded_from = @path.join("specifications", "#{spec.full_name}.gemspec") }
  index
end