diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-12-22 08:55:10 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-12-22 09:47:48 +0100 |
commit | 1572a3b2c7e3fecc83551e73db5641d33b390498 (patch) | |
tree | 8bac18804f531df4f1a0abcefde7b44a41afd2d8 /dev-ruby/rubygems/files/rubygems-rdoc.patch | |
parent | dev-ruby/bundler: add 2.5.21 (diff) | |
download | gentoo-1572a3b2c7e3fecc83551e73db5641d33b390498.tar.gz gentoo-1572a3b2c7e3fecc83551e73db5641d33b390498.tar.bz2 gentoo-1572a3b2c7e3fecc83551e73db5641d33b390498.zip |
dev-ruby/rubygems: add patch
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rubygems/files/rubygems-rdoc.patch')
-rw-r--r-- | dev-ruby/rubygems/files/rubygems-rdoc.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/rubygems/files/rubygems-rdoc.patch b/dev-ruby/rubygems/files/rubygems-rdoc.patch new file mode 100644 index 000000000000..ea63212c1206 --- /dev/null +++ b/dev-ruby/rubygems/files/rubygems-rdoc.patch @@ -0,0 +1,42 @@ +From 167b713ec4e7546a57a9b1dec4eec282baf26414 Mon Sep 17 00:00:00 2001 +From: Hiroshi SHIBATA <hsbt@ruby-lang.org> +Date: Fri, 13 Dec 2024 15:05:12 +0900 +Subject: [PATCH] Fixed compatibility error with setup command and rdoc plugin + on rubygems + +--- + test/rubygems/test_gem_rdoc.rb | 12 ++++++++---- + 1 file changed, 8 insertions(+), 4 deletions(-) + +diff --git a/test/rubygems/test_gem_rdoc.rb b/test/rubygems/test_gem_rdoc.rb +index 19ccf1e5871b..c4282b309c67 100644 +--- a/test/rubygems/test_gem_rdoc.rb ++++ b/test/rubygems/test_gem_rdoc.rb +@@ -5,8 +5,6 @@ + require "rubygems/rdoc" + + class TestGemRDoc < Gem::TestCase +- Gem::RDoc.load_rdoc +- + def setup + super + +@@ -20,10 +18,16 @@ def setup + + install_gem @a + +- @hook = Gem::RDoc.new @a ++ hook_class = if defined?(RDoc::RubyGemsHook) ++ RDoc::RubyGemsHook ++ else ++ Gem::RDoc ++ end ++ ++ @hook = hook_class.new @a + + begin +- Gem::RDoc.load_rdoc ++ hook_class.load_rdoc + rescue Gem::DocumentError => e + pend e.message + end |