aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xtool/file2lastrev.rb8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 807a04a07f..18b2d19bc1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Dec 24 15:01:38 2015 sorah (Shota Fukumori) <her@sorah.jp>
+
+ * tool/file2lastrev.rb: Fix ArgumentError to work on Ruby 1.8.7.
+
Thu Dec 24 14:44:08 2015 sorah (Shota Fukumori) <her@sorah.jp>
* tool/vcs.rb (IO.popen): Enable on Ruby 1.9 where chdir option is not
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