diff options
author | Andre Arko <andre@arko.net> | 2015-07-18 16:44:14 -0600 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-07-18 16:45:36 -0600 |
commit | 0f8bc78180ce4f8bae5dc48e2078b44cd4fafe44 (patch) | |
tree | c175c911a748afd50c0045038499a5a349fec135 /lib/bundler/similarity_detector.rb | |
parent | 14a7eb25ee03c9fb4ecf3e4c6b1f44a8267a413a (diff) | |
download | bundler-0f8bc78180ce4f8bae5dc48e2078b44cd4fafe44.tar.gz |
Fix Style/SpaceInsideBlockBraces
closes #3853
Diffstat (limited to 'lib/bundler/similarity_detector.rb')
-rw-r--r-- | lib/bundler/similarity_detector.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/similarity_detector.rb b/lib/bundler/similarity_detector.rb index c4caab71a8..dc770c4281 100644 --- a/lib/bundler/similarity_detector.rb +++ b/lib/bundler/similarity_detector.rb @@ -9,8 +9,8 @@ module Bundler # return an array of words similar to 'word' from the corpus def similar_words(word, limit = 3) - words_by_similarity = @corpus.map{|w| SimilarityScore.new(w, levenshtein_distance(word, w)) } - words_by_similarity.select{|s| s.distance<=limit }.sort_by(&:distance).map(&:string) + words_by_similarity = @corpus.map {|w| SimilarityScore.new(w, levenshtein_distance(word, w)) } + words_by_similarity.select {|s| s.distance<=limit }.sort_by(&:distance).map(&:string) end # return the result of 'similar_words', concatenated into a list |