Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2504

Ensure return value of all BSON::Document methods is a BSON::Document instance

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: bson-4.12.0
    • Component/s: BSON
    • Labels:
      None
    • Release Notes:
      Hide
      The return value of BSON::Document#slice is now a BSON::Document (providing indifferent access to keys) rather than Hash.

      Since BSON::Document instances return their keys as strings, most applications should not be disrupted by this change.
      Show
      The return value of BSON::Document#slice is now a BSON::Document (providing indifferent access to keys) rather than Hash. Since BSON::Document instances return their keys as strings, most applications should not be disrupted by this change.
    • Backwards Compatibility:
      Minor Change

      Description

      It seems that #slice is the only affected method.

      Prior to https://jira.mongodb.org/browse/RUBY-2487 #except was also affected since ActiveSupport's implementation was used.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oleg.pudeyev Oleg Pudeyev
              Reporter:
              oleg.pudeyev Oleg Pudeyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: