class Api::V1::DependenciesController < Api::BaseController
  def index
    gem_list = (params[:gems] || '').split(',')

    if gem_list.size <= Dependency::LIMIT
      render :text => Marshal.dump(Dependency.for(gem_list))
    else
      render :text   => "Too many gems to resolve, please request less than #{Dependency::LIMIT} gems",
             :status => :request_entity_too_large
    end
  end
end

class Api::V1::DependenciesController < Api::BaseController
  def index
    gem_list = params[:gems].split(',')

    if gem_list.size <= Dependency::LIMIT
      render :text => Marshal.dump(Dependency.for(gem_list))
    else
      render :text   => "Too many gems to resolve, please request less than #{Dependency::LIMIT} gems",
             :status => :request_entity_too_large
    end
  end
end

Revert "Don't throw error if gems param is omitted" until some tests are in place for this
Revert "Don't throw error if gems param is omitted" until some tests are
in place for this

This reverts commit 3d367904b3e9fe341c37b349630c27c581f127fb.
