[rubygems/rubygems] rubocop -a lib/rubygems/specification.rb

https://github.com/rubygems/rubygems/commit/85d60e9886
This commit is contained in:
Hiroshi SHIBATA 2023-03-08 13:20:06 +09:00 коммит произвёл git
Родитель cb3f1f6de8
Коммит ea8b5e7359
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2191,7 +2191,7 @@ class Gem::Specification < Gem::BasicSpecification
# so we find them with heuristic way. We should improve it. # so we find them with heuristic way. We should improve it.
return false if (full_require_paths - [extension_dir]).any? do |path| return false if (full_require_paths - [extension_dir]).any? do |path|
File.exist?(File.join(path, "#{name}.#{RbConfig::CONFIG['DLEXT']}")) || File.exist?(File.join(path, "#{name}.#{RbConfig::CONFIG['DLEXT']}")) ||
!Dir.glob(File.join(path, name, "*.#{RbConfig::CONFIG['DLEXT']}")).empty? !Dir.glob(File.join(path, name, "*.#{RbConfig::CONFIG['DLEXT']}")).empty?
end end
true true