ruby-changes:68434
From: David <ko1@a...>
Date: Wed, 13 Oct 2021 23:30:32 +0900 (JST)
Subject: [ruby-changes:68434] e97c671b3a (master): [rubygems/rubygems] Reuse `sh` helper
https://git.ruby-lang.org/ruby.git/commit/?id=e97c671b3a From e97c671b3a21aeb1b2813f44487b6232cb39a205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Wed, 25 Aug 2021 11:40:01 +0200 Subject: [rubygems/rubygems] Reuse `sh` helper https://github.com/rubygems/rubygems/commit/c218d4d79e --- lib/bundler/gem_helper.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb index 01101205e3..c8fb74072a 100644 --- a/lib/bundler/gem_helper.rb +++ b/lib/bundler/gem_helper.rb @@ -98,10 +98,7 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/gem_helper.rb#L98 built_gem_path ||= build_gem cmd = [*gem_command, "install", built_gem_path.to_s] cmd << "--local" if local - out, status = sh_with_status(cmd) - unless status.success? - raise("Running `#{cmd}` failed with the following output:\n\n#{out}\n") - end + sh(cmd) Bundler.ui.confirm "#{name} (#{version}) installed." end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/