2016-02-01 07:43:26 -05:00
|
|
|
# frozen_string_literal: true
|
2012-11-29 01:52:18 -05:00
|
|
|
require 'rubygems'
|
|
|
|
|
|
|
|
begin
|
|
|
|
gem 'rdoc'
|
|
|
|
rescue Gem::LoadError
|
|
|
|
# swallow
|
|
|
|
else
|
|
|
|
# This will force any deps that 'rdoc' might have
|
2013-11-30 18:27:52 -05:00
|
|
|
# (such as json) that are ambiguous to be activated, which
|
2012-11-29 01:52:18 -05: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 17:50:14 -04:00
|
|
|
RDoc = ::RDoc::RubygemsHook
|
2012-11-29 01:52:18 -05:00
|
|
|
end
|
|
|
|
rescue LoadError
|
|
|
|
end
|
|
|
|
|
|
|
|
Gem.done_installing(&Gem::RDoc.method(:generation_hook))
|