[Rubygems-developers] [ rubygems-Patches-27338 ] patch for avoiding satisfied_by? error

noreply at rubyforge.org noreply at rubyforge.org
Thu Oct 22 19:27:19 EDT 2009


Patches item #27338, was opened at 2009-10-22 23:27
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=577&aid=27338&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 for avoiding satisfied_by? error

Initial Comment:
The attached patch overcomes this trace (caused by some gem 'er other...which apparently has no requirements [?]):


ERROR:  While executing gem ... (NoMethodError)
    undefined method `satisfied_by?' for nil:NilClass
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:136:in `=~'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:125:in `find_matching'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:124:in `select'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:124:in `find_matching'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:123:in `each'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:123:in `find_matching'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:69:in `fetch'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:100:in `find_gems_with_sources'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:140:in `gather_dependencies'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:139:in `each'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:139:in `gather_dependencies'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:221:in `install'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:118:in `execute'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `each'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `execute'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/command.rb:257:in `invoke'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in `process_args'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in `run'
	/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'
	/usr/local/bin/gem:21

Thanks!

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

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


More information about the Rubygems-developers mailing list