You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
We rename Moped::BSON::Extensions::String#to_utf8_binary and
Moped::BSON::Extensions::Symbol#to_utf8_binary in order to avoid
conflicts with bson 2.x and later.
Fixesmongoid#381.
In the process of upgrading the mongo driver I've stumbled upon an incompatibility with moped 1.5.3 and bson 3.1:
String#to_utf8_binary
and uses it in various places. One example is in#_bson_dump
String#to_utf8_binary
So when moped calls its
#to_utf8_binary
it actually callsbson
's#to_utf_binary
and not its own. This causes failures like this:This blocks us from upgrading to mongo driver 2.x while using moped 1.5.
I guess that this also concerns other methods that both gems define in the same namespace, like
#to_bson_cstring
(see here and here).A possible solution would be to update Moped's methods to use a different name, like
to_utf8_binary_moped
maybe.@durran What do you think?
The text was updated successfully, but these errors were encountered: