From b85a79107a7e09d389bdc56f2fd175d2916c07fb Mon Sep 17 00:00:00 2001 From: sorah Date: Thu, 24 Dec 2015 06:35:39 +0000 Subject: * tool/file2lastrev.rb: Fix ArgumentError to work on Ruby 1.8.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/file2lastrev.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tool') diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 13f9a3bd1a..79e6c655ac 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -45,11 +45,11 @@ parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}" @output = case @output when :changed, nil - proc {|last, changed| + Proc.new {|last, changed| changed } when :revision_h - proc {|last, changed, modified, branch, title| + Proc.new {|last, changed, modified, branch, title| [ "#define RUBY_REVISION #{changed || 0}", if branch @@ -64,11 +64,11 @@ parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}" ].compact } when :doxygen - proc {|last, changed| + Proc.new {|last, changed| "r#{changed}/r#{last}" } when :modified - proc {|last, changed, modified| + Proc.new {|last, changed, modified| modified.strftime(format) } else -- cgit v1.2.3