aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/similarity_detector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/similarity_detector.rb')
-rw-r--r--lib/bundler/similarity_detector.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/similarity_detector.rb b/lib/bundler/similarity_detector.rb
index 9bb1e8dd..66f1044c 100644
--- a/lib/bundler/similarity_detector.rb
+++ b/lib/bundler/similarity_detector.rb
@@ -24,8 +24,8 @@ module Bundler
end
end
-
protected
+
# http://www.informit.com/articles/article.aspx?p=683059&seqNum=36
def levenshtein_distance(this, that, ins=2, del=2, sub=1)
# ins, del, sub are weighted costs
@@ -58,6 +58,5 @@ module Bundler
# The last value in matrix is the Levenshtein distance between the strings
dm[that.length][this.length]
end
-
end
end