1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
parent 5e59422f41
commit f02159637a
3 changed files with 7 additions and 2 deletions

View file

@ -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.

View file

@ -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)