mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] Also disambiguate gems not in the first Gem.path position
7e6e7ccc58
This commit is contained in:
parent
5c573b7652
commit
c2f8e91815
2 changed files with 14 additions and 2 deletions
|
@ -105,6 +105,13 @@ class Gem::BasicSpecification
|
|||
default_gem? ? 1 : -1
|
||||
end
|
||||
|
||||
##
|
||||
# Gems higher up in +gem_path+ take precedence
|
||||
|
||||
def base_dir_priority(gem_path)
|
||||
gem_path.index(base_dir) || gem_path.size
|
||||
end
|
||||
|
||||
##
|
||||
# Returns full path to the directory where gem's extensions are installed.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue