ruby-changes:19551
From: drbrain <ko1@a...>
Date: Tue, 17 May 2011 03:36:28 +0900 (JST)
Subject: [ruby-changes:19551] drbrain:r31592 (trunk): * lib/timeout.rb (module Timeout): Hide internal constants. Patch by
drbrain 2011-05-17 03:34:41 +0900 (Tue, 17 May 2011) New Revision: 31592 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31592 Log: * lib/timeout.rb (module Timeout): Hide internal constants. Patch by Pete Higgins. [Ruby 1.9 - Bug #4701] Modified files: trunk/ChangeLog trunk/lib/timeout.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31591) +++ ChangeLog (revision 31592) @@ -1,3 +1,8 @@ +Tue May 17 03:33:21 2011 Eric Hodel <drbrain@s...> + + * lib/timeout.rb (module Timeout): Hide internal constants. Patch by + Pete Higgins. [Ruby 1.9 - Bug #4701] + Mon May 16 11:21:09 2011 NAKAMURA Usaku <usa@r...> * configure.in, win32/Makefile.sub (RUBY_SO_NAME): add CPU as prefix Index: lib/timeout.rb =================================================================== --- lib/timeout.rb (revision 31591) +++ lib/timeout.rb (revision 31592) @@ -29,8 +29,10 @@ class ExitException < ::Exception # :nodoc: end + # :stopdoc: THIS_FILE = /\A#{Regexp.quote(__FILE__)}:/o CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0 + # :startdoc: # Executes the method's block. If the block execution terminates before # +sec+ seconds has passed, it returns the result value of the block. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/