Browse files

Merge pull request #808 from tenderlove/faster_error

only look at latest specs to suggest name
  • Loading branch information...
2 parents 7d1958c + 66783d8 commit 284b226913bfa505b09a9911da667cdd054573e6 @evanphx evanphx committed Feb 5, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubygems/spec_fetcher.rb
View
2 lib/rubygems/spec_fetcher.rb
@@ -186,7 +186,7 @@ def spec_for_dependency(dependency, matching_platform=true)
def suggest_gems_from_name gem_name
gem_name = gem_name.downcase.tr('_-', '')
max = gem_name.size / 2
- names = available_specs(:complete).first.values.flatten(1)
+ names = available_specs(:latest).first.values.flatten(1)
matches = names.map { |n|
next unless n.match_platform?

0 comments on commit 284b226

Please sign in to comment.