[前][次][番号順一覧][スレッド一覧]

ruby-changes:28244

From: nagachika <ko1@a...>
Date: Mon, 15 Apr 2013 00:20:51 +0900 (JST)
Subject: [ruby-changes:28244] nagachika:r40296 (ruby_2_0_0): merge revision(s) 40015: [Backport #8197]

nagachika	2013-04-15 00:20:33 +0900 (Mon, 15 Apr 2013)

  New Revision: 40296

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40296

  Log:
    merge revision(s) 40015: [Backport #8197]
    
    doumentation by @toolmantim [GH fixes #270]
    
     * timeout.rb: Document Timeout::timeout 0 and nil argument behavior

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/lib/timeout.rb
    branches/ruby_2_0_0/version.h

Index: ruby_2_0_0/lib/timeout.rb
===================================================================
--- ruby_2_0_0/lib/timeout.rb	(revision 40295)
+++ ruby_2_0_0/lib/timeout.rb	(revision 40296)
@@ -33,11 +33,12 @@ module Timeout https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/lib/timeout.rb#L33
   CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0
   # :startdoc:
 
-  # Perform an operation in a block, timing it out if it takes longer
-  # than +sec+ seconds to complete.
+  # Perform an operation in a block, raising an error if it takes longer than
+  # +sec+ seconds to complete.
   #
   # +sec+:: Number of seconds to wait for the block to terminate. Any number
-  #         may be used, including Floats to specify fractional seconds.
+  #         may be used, including Floats to specify fractional seconds. A
+  #         value of 0 or +nil+ will execute the block without any timeout.
   # +klass+:: Exception Class to raise if the block fails to terminate
   #           in +sec+ seconds.  Omitting will use the default, Timeout::Error
   #
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 40295)
+++ ruby_2_0_0/version.h	(revision 40296)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2013-04-15"
-#define RUBY_PATCHLEVEL 131
+#define RUBY_PATCHLEVEL 132
 
 #define RUBY_RELEASE_YEAR 2013
 #define RUBY_RELEASE_MONTH 4

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r40015


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]