Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Commands::ContentsCommand#files_in_default_gem
files_in_default_gem(spec)
lib/rubygems/commands/contents_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/commands/contents_command.rb, line 104
def files_in_default_gem(spec)
spec.files.map do |file|
case file
when %r{\A#{spec.bindir}/}
# $' is POSTMATCH
[RbConfig::CONFIG["bindir"], $']
when /\.so\z/
[RbConfig::CONFIG["archdir"], file]
else
[RbConfig::CONFIG["rubylibdir"], file]
end
end
end
No documentation available