avoid-rdoc-hook-when-its-failed-to-load-rdoc-library.patch 688 B

12345678910111213141516171819202122232425
  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.
  5. Fixed #2483
  6. ---
  7. lib/rubygems/rdoc.rb | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/lib/rubygems/rdoc.rb b/lib/rubygems/rdoc.rb
  10. index dfaf7c55bf..4e16fbb86f 100644
  11. --- a/lib/rubygems/rdoc.rb
  12. +++ b/lib/rubygems/rdoc.rb
  13. @@ -18,7 +18,7 @@
  14. module Gem
  15. RDoc = ::RDoc::RubygemsHook
  16. end
  17. +
  18. + Gem.done_installing(&Gem::RDoc.method(:generation_hook))
  19. rescue LoadError
  20. end
  21. -
  22. -Gem.done_installing(&Gem::RDoc.method(:generation_hook))