aboutsummaryrefslogtreecommitdiffstats
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-xtool/file2lastrev.rb8
1 files changed, 4 insertions, 4 deletions
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