ruby-changes:62222
From: David <ko1@a...>
Date: Wed, 15 Jul 2020 16:05:38 +0900 (JST)
Subject: [ruby-changes:62222] 2b73f26fde (master): [rubygems/rubygems] Show also output from all commands on rubygems checkout errors
https://git.ruby-lang.org/ruby.git/commit/?id=2b73f26fde From 2b73f26fdefc88d25daf0d712105f4340c239062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sun, 21 Jun 2020 14:44:19 +0200 Subject: [rubygems/rubygems] Show also output from all commands on rubygems checkout errors https://github.com/rubygems/rubygems/commit/1fe24e471d diff --git a/spec/bundler/support/rubygems_version_manager.rb b/spec/bundler/support/rubygems_version_manager.rb index 4c2956c..e89d4ba 100644 --- a/spec/bundler/support/rubygems_version_manager.rb +++ b/spec/bundler/support/rubygems_version_manager.rb @@ -24,6 +24,12 @@ class RubygemsVersionManager https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/rubygems_version_manager.rb#L24 def assert_system_features_not_loaded! at_exit do + errors = if $?.nil? + "" + else + all_commands_output + end + rubylibdir = RbConfig::CONFIG["rubylibdir"] rubygems_path = rubylibdir + "/rubygems" @@ -38,8 +44,10 @@ class RubygemsVersionManager https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/rubygems_version_manager.rb#L44 end if bad_loaded_features.any? - raise "the following features were incorrectly loaded:\n#{bad_loaded_features.join("\n")}" + errors += "the following features were incorrectly loaded:\n#{bad_loaded_features.join("\n")}" end + + raise errors unless errors.empty? end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/