class Gem::Specification

def self.add_specs *specs

def self.add_specs *specs
  warn "Gem::Specification.add_specs is deprecated and will be removed in Rubygems 3.0" unless Gem::Deprecate.skip
  raise "nil spec!" if specs.any?(&:nil?) # TODO: remove once we're happy
  # TODO: this is much more efficient, but we need the extra checks for now
  # _all.concat specs
  # _resort!
  Gem::Deprecate.skip_during do
    specs.each do |spec| # TODO: slow
      add_spec spec
    end
  end
end