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

NameError for Forwardable constant when require mongo/error directly

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

      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 Emily Stolfo
            Reporter:
            jessebs Jesse Bowes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: