Skip to content

Commit e9e69f3

Browse files
koumterada1228
andauthored
Fix problems
Co-authored-by: mterada1228 <[email protected]>
1 parent e88ba9c commit e9e69f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rdoc/rubygems_hook.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ def setup
273273
module RDoc
274274
class RubygemsHook
275275
def self.default_gem?
276-
File.exist?(File.join(__dir__, "..", "rubygems_plugin.rb"))
276+
!File.exist?(File.join(__dir__, "..", "rubygems_plugin.rb"))
277277
end
278278

279279
def initialize(spec)
280-
@spe = spec
280+
@spec = spec
281281
end
282282

283283
def remove
@@ -294,7 +294,7 @@ def self.generation_hook installer, specs
294294
return unless default_gem?
295295

296296
# Generate document for compatibility if this is a default gem.
297-
RubyGemsHook.generation_hook(installer, specs)
297+
::RDoc::RubyGemsHook.generate(installer, specs)
298298
end
299299
end
300300
end

0 commit comments

Comments
 (0)