ruby-changes:64497
From: Hiroshi <ko1@a...>
Date: Wed, 23 Dec 2020 13:45:04 +0900 (JST)
Subject: [ruby-changes:64497] f14aaa2b12 (master): Guard < Ruby 3.0 for the repositories of default gems.
https://git.ruby-lang.org/ruby.git/commit/?id=f14aaa2b12 From f14aaa2b1282d6dea9fad3d050e65828f1e269e1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Tue, 22 Dec 2020 16:09:52 +0900 Subject: Guard < Ruby 3.0 for the repositories of default gems. diff --git a/tool/lib/envutil.rb b/tool/lib/envutil.rb index 323d710..63e23ba 100644 --- a/tool/lib/envutil.rb +++ b/tool/lib/envutil.rb @@ -53,7 +53,7 @@ module EnvUtil https://github.com/ruby/ruby/blob/trunk/tool/lib/envutil.rb#L53 @original_internal_encoding = Encoding.default_internal @original_external_encoding = Encoding.default_external @original_verbose = $VERBOSE - @original_warning = %i[deprecated experimental].to_h {|i| [i, Warning[i]]} + @original_warning = %i[deprecated experimental].to_h {|i| [i, Warning[i]]} if RUBY_VERSION > "2.7" end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/