ruby-changes:72642
From: Akinori <ko1@a...>
Date: Fri, 22 Jul 2022 12:06:30 +0900 (JST)
Subject: [ruby-changes:72642] 388c4e1076 (master): Make Gem::SystemExitException properly exit with a given code
https://git.ruby-lang.org/ruby.git/commit/?id=388c4e1076 From 388c4e1076ac5a58d5008abc8e0a8d017698875a Mon Sep 17 00:00:00 2001 From: Akinori MUSHA <knu@i...> Date: Thu, 22 Oct 2020 03:46:18 +0900 Subject: Make Gem::SystemExitException properly exit with a given code The cause was in how Gem::SystemExitException initializes itself. It didn't pass an exit code to the super method. See the document of SystemExit.new() for details. --- bin/gem | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/gem b/bin/gem index baf607308b..133774ff11 100755 --- a/bin/gem +++ b/bin/gem @@ -7,12 +7,7 @@ https://github.com/ruby/ruby/blob/trunk/bin/gem#L7 require 'rubygems' require 'rubygems/gem_runner' -require 'rubygems/exceptions' args = ARGV.clone -begin - Gem::GemRunner.new.run args -rescue Gem::SystemExitException => e - exit e.exit_code -end +Gem::GemRunner.new.run args -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/