Sha256: 031ed2124042401f239c32fbae590a9784f1a0d895fed0c3735bed96daa41db9

Contents?: true

Size: 578 Bytes

Versions: 28

Compression:

Stored size: 578 Bytes

Contents

require File.expand_path("../endpoint", __FILE__)

Artifice.deactivate

class EndpointExtra < Endpoint
  get "/extra/api/v1/dependencies" do
    halt 404
  end

  get "/extra/specs.4.8.gz" do
    File.read("#{gem_repo2}/specs.4.8.gz")
  end

  get "/extra/quick/Marshal.4.8/:id" do
    redirect "/extra/fetch/actual/gem/#{params[:id]}"
  end

  get "/extra/fetch/actual/gem/:id" do
    File.read("#{gem_repo2}/quick/Marshal.4.8/#{params[:id]}")
  end

  get "/extra/gems/:id" do
    File.read("#{gem_repo2}/gems/#{params[:id]}")
  end
end

Artifice.activate_with(EndpointExtra)

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
bundler-1.2.5 spec/support/artifice/endpoint_extra.rb
bundler-1.2.4 spec/support/artifice/endpoint_extra.rb
bundler-1.2.3 spec/support/artifice/endpoint_extra.rb
bundler-1.2.2 spec/support/artifice/endpoint_extra.rb
bundler-1.2.1 spec/support/artifice/endpoint_extra.rb
bundler-1.2.0 spec/support/artifice/endpoint_extra.rb
bundler-1.2.0.rc.2 spec/support/artifice/endpoint_extra.rb
bundler-1.2.0.rc spec/support/artifice/endpoint_extra.rb
bundler-1.1.5 spec/support/artifice/endpoint_extra.rb
bundler-1.2.0.pre.1 spec/support/artifice/endpoint_extra.rb
bundler-1.1.4 spec/support/artifice/endpoint_extra.rb
rkh-bundler-1.2.0.pre spec/support/artifice/endpoint_extra.rb
bundler-1.2.0.pre spec/support/artifice/endpoint_extra.rb
bundler-1.1.3 spec/support/artifice/endpoint_extra.rb
bundler-1.1.2 spec/support/artifice/endpoint_extra.rb
bundler-1.1.1 spec/support/artifice/endpoint_extra.rb
bundler-1.1.0 spec/support/artifice/endpoint_extra.rb
bundler-1.1.rc.8 spec/support/artifice/endpoint_extra.rb
bundler-1.1.rc.7 spec/support/artifice/endpoint_extra.rb
bundler-1.1.rc.6 spec/support/artifice/endpoint_extra.rb