dragora-installer: Auto determine height for initial dialog
[dragora.git] / patches / ruby / avoid-rdoc-hook-when-its-failed-to-load-rdoc-library.patch
blob690d245a57b43516b7e89e2b7799c7621eafc0ae
1 From c16675582a68800ef17b6056110e0a8bcdb38b55 Mon Sep 17 00:00:00 2001
2 From: SHIBATA Hiroshi <hsbt@ruby-lang.org>
3 Date: Tue, 22 Jan 2019 09:37:23 +0900
4 Subject: [PATCH] Avoid rdoc hook when it's failed to load rdoc library.
6 Fixed #2483
7 ---
8 lib/rubygems/rdoc.rb | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
11 diff --git a/lib/rubygems/rdoc.rb b/lib/rubygems/rdoc.rb
12 index dfaf7c55bf..4e16fbb86f 100644
13 --- a/lib/rubygems/rdoc.rb
14 +++ b/lib/rubygems/rdoc.rb
15 @@ -18,7 +18,7 @@
16 module Gem
17 RDoc = ::RDoc::RubygemsHook
18 end
20 + Gem.done_installing(&Gem::RDoc.method(:generation_hook))
21 rescue LoadError
22 end
24 -Gem.done_installing(&Gem::RDoc.method(:generation_hook))