fuzzy_match 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/lib/fuzzy_match.rb +6 -1
- data/lib/fuzzy_match/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/fuzzy_match.rb
CHANGED
@@ -136,7 +136,12 @@ class FuzzyMatch
|
|
136
136
|
last_result.stop_words = stop_words
|
137
137
|
end
|
138
138
|
|
139
|
-
needle =
|
139
|
+
needle = case needle
|
140
|
+
when String
|
141
|
+
Record.new needle
|
142
|
+
else
|
143
|
+
Record.new needle, read: read
|
144
|
+
end
|
140
145
|
|
141
146
|
if gather_last_result
|
142
147
|
last_result.needle = needle
|
data/lib/fuzzy_match/version.rb
CHANGED