From: "tmm1 (Aman Gupta)" Date: 2014-01-03T19:09:30+09:00 Subject: [ruby-core:59511] [ruby-trunk - Bug #9354][Open] timeout() custom exception class cannot require argument Issue #9354 has been reported by tmm1 (Aman Gupta). ---------------------------------------- Bug #9354: timeout() custom exception class cannot require argument https://bugs.ruby-lang.org/issues/9354 Author: tmm1 (Aman Gupta) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: trunk Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN The following code works on 2.0.0, but raises on 2.1.0: require 'timeout' class MyError < StandardError def initialize(msg) super end end timeout(1, MyError){} $ ruby -v ruby 2.1.0p0-github (2013-12-31 revision 44488) [x86_64-darwin13.0] $ ruby /tmp/test.rb /tmp/test.rb:4:in `initialize': wrong number of arguments (0 for 1) (ArgumentError) The patch attached resolves this issue. -- http://bugs.ruby-lang.org/