[Rubygems-developers] Recent refactoring introduced regression?

Chad Woolley thewoolleyman at gmail.com
Wed Oct 21 16:43:58 EDT 2009


In rev 2317, jbarnette introduced the following line into
Gem::DependencyInstaller#find_gems_with_sources:

  requirements = dep.requirement.requirements.map do |req, ver|

In my tests (GemInstaller integration tests against RubyGems trunk),
this is breaking because sometimes the 'requirement' property on
dependencies is nil.

I'm not sure how this happens, because the Gem::Dependency seems to be
getting constructed correctly with a requirement, but later in
#find_gems_with_sources it is nil.  Here is the gemspec:

  http://github.com/thewoolleyman/geminstaller/blob/master/spec/fixture/gems/specifications/dependent-stubgem-1.0.0.gemspec

Any ideas?  This seems like a regression, these tests have been
working against rubygems since pre-1.0 days...

Thanks,
-- Chad


More information about the Rubygems-developers mailing list