ruby-changes:58132
From: Nobuyoshi <ko1@a...>
Date: Sat, 5 Oct 2019 11:08:48 +0900 (JST)
Subject: [ruby-changes:58132] 871005bdd2 (master): [rubygems/rubygems] Suppress keywords warning in ruby 2.7
https://git.ruby-lang.org/ruby.git/commit/?id=871005bdd2 From 871005bdd2044ef7bd532a7cc4f0756217161f97 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 26 Sep 2019 20:11:24 +0900 Subject: [rubygems/rubygems] Suppress keywords warning in ruby 2.7 https://github.com/rubygems/rubygems/commit/892bfc11fe diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb index 5ca51ff..38303cd 100644 --- a/test/rubygems/test_require.rb +++ b/test/rubygems/test_require.rb @@ -520,7 +520,7 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L520 def test_no_other_behavioral_changes_with_kernel_warn lib = File.realpath("../../../lib", __FILE__) Dir.mktmpdir("warn_test") do |dir| - File.write(dir + "/main.rb", "warn({x:1}, {y:2}, {})\n") + File.write(dir + "/main.rb", "warn({x:1}, {y:2}, [])\n") _, err = capture_subprocess_io do system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb") end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/