* [gentoo-commits] repo/gentoo:master commit in: dev-ruby/did_you_mean/files/
@ 2023-12-26 18:57 Hans de Graaff
0 siblings, 0 replies; only message in thread
From: Hans de Graaff @ 2023-12-26 18:57 UTC (permalink / raw
To: gentoo-commits
commit: 275f936a864624e4336ca3035247e73ca995abd5
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 26 18:56:55 2023 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> 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 <graaff <AT> 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 <mame@ruby-lang.org>
+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 #<File:...>
+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 #<File:test_name_error_extension.rb (closed)>",
+- Marshal.load(Marshal.dump(error)).original_message
++ assert_match(/^undefined method `sizee' for /,
++ Marshal.load(Marshal.dump(error)).original_message)
+ end
+ end
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-26 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-26 18:57 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/did_you_mean/files/ Hans de Graaff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox