[前][次][番号順一覧][スレッド一覧]

ruby-changes:66891

From: Nobuyoshi <ko1@a...>
Date: Mon, 26 Jul 2021 15:48:28 +0900 (JST)
Subject: [ruby-changes:66891] b8386f7f7f (master): Prepend DebugSystem to VCS class only

https://git.ruby-lang.org/ruby.git/commit/?id=b8386f7f7f

From b8386f7f7f6d7a7d76481e02d389d0f5211f0f2c Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 26 Jul 2021 15:43:46 +0900
Subject: Prepend DebugSystem to VCS class only

And revert 24e5f1c982966c379220b1bbb26b4e0320180fa1, pepending to
Kernel did not affect the top level methods before 3.0.
---
 tool/lib/vcs.rb    | 3 ---
 tool/make-snapshot | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index b146dfe..5d78d94 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -52,9 +52,6 @@ module DebugSystem https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L52
     ret
   end
 end
-module Kernel
-  prepend(DebugSystem)
-end
 
 class VCS
   prepend(DebugSystem) if defined?(DebugSystem)
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 1e56f94..589d742 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -56,7 +56,7 @@ PACKAGES = { https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L56
   "zip"  => %w".zip     zip -Xqr",
 }
 DEFAULT_PACKAGES = PACKAGES.keys - ["tar"]
-if !$no7z and system("7z", out: IO::NULL, exception: false)
+if !$no7z and system("7z", out: IO::NULL)
   PACKAGES["gzip"] = %w".tar.gz 7z a dummy -tgzip -mx -so"
   PACKAGES["zip"]  = %w".zip    7z a -tzip -l -mx -mtc=off" << {out: IO::NULL}
 elsif gzip = ENV.delete("GZIP")
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]