зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] rubocop -a lib/rubygems/specification.rb
https://github.com/rubygems/rubygems/commit/85d60e9886
This commit is contained in:
Родитель
cb3f1f6de8
Коммит
ea8b5e7359
|
@ -2191,7 +2191,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||
# so we find them with heuristic way. We should improve it.
|
||||
return false if (full_require_paths - [extension_dir]).any? do |path|
|
||||
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
|
||||
|
||||
true
|
||||
|
|
Загрузка…
Ссылка в новой задаче