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 CHANGED
@@ -1,3 +1,9 @@
1
+ 2.0.3 / 2013-08-11
2
+
3
+ * Enhancements
4
+
5
+ * If you pass a non-String to #find, the :read will be automatically applied
6
+
1
7
  2.0.2 / 2013-08-11
2
8
 
3
9
  * Enhancements
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 = Record.new 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
@@ -1,3 +1,3 @@
1
1
  class FuzzyMatch
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuzzy_match
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: