2016-02-01 12:43:26 +00:00
|
|
|
# frozen_string_literal: true
|
2012-11-29 06:52:18 +00:00
|
|
|
require 'rubygems'
|
|
|
|
|
|
|
|
begin
|
|
|
|
gem 'rdoc'
|
|
|
|
rescue Gem::LoadError
|
|
|
|
# swallow
|
|
|
|
else
|
|
|
|
# This will force any deps that 'rdoc' might have
|
2013-11-30 23:27:52 +00:00
|
|
|
# (such as json) that are ambiguous to be activated, which
|
2012-11-29 06:52:18 +00:00
|
|
|
# is important because we end up using Specification.reset
|
|
|
|
# and we don't want the warning it pops out.
|
|
|
|
Gem.finish_resolve
|
|
|
|
end
|
|
|
|
|
|
|
|
begin
|
|
|
|
require 'rdoc/rubygems_hook'
|
|
|
|
module Gem
|
2015-07-01 21:50:14 +00:00
|
|
|
RDoc = ::RDoc::RubygemsHook
|
2012-11-29 06:52:18 +00:00
|
|
|
end
|
|
|
|
rescue LoadError
|
|
|
|
end
|
|
|
|
|
|
|
|
Gem.done_installing(&Gem::RDoc.method(:generation_hook))
|