[rubygems/rubygems] util/rubocop -A --only Style/ClassCheck

1c3356a872
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 13:08:50 +09:00
parent 567db6064b
commit 0b632b9cdd
13 changed files with 19 additions and 19 deletions

View file

@ -36,7 +36,7 @@ module Kernel
skip_list = (ENV["GEM_SKIP"] || "").split(/:/)
raise Gem::LoadError, "skipping #{gem_name}" if skip_list.include? gem_name
if gem_name.kind_of? Gem::Dependency
if gem_name.is_a? Gem::Dependency
unless Gem::Deprecate.skip
warn "#{Gem.location_of_caller.join ":"}:Warning: Kernel.gem no longer "\
"accepts a Gem::Dependency object, please pass the name "\