Sychronize with rubygems/rubygems repo

This commit is contained in:
David Rodríguez 2024-05-31 17:30:26 +02:00 committed by Koichi Sasada
parent 89486c79bb
commit 10c256f98f
5 changed files with 27 additions and 14 deletions

View file

@ -143,6 +143,19 @@ class Gem::BasicSpecification
end
end
##
# Returns the full name of this Gem (see `Gem::BasicSpecification#full_name`).
# Information about where the gem is installed is also included if not
# installed in the default GEM_HOME.
def full_name_with_location
if base_dir != Gem.dir
"#{full_name} in #{base_dir}"
else
full_name
end
end
##
# Full paths in the gem to add to <code>$LOAD_PATH</code> when this gem is
# activated.