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

Version Path
bundler-1.2.5 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre.8 spec/support/artifice/endpoint_fallback.rb
bundler-1.2.4 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre.7 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre.6 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre.5 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre.4 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre.3 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre.2 spec/support/artifice/endpoint_fallback.rb
bundler-1.3.0.pre spec/support/artifice/endpoint_fallback.rb
bundler-1.2.3 spec/support/artifice/endpoint_fallback.rb
bundler-1.2.2 spec/support/artifice/endpoint_fallback.rb
bundler-1.2.1 spec/support/artifice/endpoint_fallback.rb
bundler-1.2.0 spec/support/artifice/endpoint_fallback.rb
bundler-1.2.0.rc.2 spec/support/artifice/endpoint_fallback.rb
bundler-1.2.0.rc spec/support/artifice/endpoint_fallback.rb
bundler-1.1.5 spec/support/artifice/endpoint_fallback.rb
bundler-1.2.0.pre.1 spec/support/artifice/endpoint_fallback.rb
bundler-1.1.4 spec/support/artifice/endpoint_fallback.rb
rkh-bundler-1.2.0.pre spec/support/artifice/endpoint_fallback.rb