diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-08-24 08:51:47 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-09-12 22:13:29 +0900 |
commit | 8d2bcc88ffe603290099d626cab40afcc834a12f (patch) | |
tree | f22bdbdbb55d3e61a366632cb2ed689947a21523 /lib/bundler/index.rb | |
parent | a4860e043e073e9caa2494284df4af10ca6550da (diff) |
[rubygems/rubygems] This sorting seems unnecessary too
https://github.com/rubygems/rubygems/commit/823cb1fef9
Diffstat (limited to 'lib/bundler/index.rb')
-rw-r--r-- | lib/bundler/index.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index 00c7a9e00d..c639936cb0 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -78,17 +78,13 @@ module Bundler end protected :unsorted_search - def self.sort_specs(specs) + def sort_specs(specs) specs.sort_by do |s| platform_string = s.platform.to_s [s.version, platform_string == RUBY ? NULL : platform_string] end end - def sort_specs(specs) - self.class.sort_specs(specs) - end - def local_search(query) case query when Gem::Specification, RemoteSpecification, LazySpecification, EndpointSpecification then search_by_spec(query) |