instance method
Gem::BasicSpecification#contains_requirable_file?
contains_requirable_file?(file)
lib/rubygems/basic_specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/basic_specification.rb, line 64
def contains_requirable_file?(file)
if ignored?
if platform == Gem::Platform::RUBY || Gem::Platform.local === platform
warn "Ignoring #{full_name} because its extensions are not built. " \
"Try: gem pristine #{name} --version #{version}"
end
return false
end
is_soext = file.end_with?(".so", ".o")
if is_soext
have_file? file.delete_suffix(File.extname(file)), Gem.dynamic_library_suffixes
else
have_file? file, Gem.suffixes
end
end
Return true if this spec can require file.
See also
#base_dir_priority
#datadir
#base_dir
#default_gem?
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0