mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	 3dc6efbe9c
			
		
	
	
		3dc6efbe9c
		
	
	
	
	
		
			
			1172320540
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			524 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			524 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| require 'rubygems'
 | |
| 
 | |
| begin
 | |
|   gem 'rdoc'
 | |
| rescue Gem::LoadError
 | |
|   # swallow
 | |
| else
 | |
|   # This will force any deps that 'rdoc' might have
 | |
|   # (such as json) that are ambiguous to be activated, which
 | |
|   # 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
 | |
|     RDoc = ::RDoc::RubygemsHook
 | |
|   end
 | |
| 
 | |
|   Gem.done_installing(&Gem::RDoc.method(:generation_hook))
 | |
| rescue LoadError
 | |
| end
 |