rubygems/rubygems — pull request #611 by jaggederest (2013-07-31 23:12:58+00:00)
Title: fix logic of register_default_spec

Register default spec currently only checks the first file to see if it should use the new spec type (i.e. lib/foo.rb) or the old one (i.e. foo.rb).

This patch fixes that misbehavior at the cost of (possibly) going through all files for each require path.