graphed_fuzzy_search 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 796b898cfc1586b71d503d8d9289df21c2856639e7e335203b3fbada80d11774
4
- data.tar.gz: ca5806d469ece5770609931019a77d2123aebd793002ad4d6d9c24f1cfd3d7dd
3
+ metadata.gz: cccfa356e224490039fb5c1c860cce13ceced26a157aba99b35750842b94b7c1
4
+ data.tar.gz: fb6432142f0923d28de7e40a02d0d0c22ee54e0b03fdd9c107e06e1c261b2db8
5
5
  SHA512:
6
- metadata.gz: 907eab46e95f992ccd458648d28d2f31ae84e2faf2cd7ed8b1838493d886a83f6d3fbf7a4beaf091dad1a2cc70dbac37da919a0b56a1b1ee9852d96a321393b9
7
- data.tar.gz: f9d844f3c7a2db9984edd4887b1bbc235062210b1865b9b3f7c5e6e7255d78d6099b744323b0e198638bebda107da5c31d2a77a61e3919666360cdddcc70d9ad
6
+ metadata.gz: 19a56a5af2438bc8ced0d76f22f3c585116798534a2c488c31236ea9b16480e1111dd82278c8fca95aff8d86b58b4bd5df052d34ac13ad07b8099b2144da3114
7
+ data.tar.gz: 11c966278e2f99045bc75972bb320653d1824b43389a5e65d18f846db4fdb9f7bc5baafba3fc515275d5cc9a87f3fd6ff7269d55fedcb8a4aa7792b764f47c9b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphed_fuzzy_search (0.2.1)
4
+ graphed_fuzzy_search (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module GraphedFuzzySearch
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -58,6 +58,7 @@ module GraphedFuzzySearch
58
58
  attr.to_s.downcase.scan(token_regex)
59
59
  end
60
60
  tokens.push(*attrs)
61
+ tokens.reject(&:empty?)
61
62
  Item.new(obj, attrs[0], tokens.uniq)
62
63
  end
63
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphed_fuzzy_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorah Fukumori