* lib/timeout.rb (module Timeout): Hide internal constants. Patch by

Pete Higgins.  [Ruby 1.9 - Bug #4701]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-05-16 18:34:41 +00:00
Родитель 690a7b67dd
Коммит d764be79b1
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue May 17 03:33:21 2011 Eric Hodel <drbrain@segment7.net>
* 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@ruby-lang.org>
* configure.in, win32/Makefile.sub (RUBY_SO_NAME): add CPU as prefix

Просмотреть файл

@ -29,8 +29,10 @@ module Timeout
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.