lib/bundler/source/rubygems.rb in bundler-1.16.2 vs lib/bundler/source/rubygems.rb in bundler-1.16.3
- old
+ new
@@ -136,11 +136,11 @@
else
install_path = rubygems_dir
bin_path = Bundler.system_bindir
end
- Bundler.mkdir_p bin_path unless spec.executables.empty? || Bundler.rubygems.provides?(">= 2.7.5")
+ Bundler.mkdir_p bin_path, :no_sudo => true unless spec.executables.empty? || Bundler.rubygems.provides?(">= 2.7.5")
installed_spec = nil
Bundler.rubygems.preserve_paths do
installed_spec = Bundler::RubyGemsGemInstaller.at(
path,
@@ -336,10 +336,14 @@
remote
end
end
def remove_auth(remote)
- remote.dup.tap {|uri| uri.user = uri.password = nil }.to_s
+ if remote.user || remote.password
+ remote.dup.tap {|uri| uri.user = uri.password = nil }.to_s
+ else
+ remote.to_s
+ end
end
def installed_specs
@installed_specs ||= Index.build do |idx|
Bundler.rubygems.all_specs.reverse_each do |spec|