diff options
author | Tim Moore <tmoore@incrementalism.net> | 2014-08-17 22:25:04 +1000 |
---|---|---|
committer | Tim Moore <tmoore@incrementalism.net> | 2014-08-17 22:25:04 +1000 |
commit | 384bbddda02b9be56e7780f534abeb46c904cb70 (patch) | |
tree | 655e78ecc5268c00d6e440f07fd9a31aba52b13a /lib/bundler | |
parent | e8f02a748d39c762362af6f5a18a1b0ad85faa30 (diff) | |
download | bundler-384bbddda02b9be56e7780f534abeb46c904cb70.tar.gz |
Sort index search results across all sources.
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/index.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb index af9defe34e..104bf44446 100644 --- a/lib/bundler/index.rb +++ b/lib/bundler/index.rb @@ -68,7 +68,7 @@ module Bundler end end - results + results.sort_by {|s| [s.version, s.platform.to_s == 'ruby' ? "\0" : s.platform.to_s] } end def local_search(query, base = nil) @@ -173,7 +173,7 @@ module Bundler found.reject! { |spec| spec.version.prerelease? } end - found.sort_by {|s| [s.version, s.platform.to_s == 'ruby' ? "\0" : s.platform.to_s] } + found end end |