1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/bundler/support/artifice/compact_index_api_missing.rb
David Rodríguez a9509068db [rubygems/rubygems] Make compact_index_api_missing server more strict
The compact index should not request any marshaled gemspecs whatsoever.

https://github.com/rubygems/rubygems/commit/6dbd44d0c0
2022-08-23 10:45:57 +09:00

13 lines
237 B
Ruby

# frozen_string_literal: true
require_relative "compact_index"
Artifice.deactivate
class CompactIndexApiMissing < CompactIndexAPI
get "/fetch/actual/gem/:id" do
halt 404
end
end
Artifice.activate_with(CompactIndexApiMissing)