rifle 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. data/lib/rifle.rb +1 -1
  2. data/lib/rifle/version.rb +1 -1
  3. 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
@@ -1,3 +1,3 @@
1
1
  module Rifle
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
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.1
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-13 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime