diff options
-rw-r--r-- | lib/rubygems/specification.rb | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -771,6 +771,11 @@ class Gem::Specification < Gem::BasicSpecification end private_class_method :clear_load_cache def self.each_gemspec(dirs) # :nodoc: dirs.each do |dir| Gem::Util.glob_files_in_dir("*.gemspec", dir).each do |path| @@ -834,7 +839,7 @@ class Gem::Specification < Gem::BasicSpecification next platforms if platforms.nonzero? default_gem = a.default_gem_priority <=> b.default_gem_priority next default_gem if default_gem.nonzero? - b.base_dir == Gem.path.first ? 1 : -1 end end @@ -910,7 +915,7 @@ class Gem::Specification < Gem::BasicSpecification # Return the directories that Specification uses to find specs. def self.dirs - @@dirs ||= Gem::SpecificationRecord.dirs_from(Gem.path) end ## |