lib/rubygems/dependent.rb in gem-dependent-0.1.0 vs lib/rubygems/dependent.rb in gem-dependent-0.1.1
- old
+ new
@@ -16,10 +16,13 @@
puts "Downloading specs for #{specs_and_sources.size} gems" if options[:progress]
# fetch dependencies
gem_names_and_dependencies = Parallel.map(specs_and_sources, :in_processes => 20) do |spec_tuple, source_uri|
- print '.' if options[:progress]
+ if options[:progress]
+ print '.'
+ $stdout.flush if rand(20) == 0 # make progress visible
+ end
name = spec_tuple.first
dependencies = dependencies(spec_tuple, source_uri)
[name, dependencies]
end
\ No newline at end of file