# File lib/bundler/source.rb, line 144 def specs @specs ||= begin index = Index.new Dir["#{@path}/*.gem"].each do |gemfile| spec = Gem::Format.from_file_by_path(gemfile).spec next unless Gem::Platform.match(spec.platform) spec.source = self index << spec end index end end