Sha256: f6d10067100560a6813fb132b98af9d6fb22584a46cd483f0517a7bc07edfb85

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

# frozen_string_literal: true

require_relative "../rubygems"

begin
  require "rdoc/rubygems_hook"
  module Gem
    RDoc = ::RDoc::RubygemsHook

    ##
    # Returns whether RDoc defines its own install hooks through a RubyGems
    # plugin. This and whatever is guarded by it can be removed once no
    # supported Ruby ships with RDoc older than 6.9.0.

    def self.rdoc_hooks_defined_via_plugin?
      Gem::Version.new(::RDoc::VERSION) >= Gem::Version.new("6.9.0")
    end
  end

  Gem.done_installing(&Gem::RDoc.method(:generation_hook)) unless Gem.rdoc_hooks_defined_via_plugin?
rescue LoadError
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubygems-update-3.6.5 lib/rubygems/rdoc.rb
rubygems-update-3.6.4 lib/rubygems/rdoc.rb
rubygems-update-3.6.3 lib/rubygems/rdoc.rb
rubygems-update-3.6.2 lib/rubygems/rdoc.rb