Forum: RSpec Problems with gem rdoc rspec

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F0987c97234fa9c6b26f796bdbdab037?d=identicon&s=25 Andrew Vit (Guest)
on 2009-03-24 00:30
(Received via mailing list)
My gems, e.g. rspec, gets installed in:
/Library/Ruby/Gems/1.8/gems/rspec-1.2.2

(Note the extra /gems/ subdirectory)

When I run "gem rdoc rspec" the output is empty and the Files section
has errors:

file not found -/Library/Ruby/Gems/1.8/rspec-1.2.2/rdoc/License.txt-
file not found -/Library/Ruby/Gems/1.8/rspec-1.2.2/rdoc/Manifest.txt-
file not found -/Library/Ruby/Gems/1.8/rspec-1.2.2/rdoc/examples/
failing/README.txt-
file not found -/Library/Ruby/Gems/1.8/rspec-1.2.2/rdoc/TODO.txt-

(Those are the only files in there. Note the lack of /gems/
subdirectory)

Do I need to add /gems/ to my GEM_PATH? I didn't think that's how it
works, and my other rubygems build their rdocs fine.

Or do I need to set a different path variable to set this up?
(GEM_HOME? I tried that and it didn't seem to help.)

Thanks for your help,
Andrew Vit


My environment:

$ echo $GEM_PATH
/Library/Ruby/Gems/1.8

$ more ~/.gemrc
---
verbose: true
update_sources: true
sources:
  - http://gems.rubyforge.org/
  - http://gems.github.com/
backtrace: false
bulk_threshold: 1000
benchmark: false
gem: --rdoc
rdoc:  --fmt ajax --charset utf8 --exclude .*generator.* --
exclude .*test.* --exclude .*spec.*
This topic is locked and can not be replied to.