Sha256: 4b7c5975448ead74d4c952490216c5c9e9437039235b0d83ccb183b4b206610f

Contents?: true

Size: 852 Bytes

Versions: 5

Compression:

Stored size: 852 Bytes

Contents

# 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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/rdoc-6.10.0/lib/rubygems_plugin.rb
rdoc-6.11.0 lib/rubygems_plugin.rb
rdoc-6.10.0 lib/rubygems_plugin.rb
rdoc-6.9.1 lib/rubygems_plugin.rb
rdoc-6.9.0 lib/rubygems_plugin.rb