mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RubyGems r1601. [ruby-core:15381].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c12b289362
commit
5d613c83cc
26 changed files with 165 additions and 85 deletions
|
@ -46,7 +46,7 @@ module Gem
|
|||
if deprecated.empty?
|
||||
from_gems_in(*installed_spec_directories)
|
||||
else
|
||||
from_gems_in(*deprecated)
|
||||
from_gems_in(*deprecated) # HACK warn
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -118,6 +118,7 @@ module Gem
|
|||
def load_gems_in(*spec_dirs)
|
||||
@gems.clear
|
||||
specs = Dir.glob File.join("{#{spec_dirs.join(',')}}", "*.gemspec")
|
||||
|
||||
specs.each do |file_name|
|
||||
gemspec = self.class.load_specification(file_name.untaint)
|
||||
add_spec(gemspec) if gemspec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue