diff options
Diffstat (limited to 'lib/rubygems/rdoc.rb')
-rw-r--r-- | lib/rubygems/rdoc.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/rubygems/rdoc.rb b/lib/rubygems/rdoc.rb index 15ccc3e455..f16c8696f0 100644 --- a/lib/rubygems/rdoc.rb +++ b/lib/rubygems/rdoc.rb @@ -37,6 +37,7 @@ end class Gem::RDoc # :nodoc: all include Gem::UserInteraction + extend Gem::UserInteraction @rdoc_version = nil @specs = [] @@ -70,7 +71,8 @@ class Gem::RDoc # :nodoc: all # +specs+ def self.generation_hook installer, specs - types = installer.document + start = Time.now + types = installer.document generate_rdoc = types.include? 'rdoc' generate_ri = types.include? 'ri' @@ -78,6 +80,13 @@ class Gem::RDoc # :nodoc: all specs.each do |spec| new(spec, generate_rdoc, generate_ri).generate end + + return unless generate_rdoc or generate_ri + + duration = (Time.now - start).to_i + names = specs.map(&:name).join ', ' + + say "Done installing documentation for #{names} after #{duration} seconds" end ## |