ruby-changes:41198
From: sorah <ko1@a...>
Date: Thu, 24 Dec 2015 15:35:49 +0900 (JST)
Subject: [ruby-changes:41198] sorah:r53270 (trunk): * tool/file2lastrev.rb: Fix ArgumentError to work on Ruby 1.8.7.
sorah 2015-12-24 15:35:39 +0900 (Thu, 24 Dec 2015) New Revision: 53270 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53270 Log: * tool/file2lastrev.rb: Fix ArgumentError to work on Ruby 1.8.7. Modified files: trunk/ChangeLog trunk/tool/file2lastrev.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 53269) +++ ChangeLog (revision 53270) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Dec 24 15:01:38 2015 sorah (Shota Fukumori) <her@s...> + + * tool/file2lastrev.rb: Fix ArgumentError to work on Ruby 1.8.7. + Thu Dec 24 14:44:08 2015 sorah (Shota Fukumori) <her@s...> * tool/vcs.rb (IO.popen): Enable on Ruby 1.9 where chdir option is not Index: tool/file2lastrev.rb =================================================================== --- tool/file2lastrev.rb (revision 53269) +++ tool/file2lastrev.rb (revision 53270) @@ -45,11 +45,11 @@ parser.parse! rescue abort "#{File.basen https://github.com/ruby/ruby/blob/trunk/tool/file2lastrev.rb#L45 @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.basen https://github.com/ruby/ruby/blob/trunk/tool/file2lastrev.rb#L64 ].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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/