class YARD::CLI::Gems

def add_gems(gems)

def add_gems(gems)
  0.step(gems.size - 1, 2) do |index|
    gem = gems[index]
    ver_require = gems[index + 1] || ">= 0"
    specs = YARD::GemIndex.find_all_by_name(gem, ver_require)
    if specs.empty?
      log.warn "#{gem} #{ver_require} could not be found in RubyGems index"
    else
      @gems += specs
    end
  end
end