rifle 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rifle.rb +1 -1
- data/lib/rifle/version.rb +1 -1
- metadata +2 -2
data/lib/rifle.rb
CHANGED
@@ -40,7 +40,7 @@ module Rifle
|
|
40
40
|
|
41
41
|
# Now get the new ones
|
42
42
|
words = traverse_object_for_word_set(hash)
|
43
|
-
words_and_search_terms = words + Array(additional_search_terms).map {|w| w.downcase}
|
43
|
+
words_and_search_terms = words + Array(additional_search_terms).map {|w| w.nil? ? nil : w.downcase}.compact
|
44
44
|
metaphones = get_metaphones_from_word_set(words_and_search_terms)
|
45
45
|
|
46
46
|
# Clear out words that have been removed (but leave ones that are still present in the new version)
|
data/lib/rifle/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rifle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|