aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/specification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r--lib/rubygems/specification.rb11
1 files changed, 5 insertions, 6 deletions
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.