Skip to content

Commit

Permalink
When rdoc/markdown isn't created generate and remove weren't ex…
Browse files Browse the repository at this point in the history
…ecuted.
  • Loading branch information
mterada1228 committed Aug 7, 2024
1 parent d205aa2 commit 20a96f7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions lib/rubygems_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
require 'rubygems/user_interaction'
require 'fileutils'

require_relative './rdoc/markdown' # For JRuby
# raise 'STOP'

# require_relative './rdoc/markdown' # For JRuby

# pp $LOADED_FEATURES

require_relative './rdoc'

##
Expand Down Expand Up @@ -265,5 +270,11 @@ def setup

end

Gem.done_installing(&RDoc::RubyGemsHook.method(:generate))
Gem.pre_uninstall(&RDoc::RubyGemsHook.method(:remove))
# TODO: コメントを追加して CI 通るか確認する
begin
require_relative 'rdoc/markdown'
rescue LoadError
else
Gem.done_installing(&RDoc::RubyGemsHook.method(:generate))
Gem.pre_uninstall(&RDoc::RubyGemsHook.method(:remove))
end

0 comments on commit 20a96f7

Please sign in to comment.