mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Sychronize with rubygems/rubygems repo
This commit is contained in:
parent
89486c79bb
commit
10c256f98f
5 changed files with 27 additions and 14 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue