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