From 4dffbb1dd391864202d5487431764fc1c497fbec Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Tue, 18 Jul 2023 14:53:24 +0100 Subject: [PATCH] Declare rdoc as dependency (#648) IRB already has several features that rely on rdoc, such as: - Autocompletion's document dialog - Autocompletion's `PerfectMatchedProc` - The `show_doc` command - Easter egg And we could use its pager more in the future too. So it makes sense to declare rdoc as a dependency instead of relying on the one bundled with Ruby. --- irb.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/irb.gemspec b/irb.gemspec index 29f92b59a..4d47481d8 100644 --- a/irb.gemspec +++ b/irb.gemspec @@ -42,4 +42,5 @@ Gem::Specification.new do |spec| spec.required_ruby_version = Gem::Requirement.new(">= 2.7") spec.add_dependency "reline", ">= 0.3.6" + spec.add_dependency "rdoc", "~> 6.5" end