End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Commands::ContentsCommand#execute
execute
lib/rubygems/commands/contents_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/commands/contents_command.rb, line 65
def execute
@version = options[:version] || Gem::Requirement.default
@spec_dirs = specification_directories
@path_kind = path_description @spec_dirs
names = gem_names
names.each do |name|
found =
if options[:show_install_dir]
gem_install_dir name
else
gem_contents name
end
terminate_interaction 1 unless found || names.length > 1
end
end
No documentation available