ruby-changes:37652
From: usa <ko1@a...>
Date: Wed, 25 Feb 2015 14:18:54 +0900 (JST)
Subject: [ruby-changes:37652] usa:r49733 (ruby_2_0_0): merge revision(s) 48747: [Backport #10582]
usa 2015-02-25 14:18:39 +0900 (Wed, 25 Feb 2015) New Revision: 49733 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49733 Log: merge revision(s) 48747: [Backport #10582] * string.c: [DOC] Add missing documentation around String#chomp. Patchby @stderr [ci skip][fix GH-780] Modified directories: branches/ruby_2_0_0/ Modified files: branches/ruby_2_0_0/ChangeLog branches/ruby_2_0_0/string.c branches/ruby_2_0_0/version.h Index: ruby_2_0_0/ChangeLog =================================================================== --- ruby_2_0_0/ChangeLog (revision 49732) +++ ruby_2_0_0/ChangeLog (revision 49733) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1 +Wed Feb 25 14:18:26 2015 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * string.c: [DOC] Add missing documentation around String#chomp. + Patchby @stderr [ci skip][fix GH-780] + Sat Feb 21 09:48:48 2015 NARUSE, Yui <naruse@r...> * lib/uri/generic.rb (URI::Generic.build): Index: ruby_2_0_0/string.c =================================================================== --- ruby_2_0_0/string.c (revision 49732) +++ ruby_2_0_0/string.c (revision 49733) @@ -6817,15 +6817,18 @@ rb_str_chomp_bang(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/string.c#L6817 * from the end of <i>str</i> (if present). If <code>$/</code> has not been * changed from the default Ruby record separator, then <code>chomp</code> also * removes carriage return characters (that is it will remove <code>\n</code>, - * <code>\r</code>, and <code>\r\n</code>). + * <code>\r</code>, and <code>\r\n</code>). If <code>$/</code> is an empty string, + * it will remove all trailing newlines from the string. * - * "hello".chomp #=> "hello" - * "hello\n".chomp #=> "hello" - * "hello\r\n".chomp #=> "hello" - * "hello\n\r".chomp #=> "hello\n" - * "hello\r".chomp #=> "hello" - * "hello \n there".chomp #=> "hello \n there" - * "hello".chomp("llo") #=> "he" + * "hello".chomp #=> "hello" + * "hello\n".chomp #=> "hello" + * "hello\r\n".chomp #=> "hello" + * "hello\n\r".chomp #=> "hello\n" + * "hello\r".chomp #=> "hello" + * "hello \n there".chomp #=> "hello \n there" + * "hello".chomp("llo") #=> "he" + * "hello\r\n\r\n".chomp('') #=> "hello" + * "hello\r\n\r\r\n".chomp('') #=> "hello\r\n\r" */ static VALUE Index: ruby_2_0_0/version.h =================================================================== --- ruby_2_0_0/version.h (revision 49732) +++ ruby_2_0_0/version.h (revision 49733) @@ -1,10 +1,10 @@ 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-21" -#define RUBY_PATCHLEVEL 635 +#define RUBY_RELEASE_DATE "2015-02-25" +#define RUBY_PATCHLEVEL 636 #define RUBY_RELEASE_YEAR 2015 #define RUBY_RELEASE_MONTH 2 -#define RUBY_RELEASE_DAY 21 +#define RUBY_RELEASE_DAY 25 #include "ruby/version.h" Property changes on: ruby_2_0_0 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r48747 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/