1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

`!`.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-03-24 07:49:02 +00:00
parent d289a78549
commit 8ea6b7a137
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Mar 24 16:46:02 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* tool/redmine-backporter.rb: now doesn't required spaces just after
`!`.
Mon Mar 23 23:18:27 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> Mon Mar 23 23:18:27 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* dir.c (dir_close): don't raise on dobule close for consistent to * dir.c (dir_close): don't raise on dobule close for consistent to

View file

@ -558,7 +558,7 @@ while true
break break
end end
break unless l break unless l
cmd, args = l.strip.split(/\s+/, 2) cmd, args = l.strip.split(/\s+|\b/, 2)
next unless cmd next unless cmd
if (!args || args.empty?) && /\A\d+\z/ =~ cmd if (!args || args.empty?) && /\A\d+\z/ =~ cmd
args = cmd args = cmd
@ -570,7 +570,7 @@ while true
cmd = list[cmd] cmd = list[cmd]
begin begin
if cmd if cmd
commands[cmd].call(args.to_s) commands[cmd].call(args)
else else
raise CommandSyntaxError raise CommandSyntaxError
end end