class Bundler::SpecSet
def materialize(deps, missing_specs = nil)
def materialize(deps, missing_specs = nil) materialized = self.for(deps, [], false, true).to_a deps = materialized.map {|s| s.name }.uniq materialized.map! do |s| next s unless s.is_a?(LazySpecification) s.source.dependency_names = deps if s.source.respond_to?(:dependency_names=) spec = s.__materialize__ if missing_specs missing_specs << s unless spec else raise GemNotFound, "Could not find #{s.full_name} in any of the sources" unless spec end spec if spec end SpecSet.new(materialized.compact) end