diff options
Diffstat (limited to 'spec/bundler/support/artifice/compact_index_wrong_gem_checksum.rb')
-rw-r--r-- | spec/bundler/support/artifice/compact_index_wrong_gem_checksum.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/bundler/support/artifice/compact_index_wrong_gem_checksum.rb b/spec/bundler/support/artifice/compact_index_wrong_gem_checksum.rb deleted file mode 100644 index db4d8e3974..0000000000 --- a/spec/bundler/support/artifice/compact_index_wrong_gem_checksum.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -require File.expand_path("../compact_index", __FILE__) - -Artifice.deactivate - -class CompactIndexWrongGemChecksum < CompactIndexAPI - get "/info/:name" do - etag_response do - name = params[:name] - gem = gems.find {|g| g.name == name } - checksum = ENV.fetch("BUNDLER_SPEC_#{name.upcase}_CHECKSUM") { "ab" * 22 } - versions = gem ? gem.versions : [] - versions.each {|v| v.checksum = checksum } - CompactIndex.info(versions) - end - end -end - -Artifice.activate_with(CompactIndexWrongGemChecksum) |