Remove leading ./ from filenames so that cross references work OK

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2004-04-04 23:19:58 +00:00
Родитель 5e59422f41
Коммит f02159637a
3 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Mon Apr 5 08:18:23 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/rdoc.rb: Remove leading ./ from file names so that cross
references work properly.
Sun Apr 4 14:01:20 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/options.rb (Options::parse): Allow multiple -x options to RDoc.

Просмотреть файл

@ -166,7 +166,7 @@ module RDoc
next if options.exclude && options.exclude =~ rel_file_name
case type = File.stat(rel_file_name).ftype
when "file"
file_list << rel_file_name if force_doc || ParserFactory.can_parse(rel_file_name)
file_list << rel_file_name.sub(/^\.\//, '') if force_doc || ParserFactory.can_parse(rel_file_name)
when "directory"
next if rel_file_name == "CVS" || rel_file_name == ".svn"
dot_doc = File.join(rel_file_name, DOT_DOC_FILENAME)