This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
install_hooks(requests, options)
public
Call hooks on installed gems
# File lib/rubygems/request_set.rb, line 308
def install_hooks(requests, options)
specs = requests.map do |request|
case request
when Gem::Resolver::ActivationRequest then
request.spec.spec
else
request
end
end
require "rubygems/dependency_installer"
inst = Gem::DependencyInstaller.new options
inst.installed_gems.replace specs
Gem.done_installing_hooks.each do |hook|
hook.call inst, specs
end unless Gem.done_installing_hooks.empty?
end