class Bundler::Source::Path

def local_specs

def local_specs
  @local_specs ||= begin
    index = Index.new
    if File.directory?(path)
      Dir["#{path}/#{@glob}"].each do |file|
        file = Pathname.new(file)
        relative_path = file.relative_path_from(Pathname.new(path))
        # Do it in the root of the repo in case they do
        # assume being in the root
        if spec = Dir.chdir(path) { eval(File.read(relative_path)) }
          spec = Specification.from_gemspec(spec)
          spec.loaded_from = file
          spec.source      = self
          index << spec
        end
      end
      index << default_spec if default_spec && index.empty?
    end
    index.freeze
  end
end