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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants