mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
53a606a549
commit
b85a79107a
2 changed files with 8 additions and 4 deletions
|
@ -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>
|
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
|
* tool/vcs.rb (IO.popen): Enable on Ruby 1.9 where chdir option is not
|
||||||
|
|
|
@ -45,11 +45,11 @@ parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}"
|
||||||
@output =
|
@output =
|
||||||
case @output
|
case @output
|
||||||
when :changed, nil
|
when :changed, nil
|
||||||
proc {|last, changed|
|
Proc.new {|last, changed|
|
||||||
changed
|
changed
|
||||||
}
|
}
|
||||||
when :revision_h
|
when :revision_h
|
||||||
proc {|last, changed, modified, branch, title|
|
Proc.new {|last, changed, modified, branch, title|
|
||||||
[
|
[
|
||||||
"#define RUBY_REVISION #{changed || 0}",
|
"#define RUBY_REVISION #{changed || 0}",
|
||||||
if branch
|
if branch
|
||||||
|
@ -64,11 +64,11 @@ parser.parse! rescue abort "#{File.basename(Program)}: #{$!}\n#{parser}"
|
||||||
].compact
|
].compact
|
||||||
}
|
}
|
||||||
when :doxygen
|
when :doxygen
|
||||||
proc {|last, changed|
|
Proc.new {|last, changed|
|
||||||
"r#{changed}/r#{last}"
|
"r#{changed}/r#{last}"
|
||||||
}
|
}
|
||||||
when :modified
|
when :modified
|
||||||
proc {|last, changed, modified|
|
Proc.new {|last, changed, modified|
|
||||||
modified.strftime(format)
|
modified.strftime(format)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue