mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/options.rb (Options::check_diagram): dot -V output
changed. [ ruby-Bugs-11978 ], Thanks Florian Frank. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b268cdbca
commit
c5e449d866
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Sep 23 05:42:35 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/options.rb (Options::check_diagram): dot -V output
|
||||
changed. [ ruby-Bugs-11978 ], Thanks Florian Frank.
|
||||
|
||||
Sat Sep 22 06:02:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/optparse.rb (OptionParser::List::summarize): use each_line if
|
||||
|
|
|
@ -550,12 +550,12 @@ class Options
|
|||
ver = nil
|
||||
IO.popen("dot -V 2>&1") do |io|
|
||||
ver = io.read
|
||||
if ver =~ /dot\s+version(?:\s+gviz)?\s+(\d+)\.(\d+)/
|
||||
if ver =~ /dot.+version(?:\s+gviz)?\s+(\d+)\.(\d+)/
|
||||
ok = ($1.to_i > 1) || ($1.to_i == 1 && $2.to_i >= 8)
|
||||
end
|
||||
end
|
||||
unless ok
|
||||
if ver =~ /^dot version/
|
||||
if ver =~ /^dot.+version/
|
||||
$stderr.puts "Warning: You may need dot V1.8.6 or later to use\n",
|
||||
"the --diagram option correctly. You have:\n\n ",
|
||||
ver,
|
||||
|
|
Loading…
Reference in a new issue