summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-24 06:35:39 (GMT)
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-24 06:35:39 (GMT)
commitb85a79107a7e09d389bdc56f2fd175d2916c07fb (patch)
tree081551d064e6612109b1f79f4f1ad0d992a646eb /tool
parent53a606a549850ce52384955fcd3a4eaa98d2d919 (diff)
* 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
Diffstat (limited to 'tool')
-rwxr-xr-xtool/file2lastrev.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 13f9a3b..79e6c65 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