ruby-changes:40161
From: hsbt <ko1@a...>
Date: Fri, 23 Oct 2015 16:03:48 +0900 (JST)
Subject: [ruby-changes:40161] hsbt:r52242 (trunk): * file.c: fix indent style. [fix GH-977]
hsbt 2015-10-23 16:03:34 +0900 (Fri, 23 Oct 2015) New Revision: 52242 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52242 Log: * file.c: fix indent style. [fix GH-977] * test/ruby/test_string.rb: indent. [fix GH-975] [ci skip] These patches are contributed from @yui-knk Modified files: trunk/ChangeLog trunk/file.c trunk/test/ruby/test_string.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 52241) +++ ChangeLog (revision 52242) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Oct 23 16:03:26 2015 SHIBATA Hiroshi <hsbt@r...> + + * file.c: fix indent style. [fix GH-977] + * test/ruby/test_string.rb: indent. [fix GH-975] + [ci skip] These patches are contributed from @yui-knk + Fri Oct 23 15:46:09 2015 SHIBATA Hiroshi <hsbt@r...> * string.c: Added method signature to include hash. It's inconsistency Index: test/ruby/test_string.rb =================================================================== --- test/ruby/test_string.rb (revision 52241) +++ test/ruby/test_string.rb (revision 52242) @@ -281,10 +281,10 @@ class TestString < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L281 def casetest(a, b, rev=false) msg = proc {"#{a} should#{' not' if rev} match #{b}"} case a - when b - assert(!rev, msg) - else - assert(rev, msg) + when b + assert(!rev, msg) + else + assert(rev, msg) end end Index: file.c =================================================================== --- file.c (revision 52241) +++ file.c (revision 52242) @@ -4259,7 +4259,7 @@ ruby_enc_find_extname(const char *name, https://github.com/ruby/ruby/blob/trunk/file.c#L4259 * File.extname("test.rb") #=> ".rb" * File.extname("a/b/d/test.rb") #=> ".rb" * File.extname(".a/b/d/test.rb") #=> ".rb" - * File.extname("foo.") #=> "" + * File.extname("foo.") #=> "" * File.extname("test") #=> "" * File.extname(".profile") #=> "" * File.extname(".profile.sh") #=> ".sh" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/