End of Life Ruby 3.0 has reached end of life and gets no more fixes. 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.0.5/lib/rubygems/commands/contents_command.rb, line 103
def files_in_default_gem(spec)
spec.files.map do |file|
case file
when /\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