Return an Array of Specifications contained
within the gem_home we’ll be installing into.
# File lib/rubygems/installer.rb, line 364
def installed_specs
@specs ||= begin
specs = []
Dir[File.join(gem_home, "specifications", "*.gemspec")].each do |path|
spec = Gem::Specification.load path.untaint
specs << spec if spec
end
specs
end
end