[rubygems/rubygems] rubocop -a lib/rubygems/specification.rb
https://github.com/rubygems/rubygems/commit/85d60e9886
This commit is contained in:
parent
cb3f1f6de8
commit
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user