summaryrefslogtreecommitdiff
path: root/spec/bundler/support/artifice/compact_index_redirects.rb
blob: f7ba3932392f7f8af206b46208dc92aa419d1cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require_relative "helpers/compact_index"

class CompactIndexRedirect < CompactIndexAPI
  get "/fetch/actual/gem/:id" do
    redirect "/fetch/actual/gem/#{params[:id]}"
  end

  get "/versions" do
    status 404
  end

  get "/api/v1/dependencies" do
    status 404
  end
end

require_relative "helpers/artifice"

Artifice.activate_with(CompactIndexRedirect)