PHP 8.2.31
Preview: rubygems_plugin.rb Size: 852 B
//proc/thread-self/root/opt/alt/ruby40/share/gems/gems/rdoc-7.0.4/lib/rubygems_plugin.rb

# 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

Directory Contents

Dirs: 1 × Files: 2

Name Size Perms Modified Actions
rdoc DIR
- drwxr-xr-x 2026-06-09 07:03:27
Edit Download
6.41 KB lrw-r--r-- 2026-05-21 12:15:23
Edit Download
852 B lrw-r--r-- 2026-05-21 12:15:23
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).