Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

hanna --gems fails with 1.9.2 #24

@Quintus

Description

@Quintus

The command to generate gem docs for all installed gems, hanna --gems, fails on 1.9.2 since hanna tries to document rdoc, rake and minitest, which don't behave as normal gems. Example session on a freshly compiled Ruby (no gems installed):

    marvin@ikarus:~$ sudo gem install --no-rdoc hanna
    Successfully installed rdoc-2.3.0
    Successfully installed haml-2.2.24
    Successfully installed hanna-0.1.12
    3 gems installed
    Installing ri documentation for rdoc-2.3.0...
    Installing ri documentation for haml-2.2.24...
    Installing ri documentation for hanna-0.1.12...
    marvin@ikarus:~$ sudo hanna --gems
    Hanna is installing documentation for 5 gems ...
    Installing RDoc documentation for hanna-0.1.12...
    Installing RDoc documentation for haml-2.2.24...
    Could not find main page README.rdoc
    Installing RDoc documentation for minitest-1.6.0...
    /opt/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/doc_manager.rb:182:in `chdir': No such file or directory - /opt/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/minitest-1.6.0 (Errno::ENOENT)
    from /opt/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/doc_manager.rb:182:in `run_rdoc'
    from /opt/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/doc_manager.rb:144:in `install_rdoc'
    from /opt/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/doc_manager.rb:130:in `generate_rdoc'
    from /opt/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/hanna-0.1.12/bin/hanna:74:in `block in <top (required)>'
    from /opt/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/hanna-0.1.12/bin/hanna:73:in `each'
    from /opt/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9.1/gems/hanna-0.1.12/bin/hanna:73:in `<top (required)>'
    from /opt/rubies/ruby-1.9.2-p0/bin/hanna:19:in `load'
    from /opt/rubies/ruby-1.9.2-p0/bin/hanna:19:in `<main>'
    marvin@ikarus:~$ gem list

    *** LOCAL GEMS ***

    haml (2.2.24)
    hanna (0.1.12)
    minitest (1.6.0)
    rake (0.8.7)
    rdoc (2.5.8, 2.3.0)
    marvin@ikarus:~$ 

ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

Marvin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions