From: "Hans de Graaff" <graaff@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/contracts/files/
Date: Sun, 10 Aug 2025 08:40:29 +0000 (UTC) [thread overview]
Message-ID: <1754815204.4e0bf19e6a02643a90a9ba5d9c60928cec36e2e2.graaff@gentoo> (raw)
commit: 4e0bf19e6a02643a90a9ba5d9c60928cec36e2e2
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 10 08:40:04 2025 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Aug 10 08:40:04 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e0bf19e
dev-ruby/contracts: add missing patch file
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
.../contracts/files/contracts-0.17.2-ruby34.patch | 27 ++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/dev-ruby/contracts/files/contracts-0.17.2-ruby34.patch b/dev-ruby/contracts/files/contracts-0.17.2-ruby34.patch
new file mode 100644
index 000000000000..5ea56d616ae6
--- /dev/null
+++ b/dev-ruby/contracts/files/contracts-0.17.2-ruby34.patch
@@ -0,0 +1,27 @@
+From b2ffcca90ffa9fbf4a7293065a8926e7b13ac9f2 Mon Sep 17 00:00:00 2001
+From: PikachuEXE <git@pikachuexe.net>
+Date: Wed, 27 Nov 2024 09:39:28 +0800
+Subject: [PATCH] ! Fix a failed test case in 3.4 due to error message format
+ diff in ruby 3.4
+
+---
+ spec/ruby_version_specific/contracts_spec_2.1.rb | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/spec/ruby_version_specific/contracts_spec_2.1.rb b/spec/ruby_version_specific/contracts_spec_2.1.rb
+index 36b6ede..01180c8 100644
+--- a/spec/ruby_version_specific/contracts_spec_2.1.rb
++++ b/spec/ruby_version_specific/contracts_spec_2.1.rb
+@@ -56,7 +56,11 @@ def complicated(a, b = true, *c, d, e:, f:2, **g, &h)
+ @o.complicated("a", true, :b, :c, 2.0, e: (1..5), f: nil, g: :d) do |x|
+ x
+ end
+- end.to raise_error(ContractError, /Expected: \(KeywordArgs\[{:e=>Range, :f=>Optional\[Num\], :g=>Symbol}\]\)/)
++ end.to raise_error(
++ ContractError,
++ # 3.3- vs 3.4+ error message format
++ /(Expected: \(KeywordArgs\[{:e=>Range, :f=>Optional\[Num\], :g=>Symbol}\]\)|Expected: \(KeywordArgs\[{e: Range, f: Optional\[Num\], g: Symbol}\]\))/,
++ )
+ end
+ end
+ end
reply other threads:[~2025-08-10 8:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1754815204.4e0bf19e6a02643a90a9ba5d9c60928cec36e2e2.graaff@gentoo \
--to=graaff@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox