End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::RDoc.generation_hook
generation_hook(installer, specs)
lib/rdoc/rubygems_hook.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rdoc/rubygems_hook.rb, line 48
def self.generation_hook installer, specs
start = Time.now
types = installer.document
generate_rdoc = types.include? 'rdoc'
generate_ri = types.include? 'ri'
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
Post installs hook that generates documentation for each specification in specs