fuzzy_match 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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