Bug #6392

rdoc -E option does not work

Added by Nobuyoshi Nakada almost 2 years ago. Updated over 1 year ago.

[ruby-core:44796]
Status:Closed
Priority:High
Assignee:Eric Hodel
Category:lib
Target version:2.0.0
ruby -v:r35518 Backport:

Description

=begin
Since RDoc 2.5, ((%--extension%)) option seems not working.

$ rdoc -v -Eja=rdoc README.ja
uh-oh! RDoc had a problem:
No such file or directory - xxx.rdoc

run with --debug for full backtrace

This is because (({RDoc::Parser.zip?})) fails with non-existent file.
Aliasing should be irrelevant to a real file happens to be existing,
and it's odd to assume non-existent file as a zip file unless it has
((%zip%)) (or ((%jar%)), etc) extensions.

=end

0001-rdoc-extension-option-fix.patch Magnifier (1.97 KB) Nobuyoshi Nakada, 05/02/2012 03:29 PM

Associated revisions

Revision 35532
Added by Nobuyoshi Nakada almost 2 years ago

rdoc: --extension option fix

  • lib/rdoc/parser.rb (RDoc.alias_extension): a real file is irrelevant to aliasing. [Bug #6392]
  • lib/rdoc/parser.rb (RDoc.zip?): non-existent file will not be a zip file.
  • lib/rdoc/parser.rb (RDoc.canparseby_name): accept aliased extension file names.

Revision 38690
Added by Eric Hodel over 1 year ago

  • lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDoc bug #164
  • test/rdoc/testrdoccross_reference.rb: Test for above.

  • lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165

  • test/rdoc/testrdocparser_changelog.rb: Test for above.

  • lib/rdoc/parser.rb: Fixed parsing multibyte files with incomplete
    characters at byte 1024. [ruby-trunk - Bug #6393]
    Fixed handling of -E. [ruby-trunk - Bug #6392]

  • test/rdoc/testrdocoptions.rb: Test for above.

  • test/rdoc/testrdocparser.rb: ditto.

  • test/rdoc/testrdocparser_c.rb: ditto.

  • test/rdoc/testrdocparser_changelog.rb: ditto.

  • test/rdoc/testrdocparser_markdown.rb: ditto.

  • test/rdoc/testrdocparser_rd.rb: ditto.

  • test/rdoc/testrdocrdoc.rb: ditto.

  • lib/rdoc/tom_doc.rb: Fixed parsing of [] in TomDoc arguments list.
    RDoc bug #167

  • test/rdoc/testrdoctom_doc.rb: Test for above.

  • lib/rdoc.rb: Update version.

History

#1 Updated by Nobuyoshi Nakada almost 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35532.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


rdoc: --extension option fix

  • lib/rdoc/parser.rb (RDoc.alias_extension): a real file is irrelevant to aliasing. [Bug #6392]
  • lib/rdoc/parser.rb (RDoc.zip?): non-existent file will not be a zip file.
  • lib/rdoc/parser.rb (RDoc.canparseby_name): accept aliased extension file names.

#2 Updated by Nobuyoshi Nakada over 1 year ago

  • Status changed from Closed to Assigned
  • Priority changed from Normal to High

#3 Updated by Nobuyoshi Nakada over 1 year ago

  • % Done changed from 100 to 0

#4 Updated by Eric Hodel over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r38690.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDoc bug #164
  • test/rdoc/testrdoccross_reference.rb: Test for above.

  • lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165

  • test/rdoc/testrdocparser_changelog.rb: Test for above.

  • lib/rdoc/parser.rb: Fixed parsing multibyte files with incomplete
    characters at byte 1024. [ruby-trunk - Bug #6393]
    Fixed handling of -E. [ruby-trunk - Bug #6392]

  • test/rdoc/testrdocoptions.rb: Test for above.

  • test/rdoc/testrdocparser.rb: ditto.

  • test/rdoc/testrdocparser_c.rb: ditto.

  • test/rdoc/testrdocparser_changelog.rb: ditto.

  • test/rdoc/testrdocparser_markdown.rb: ditto.

  • test/rdoc/testrdocparser_rd.rb: ditto.

  • test/rdoc/testrdocrdoc.rb: ditto.

  • lib/rdoc/tom_doc.rb: Fixed parsing of [] in TomDoc arguments list.
    RDoc bug #167

  • test/rdoc/testrdoctom_doc.rb: Test for above.

  • lib/rdoc.rb: Update version.

Also available in: Atom PDF