mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
parent
32a555ea53
commit
6b6fd16219
2 changed files with 16 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue