[rubygems/rubygems] Fix typo

https://github.com/rubygems/rubygems/commit/19a0e3730c
This commit is contained in:
David Rodríguez 2024-06-11 18:37:53 +02:00 committed by git
parent 32a555ea53
commit 6b6fd16219
2 changed files with 16 additions and 1 deletions

View File

@ -75,7 +75,7 @@ module Bundler
end end
def info(name) def info(name)
Bundler::CompactIndexClient.debug { "info(#{names})" } Bundler::CompactIndexClient.debug { "info(#{name})" }
@parser.info(name) @parser.info(name)
end end

View File

@ -15,6 +15,21 @@ RSpec.describe "compact index api" do
expect(the_bundle).to include_gems "rack 1.0.0" expect(the_bundle).to include_gems "rack 1.0.0"
end end
it "has a debug mode" do
gemfile <<-G
source "#{source_uri}"
gem "rack"
G
bundle :install, artifice: "compact_index", env: { "DEBUG_COMPACT_INDEX" => "true" }
expect(out).to include("Fetching gem metadata from #{source_uri}")
expect(err).to include("[Bundler::CompactIndexClient] available?")
expect(err).to include("[Bundler::CompactIndexClient] fetching versions")
expect(err).to include("[Bundler::CompactIndexClient] info(rack)")
expect(err).to include("[Bundler::CompactIndexClient] fetching info/rack")
expect(the_bundle).to include_gems "rack 1.0.0"
end
it "should URI encode gem names" do it "should URI encode gem names" do
gemfile <<-G gemfile <<-G
source "#{source_uri}" source "#{source_uri}"