From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 95E67158015 for ; Tue, 26 Dec 2023 18:57:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1FC82BC015; Tue, 26 Dec 2023 18:57:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2C6E2BC014 for ; Tue, 26 Dec 2023 18:57:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E43CC335DCD for ; Tue, 26 Dec 2023 18:57:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6310414B1 for ; Tue, 26 Dec 2023 18:57:35 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1703617050.275f936a864624e4336ca3035247e73ca995abd5.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/did_you_mean/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/did_you_mean/files/did_you_mean-1.6.3-ruby33.patch X-VCS-Directories: dev-ruby/did_you_mean/files/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 275f936a864624e4336ca3035247e73ca995abd5 X-VCS-Branch: master Date: Tue, 26 Dec 2023 18:57:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 965ebc78-7241-40fb-88a1-24eb555e0564 X-Archives-Hash: 6ce543ce1196787835128ed35a50a51f commit: 275f936a864624e4336ca3035247e73ca995abd5 Author: Hans de Graaff gentoo org> AuthorDate: Tue Dec 26 18:56:55 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Tue Dec 26 18:57:30 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=275f936a dev-ruby/did_you_mean: add missing patch Closes: https://bugs.gentoo.org/920736 Signed-off-by: Hans de Graaff gentoo.org> .../files/did_you_mean-1.6.3-ruby33.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/dev-ruby/did_you_mean/files/did_you_mean-1.6.3-ruby33.patch b/dev-ruby/did_you_mean/files/did_you_mean-1.6.3-ruby33.patch new file mode 100644 index 000000000000..03108b6198f2 --- /dev/null +++ b/dev-ruby/did_you_mean/files/did_you_mean-1.6.3-ruby33.patch @@ -0,0 +1,33 @@ +From ef0c37a35ae1216f3c804daf436254c7dee710bc Mon Sep 17 00:00:00 2001 +From: Yusuke Endoh +Date: Sun, 19 Feb 2023 16:10:30 +0900 +Subject: [PATCH] Support the new message format of NameError in Ruby 3.3 + (#184) + +This change accepts the following change of the message of NameError in +a test. + +https://bugs.ruby-lang.org/issues/18285#note-37 + +``` +old: undefined method `sizee' for # +new: undefined method `sizee' for an instance of File +``` +--- + test/core_ext/test_name_error_extension.rb | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/core_ext/test_name_error_extension.rb b/test/core_ext/test_name_error_extension.rb +index 1fdbd45..c58b784 100644 +--- a/test/core_ext/test_name_error_extension.rb ++++ b/test/core_ext/test_name_error_extension.rb +@@ -49,7 +49,7 @@ def test_correctable_error_objects_are_dumpable + + get_message(error) + +- assert_equal "undefined method `sizee' for #", +- Marshal.load(Marshal.dump(error)).original_message ++ assert_match(/^undefined method `sizee' for /, ++ Marshal.load(Marshal.dump(error)).original_message) + end + end