From ed5fc66af766f85e876fc9e245b50375d09003ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 13 Jan 2026 16:47:55 +0100 Subject: [PATCH] Remove unused rubygems_plugin.rb The use was dropped with introduction of Ruby 4.0 in c670682a9770b6a17c41d0126b0e97ec28f6d00a --- rubygems_plugin.rb | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 rubygems_plugin.rb diff --git a/rubygems_plugin.rb b/rubygems_plugin.rb deleted file mode 100644 index 55c75da..0000000 --- a/rubygems_plugin.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -# If this file is exist, RDoc generates and removes documents by rubygems plugins. -# -# In follwing cases, -# RubyGems directly exectute RDoc::RubygemsHook.generation_hook and RDoc::RubygemsHook#remove to generate and remove documents. -# -# - RDoc is used as a default gem. -# - RDoc is a old version that doesn't have rubygems_plugin.rb. - -require_relative 'rdoc/rubygems_hook' - -# To install dependency libraries of RDoc, you need to run bundle install. -# At that time, rdoc/markdown is not generated. -# If generate and remove are executed at that time, an error will occur. -# So, we can't register generate and remove to Gem at that time. -begin - require_relative 'rdoc/markdown' -rescue LoadError -else - Gem.done_installing(&RDoc::RubyGemsHook.method(:generate)) - Gem.pre_uninstall(&RDoc::RubyGemsHook.method(:remove)) -end