graphed_fuzzy_search 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd030d3d31c4838402d85fb1cb7ec8e65f641afca3f9c395294e14192bb74938
4
- data.tar.gz: 454a974ca7e1c1c7a479b881024227128d3ab32470be050ef1777bc30d02e653
3
+ metadata.gz: 1a35cbb2d95e4ad3809fc1364a9df48943198c7bf97e912f14ccbba1a21ea815
4
+ data.tar.gz: 89199d54665610c44a26707c48a703bf634b61a507c8ef45659f96a07e4b50af
5
5
  SHA512:
6
- metadata.gz: 220d763cff6b305ff3627d591c8f99f1242f3ac761c15651bbfbaa21d2fac568777ede19c9d37b4bf4f76884a13ea4e3576076a1d65da9806c829cd6d3e7006d
7
- data.tar.gz: 52a98f177ea3bcf4688a390c922b8babedb732b154ae06355d847bf35ad9a54e805cc10ff262e86aa04fa13325d5d01051a7ee8896728c134a560ff1e7483d88
6
+ metadata.gz: ec81e6ed3aded774c9058168dbf839a85948afdb2a44eb668a4d81024e76ccf5d53218d321556b288e65e27cc40e9ecd2f8767860982c2b94c339ab11bbdb213
7
+ data.tar.gz: 23d7c45b56ed363f2377495afe2a16b64f6161db018ecaeb5135266ee01d0b2e28dbeec9d2c0808e9ef3c94b0f05b55e5da8bded76084a3fd6a0da7a211c07e1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphed_fuzzy_search (0.1.0)
4
+ graphed_fuzzy_search (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module GraphedFuzzySearch
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -57,6 +57,7 @@ module GraphedFuzzySearch
57
57
  tokens = attrs.flat_map do |attr|
58
58
  attr.to_s.downcase.scan(token_regex)
59
59
  end
60
+ tokens.push(*attrs)
60
61
  Item.new(obj, attrs[0], tokens)
61
62
  end
62
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphed_fuzzy_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorah Fukumori
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-04 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler