public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-bson] rawhide: Backport upstream fix for supporting TypeError message change in ruby41
@ 2026-10-26 14:21 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-10-26 14:21 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-26 14:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 14:21 [rpms/rubygem-bson] rawhide: Backport upstream fix for supporting TypeError message change in ruby41 Mamoru TASAKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox