NameError for Forwardable constant when require mongo/error directly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 2.5.1
    • Affects Version/s: 2.5.0
    • Component/s: None
    • None
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Beginning in 2.5.0, confirmed with Ruby 2.5.0 and Ruby 2.4.1, when requiring mong/error, an exception will be raised that Forwardable isn't defined, breaking backward compatibility.

      This is because the class lib/mongo/error/operation_failure.rb uses Forwardable but does not require it.

      Searching the codebase for all instance of Forwardable, it appears as though this may be a systemic issue.

            Assignee:
            Emily Stolfo (Inactive)
            Reporter:
            Jesse Bowes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: