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

Version Path
bundler-1.7.15 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.14 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.13 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.12 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.11 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.10 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.9 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.8 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.7 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.6 spec/support/artifice/endpoint_fallback.rb
bundler-1.6.9 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.5 spec/support/artifice/endpoint_fallback.rb
bundler-1.6.8 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.4 spec/support/artifice/endpoint_fallback.rb
bundler-1.6.7 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.3 spec/support/artifice/endpoint_fallback.rb
bundler-1.6.6 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.2 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.1 spec/support/artifice/endpoint_fallback.rb
bundler-1.7.1.pre.3 spec/support/artifice/endpoint_fallback.rb