Sha256: 8c3a5ae40f0bbe2a14fc9deb75354a60faa1f22e2ad286b550fb0f6f0e171b6e
Contents?: true
Size: 441 Bytes
Versions: 52
Compression:
Stored size: 441 Bytes
Contents
require File.expand_path("../endpoint", __FILE__) Artifice.deactivate class EndpointFallback < Endpoint DEPENDENCY_LIMIT = 60 get "/api/v1/dependencies" do if params[:gems] && params[:gems].size <= DEPENDENCY_LIMIT Marshal.dump(dependencies_for(params[:gems])) else halt 413, "Too many gems to resolve, please request less than #{DEPENDENCY_LIMIT} gems" end end end Artifice.activate_with(EndpointFallback)
Version data entries
52 entries across 52 versions & 2 rubygems