Skip to content

RUBY-3872 Fix put_double TypeError message regex for Ruby head#373

Merged
comandeo-mongo merged 1 commit into
mongodb:masterfrom
comandeo-mongo:RUBY-3872
Jun 23, 2026
Merged

RUBY-3872 Fix put_double TypeError message regex for Ruby head#373
comandeo-mongo merged 1 commit into
mongodb:masterfrom
comandeo-mongo:RUBY-3872

Conversation

@comandeo-mongo

Copy link
Copy Markdown
Contributor

Changes

Update the put_double TypeError message regex in spec/bson/byte_buffer_write_spec.rb to accept both the old and new Ruby TypeError wording.

Ruby head changed the message from:

  • no implicit conversion to float from string (Ruby ≤ 3.4)

to:

  • no implicit conversion of String into Float (Ruby head)

The regex now covers both MRI forms plus the existing JRuby ClassCastException form. No production code changes.

Files changed

  • spec/bson/byte_buffer_write_spec.rb — regex on line 511 extended

Test plan

  • bundle exec rspec spec/bson/byte_buffer_write_spec.rb — 87 examples, 0 failures

Jira: https://jira.mongodb.org/browse/RUBY-3872

@comandeo-mongo comandeo-mongo marked this pull request as ready for review June 19, 2026 13:32
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner June 19, 2026 13:32
@comandeo-mongo comandeo-mongo requested a review from jamis June 19, 2026 13:32
@comandeo-mongo comandeo-mongo merged commit f74652c into mongodb:master Jun 23, 2026
51 checks passed
jamis pushed a commit to jamis/bson-ruby that referenced this pull request Jun 26, 2026
jamis added a commit that referenced this pull request Jun 29, 2026
…lready an ObjectId (#374)

* RUBY-3667 BSON::ObjectId(object_id) returns its argument when it is already an ObjectId

* grammar fix

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* RUBY-3869 Validate Binary subtype 0x02 outer/inner length on decode (#370)

* RUBY-3872 Fix put_double TypeError message regex for Ruby head (#373)

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Dmitry Rybakov <160598371+comandeo-mongo@users.noreply.github.com>
@jamis jamis added the bug Fixes a bug, with no new features or broken compatibility label Jul 1, 2026
@jamis jamis mentioned this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes a bug, with no new features or broken compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants