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

ruby-changes:37989

From: usa <ko1@a...>
Date: Tue, 24 Mar 2015 16:49:17 +0900 (JST)
Subject: [ruby-changes:37989] usa:r50070 (trunk): * tool/redmine-backporter.rb: now doesn't required spaces just after

usa	2015-03-24 16:49:02 +0900 (Tue, 24 Mar 2015)

  New Revision: 50070

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

  Log:
    * tool/redmine-backporter.rb: now doesn't required spaces just after
      `!`.

  Modified files:
    trunk/ChangeLog
    trunk/tool/redmine-backporter.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50069)
+++ ChangeLog	(revision 50070)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Mar 24 16:46:02 2015  NAKAMURA Usaku  <usa@r...>
+
+	* tool/redmine-backporter.rb: now doesn't required spaces just after
+	  `!`.
+
 Mon Mar 23 23:18:27 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* dir.c (dir_close): don't raise on dobule close for consistent to
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 50069)
+++ tool/redmine-backporter.rb	(revision 50070)
@@ -558,7 +558,7 @@ while true https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L558
     break
   end
   break unless l
-  cmd, args = l.strip.split(/\s+/, 2)
+  cmd, args = l.strip.split(/\s+|\b/, 2)
   next unless cmd
   if (!args || args.empty?) && /\A\d+\z/ =~ cmd
     args = cmd
@@ -570,7 +570,7 @@ while true https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L570
   cmd = list[cmd]
   begin
     if cmd
-      commands[cmd].call(args.to_s)
+      commands[cmd].call(args)
     else
       raise CommandSyntaxError
     end

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

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