Bug #3607: [trunk/r28731] Gem.path has disappeared?
http://redmine.ruby-lang.org/issues/show/3607

Author: Ollivier Robert
Status: Open, Priority: High
Category: lib
ruby -v: ruby 1.9.3dev (2010-07-23) [x86_64-darwin10.4.0] 

Any attempt to use rubygems is failing there:

519 [15:51] roberto@roberto-al:yarv/build> /usr/local/bin/gem list
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58:in `from_installed_gems'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:881:in `source_index'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:839:in `new'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:839:in `block in searcher'
	from <internal:prelude>:10:in `synchronize'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:838:in `searcher'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:478:in `find_files'
	from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1103:in `<top (required)>'
	from <internal:lib/rubygems/custom_require>:29:in `require'
	from <internal:lib/rubygems/custom_require>:29:in `require'
	from /usr/local/bin/gem:8:in `<main>'

I have tried rmoving my build directory and rebuild everything.  I don't want to blow everythting away in /usr/local/lib/ruby because I have quite a few gems installed if possible.


----------------------------------------
http://redmine.ruby-lang.org