Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::SpecificationRecord.abi_scoped_spec_dir?
abi_scoped_spec_dir?(dir)
lib/rubygems/specification_record.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification_record.rb, line 21
def self.abi_scoped_spec_dir?(dir)
Gem::ContentAddress.valid_ruby_abi?(File.basename(dir)) &&
File.basename(File.dirname(dir)) == "specifications"
end
Whether dir is an ABI-scoped spec dir (.../specifications/<ruby_abi>). Requires the parent to be named specifications to avoid false positives.