dump stub specifications if nil
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
99871095e6
commit
8972de9ff7
@ -723,6 +723,9 @@ class Gem::Specification < Gem::BasicSpecification
|
||||
def self._all # :nodoc:
|
||||
unless defined?(@@all) && @@all then
|
||||
@@all = stubs.map(&:to_spec)
|
||||
if @@all.any?(&:nil?) # TODO: remove once we're happy
|
||||
raise "nil spec! included in #{stubs.inspect}"
|
||||
end
|
||||
|
||||
# After a reset, make sure already loaded specs
|
||||
# are still marked as activated.
|
||||
|
Loading…
x
Reference in New Issue
Block a user