ruby-changes:37653
From: usa <ko1@a...>
Date: Wed, 25 Feb 2015 14:21:04 +0900 (JST)
Subject: [ruby-changes:37653] usa:r49734 (ruby_2_0_0): merge revision(s) 49428: [Backport #10694]
usa 2015-02-25 14:20:53 +0900 (Wed, 25 Feb 2015) New Revision: 49734 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49734 Log: merge revision(s) 49428: [Backport #10694] * thread.c: Improve documentation for Thread#value [Bug #10694][ruby-core:67324][ci skip] Modified directories: branches/ruby_2_0_0/ Modified files: branches/ruby_2_0_0/ChangeLog branches/ruby_2_0_0/thread.c branches/ruby_2_0_0/version.h Index: ruby_2_0_0/ChangeLog =================================================================== --- ruby_2_0_0/ChangeLog (revision 49733) +++ ruby_2_0_0/ChangeLog (revision 49734) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1 +Wed Feb 25 14:19:35 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * thread.c: Improve documentation for Thread#value + [Bug #10694][ruby-core:67324][ci skip] + Wed Feb 25 14:18:26 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> * string.c: [DOC] Add missing documentation around String#chomp. Index: ruby_2_0_0/thread.c =================================================================== --- ruby_2_0_0/thread.c (revision 49733) +++ ruby_2_0_0/thread.c (revision 49734) @@ -899,11 +899,14 @@ thread_join_m(int argc, VALUE *argv, VAL https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/thread.c#L899 * call-seq: * thr.value -> obj * - * Waits for <i>thr</i> to complete (via <code>Thread#join</code>) and returns - * its value. + * Waits for +thr+ to complete, using #join, and returns its value or raises + * the exception which terminated the thread. * * a = Thread.new { 2 + 2 } * a.value #=> 4 + * + * b = Thread.new { raise 'something went wrong' } + * b.value #=> RuntimeError: something went wrong */ static VALUE Index: ruby_2_0_0/version.h =================================================================== --- ruby_2_0_0/version.h (revision 49733) +++ ruby_2_0_0/version.h (revision 49734) @@ -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 "2015-02-25" -#define RUBY_PATCHLEVEL 636 +#define RUBY_PATCHLEVEL 637 #define RUBY_RELEASE_YEAR 2015 #define RUBY_RELEASE_MONTH 2 Property changes on: ruby_2_0_0 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r49428 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/