From 4c2304f0004e9f1784540f3d36976aad9eab1f68 Mon Sep 17 00:00:00 2001 From: drbrain Date: Mon, 22 Jul 2013 22:46:50 +0000 Subject: * lib/rubygems: Import RubyGems from master as of commit b165260 * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/specification.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/rubygems/specification.rb') diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index fd3e90253d..78f62c7a89 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -954,7 +954,7 @@ class Gem::Specification < Gem::BasicSpecification result.map(&:last).map(&:values).flatten.reject { |spec| minimum = native[spec.name] minimum && spec.version < minimum - } + }.sort_by{ |tup| tup.name } end ## @@ -1853,11 +1853,6 @@ class Gem::Specification < Gem::BasicSpecification end end - # Prevent ruby hitting spec.method_missing when [[spec]].flatten is called - def to_ary # :nodoc: - nil - end - ## # Normalize the list of files so that: # * All file lists have redundancies removed. @@ -2008,6 +2003,10 @@ class Gem::Specification < Gem::BasicSpecification @requirements = Array req end + def respond_to_missing? m, include_private = false # :nodoc: + false + end + ## # Returns the full path to this spec's ri directory. -- cgit v1.2.3