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

ruby-changes:37227

From: nobu <ko1@a...>
Date: Sun, 18 Jan 2015 00:03:20 +0900 (JST)
Subject: [ruby-changes:37227] nobu:r49308 (trunk): file2lastrev.rb: no ellipsis shorter names

nobu	2015-01-18 00:03:07 +0900 (Sun, 18 Jan 2015)

  New Revision: 49308

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

  Log:
    file2lastrev.rb: no ellipsis shorter names
    
    * tool/file2lastrev.rb (revision_h): do not truncate and ellipsis
      names shorter than the limit.

  Modified files:
    trunk/tool/file2lastrev.rb
Index: tool/file2lastrev.rb
===================================================================
--- tool/file2lastrev.rb	(revision 49307)
+++ tool/file2lastrev.rb	(revision 49308)
@@ -62,7 +62,7 @@ when :revision_h https://github.com/ruby/ruby/blob/trunk/tool/file2lastrev.rb#L62
   if branch
     e = '..'
     limit = 16
-    name = branch.sub(/\A(.{0,#{limit-e.size}}).{#{e.size+1},}/o) {$1+e}
+    name = branch.sub(/\A(.{#{limit-e.size}}).{#{e.size+1},}/o) {$1+e}
     puts "#define RUBY_BRANCH_NAME #{name.dump}"
   end
 when :doxygen

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

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