Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::SpecificationRecord.dirs_with_abi
dirs_with_abi(dirs)
lib/rubygems/specification_record.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/specification_record.rb, line 39
def self.dirs_with_abi(dirs)
dirs.flat_map do |dir|
if File.basename(dir) == "specifications"
[dir, File.join(dir, Gem.ruby_abi)]
else
dir
end
end.uniq
end
Ensure ABI-scoped subdirectories are present in dirs. No-op when dirs already includes them (e.g. MRI); expands flat-only dirs