From: mark@... Date: 2019-09-02T09:34:38+00:00 Subject: [ruby-core:94740] [Ruby master Bug#16133] 2.5 --> 2.6: backwards incompatible change in MalformedCSVError Issue #16133 has been reported by Spakman (Mark Somerville). ---------------------------------------- Bug #16133: 2.5 --> 2.6: backwards incompatible change in MalformedCSVError https://bugs.ruby-lang.org/issues/16133 * Author: Spakman (Mark Somerville) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- In Ruby 2.5, CSV::MalformedCSVError simply inherited from RuntimeError. In 2.6, it defines its own #new, taking 2 arguments (as opposed to the single argument of RuntimeError). Code explicitly raising new errors of this class outside of the CSV library implementation itself breaks since it doesn't include the second argument (a line number). -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>