[Rubygems-developers] [ rubygems-Patches-27334 ] patch to allow for non libs gems

noreply at rubyforge.org noreply at rubyforge.org
Thu Oct 22 13:10:30 EDT 2009


Patches item #27334, was opened at 2009-10-22 17:10
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=577&aid=27334&group_id=126

Category: #gem and #require methods
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Roger Pack (rogerdpack)
Assigned to: Nobody (None)
Summary: patch to allow for non libs gems

Initial Comment:
Currently if you do

$ gem install FotoVerite-fotoverite-babygitter
...
ERROR:  While executing gem ... (NoMethodError)
    undefined method `each' for nil:NilClass

$ ruby -rubygems -e ''

/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:99:in `lib_dirs_for': undefined method `join' for nil:NilClass (NoMethodError)
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:24:in `initialize'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:23:in `each'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb:23:in `initialize'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:889:in `new'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:889:in `searcher'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:888:in `synchronize'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:888:in `searcher'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:528:in `find_files'
	from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1132
	from /usr/local/lib/ruby/site_ruby/1.8/ubygems.rb:10:in `require'
	from /usr/local/lib/ruby/site_ruby/1.8/ubygems.rb:10

This patch avoids this.
Thanks!
-r

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=577&aid=27334&group_id=126


More information about the Rubygems-developers mailing list