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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-4.12.0
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • 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.
    • Minor Change

      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.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: