summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Arko <andre@arko.net>2014-08-17 20:19:51 -0700
committerAndré Arko <andre@arko.net>2014-08-17 20:19:51 -0700
commit4d49d0dd9671c0ac29ffe62f9ea817389bcf6daa (patch)
tree655e78ecc5268c00d6e440f07fd9a31aba52b13a
parente8f02a748d39c762362af6f5a18a1b0ad85faa30 (diff)
parent384bbddda02b9be56e7780f534abeb46c904cb70 (diff)
downloadbundler-4d49d0dd9671c0ac29ffe62f9ea817389bcf6daa.tar.gz
Merge pull request #3139 from TimMoore/1-7-stable
Sort index search results across all sources
-rw-r--r--lib/bundler/index.rb4
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