Skip to content

Commit

Permalink
Fix problems
Browse files Browse the repository at this point in the history
Co-authored-by: mterada1228 <[email protected]>
  • Loading branch information
kou and mterada1228 authored Nov 6, 2024
1 parent e88ba9c commit e9e69f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rdoc/rubygems_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ def setup
module RDoc
class RubygemsHook
def self.default_gem?
File.exist?(File.join(__dir__, "..", "rubygems_plugin.rb"))
!File.exist?(File.join(__dir__, "..", "rubygems_plugin.rb"))
end

def initialize(spec)
@spe = spec
@spec = spec
end

def remove
Expand All @@ -294,7 +294,7 @@ def self.generation_hook installer, specs
return unless default_gem?

# Generate document for compatibility if this is a default gem.
RubyGemsHook.generation_hook(installer, specs)
::RDoc::RubyGemsHook.generate(installer, specs)
end
end
end

0 comments on commit e9e69f3

Please sign in to comment.