ruby-changes:46496
From: naruse <ko1@a...>
Date: Tue, 9 May 2017 16:47:35 +0900 (JST)
Subject: [ruby-changes:46496] naruse:r58616 (trunk): Add one more guard to avoid mixing nil into latest_specs
naruse 2017-05-09 16:47:28 +0900 (Tue, 09 May 2017) New Revision: 58616 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58616 Log: Add one more guard to avoid mixing nil into latest_specs Modified files: trunk/lib/rubygems/specification.rb Index: lib/rubygems/specification.rb =================================================================== --- lib/rubygems/specification.rb (revision 58615) +++ lib/rubygems/specification.rb (revision 58616) @@ -943,6 +943,7 @@ class Gem::Specification < Gem::BasicSpe https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L943 # -- wilsonb def self.all= specs + raise "nil spec!" if specs.any?(&:nil?) # TODO: remove once we're happy @@stubs_by_name = specs.group_by(&:name) @@all = @@stubs = specs end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/