lib/rubygems/dependent.rb in gem-dependent-0.1.6 vs lib/rubygems/dependent.rb in gem-dependent-0.1.7
- old
+ new
@@ -1,11 +1,8 @@
-require 'parallel'
+require 'rubygems/dependent_parallel'
require 'rubygems/spec_fetcher'
-# older parallel versions can produce strange bugs
-puts "update parallel gem" if Parallel::VERSION < '0.5.1'
-
module Gem
class Dependent
VERSION = File.read( File.join(File.dirname(__FILE__),'..','..','VERSION') ).strip
def self.find(gem, options={})
@@ -32,10 +29,10 @@
private
def self.fetch_all_dependencies(specs_and_sources, options)
parallel = (options[:parallel] || 15)
- Parallel.map(specs_and_sources, :in_processes => parallel) do |spec, source|
+ Gem::Dependent::Parallel.map(specs_and_sources, :in_processes => parallel) do |spec, source|
yield if block_given?
name = spec.first
dependencies = fetch_dependencies(spec, source)
[name, dependencies]
end