public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rubygem-bson] rawhide: Backport upstream fix for supporting TypeError message change in ruby41
Date: Mon, 26 Oct 2026 14:21:39 GMT	[thread overview]
Message-ID: <179302449963.1.11679700093004850843.rpms-rubygem-bson-ec554076e230@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rubygem-bson
Branch : rawhide
Commit : ec554076e2304feda9ffb8c72fdca7260c13fb51
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-10-26T23:21:24+09:00
Stats  : +31/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rubygem-bson/c/ec554076e2304feda9ffb8c72fdca7260c13fb51?branch=rawhide

Log:
Backport upstream fix for supporting TypeError message change in ruby41

---
diff --git a/bson-pr373-ruby41-TypeError-msg-change.patch b/bson-pr373-ruby41-TypeError-msg-change.patch
new file mode 100644
index 0000000..d477a42
--- /dev/null
+++ b/bson-pr373-ruby41-TypeError-msg-change.patch
@@ -0,0 +1,23 @@
+From 217c0bf04443c0818e50f9984195787f025a1547 Mon Sep 17 00:00:00 2001
+From: Dmitry Rybakov <dmitry.rybakov@mongodb.com>
+Date: Fri, 19 Jun 2026 15:10:43 +0200
+Subject: [PATCH] RUBY-3872 Fix put_double TypeError message regex for Ruby
+ head
+
+---
+ spec/bson/byte_buffer_write_spec.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/spec/bson/byte_buffer_write_spec.rb b/spec/bson/byte_buffer_write_spec.rb
+index 0bff02c24..f39126a5c 100644
+--- a/spec/bson/byte_buffer_write_spec.rb
++++ b/spec/bson/byte_buffer_write_spec.rb
+@@ -508,7 +508,7 @@
+       it 'raises TypeError' do
+         expect do
+           modified
+-        end.to raise_error(TypeError, /no implicit conversion to float from string|ClassCastException:.*RubyString cannot be cast to.*RubyFloat/)
++        end.to raise_error(TypeError, /no implicit conversion to float from string|no implicit conversion of String into Float|ClassCastException:.*RubyString cannot be cast to.*RubyFloat/)
+         expect(buffer.write_position).to eq(0)
+       end
+     end

diff --git a/rubygem-bson.spec b/rubygem-bson.spec
index 8f6300f..f061ab6 100644
--- a/rubygem-bson.spec
+++ b/rubygem-bson.spec
@@ -3,7 +3,7 @@
 
 Name: rubygem-%{gem_name}
 Version: 4.15.0
-Release: 15%{?dist}
+Release: 16%{?dist}
 Summary: Ruby implementation of the BSON specification
 License: Apache-2.0
 # Keep the URL, while different URL is used in the upstream gemspec file.
@@ -14,6 +14,9 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
 # https://github.com/mongodb/bson-ruby/blob/e560ee5c65f9f82d8f3430b5a72d8c9a3f1e0fdb/lib/bson/decimal128.rb#L16
 # https://github.com/mongodb/bson-ruby/pull/340
 Patch0:  bson-pr340-testsuite-explicit-require.patch
+# https://github.com/mongodb/bson-ruby/pull/373
+# TypeError message changed in ruby4.1
+Patch1:  bson-pr373-ruby41-TypeError-msg-change.patch
 Requires: rubygem(bigdecimal)
 # https://github.com/mongodb/bson-ruby/blob/e560ee5c65f9f82d8f3430b5a72d8c9a3f1e0fdb/lib/bson/ext_json.rb#L18
 Requires: rubygem(json)
@@ -50,6 +53,7 @@ Documentation for %{name}.
 %prep
 %setup -q -n %{gem_name}-%{version}
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 # Create the gem as gem install only works on a gem file
@@ -93,6 +97,9 @@ popd
 %{gem_instdir}/spec
 
 %changelog
+* Mon Oct 26 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 4.15.0-16
+- Backport upstream fix for supporting TypeError message change in ruby41
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.0-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-10-26 14:21 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=179302449963.1.11679700093004850843.rpms-rubygem-bson-ec554076e230@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --cc=git-commits@fedoraproject.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