Permalink
Browse files

We expect that there will be spec versions missing

  • Loading branch information...
1 parent dc5fed2 commit 54b235de1706ae642ec98fa86af52ae6d2d35c48 Christopher Patuzzo committed May 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rubygems/dependent.rb
@@ -33,18 +33,18 @@ def self.fetch_all_dependencies(specs_and_sources, options)
parallel = (options[:parallel] || 15)
Gem::Dependent::Parallel.map(specs_and_sources, :in_processes => parallel) do |spec, source|
yield if block_given?
- dependencies = fetch_dependencies(spec, source)
name, version = spec[0,2]
+ dependencies = fetch_dependencies(spec, source, options)
[name, version, dependencies]
end
end
- def self.fetch_dependencies(spec, source)
+ def self.fetch_dependencies(spec, source, options)
begin
fetcher = Gem::SpecFetcher.fetcher
fetcher.fetch_spec(spec, URI.parse(source)).dependencies
rescue Object => e
- $stderr.puts e
+ $stderr.puts e unless options[:all_versions]
[]
end
end

0 comments on commit 54b235d

Please sign in to comment.