rubicure_fuzzy_match 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: fd6e2034907d5996972729ff3ef28e013d5d58c8
4
- data.tar.gz: e4730f4c1ac6cb072b7e4ba5a4ea68be76387d13
3
+ metadata.gz: 18218d6a57640e83bea22612c4ae38c396522693
4
+ data.tar.gz: 5d4ab14d48e5c9a2a5ff1f73317a46a26bd0588b
5
5
  SHA512:
6
- metadata.gz: fb72864cf0c4c4b2164d2242a9540cb983dbf3c3806fb47558ef5d14a7b401c32b83db384e98bb9e0734c28baf31f0faa1bbecee3503a7e6352264a55b79a146
7
- data.tar.gz: 7cbe3d79836c951917289b444b42dd609d6d670b702541447124978e99d155f44eb5a36ab06617dbf6a1d1a92fdaa041eccd83b4d8ea1ad20069a24924e03106
6
+ metadata.gz: e6252b45f5aea6e2c70cc4f8b70684172f519f8fd47f24089feb907761c61423d7ad9235b51762837481e2513658044f88e8372a05348e1b90b63f4b6018614e
7
+ data.tar.gz: 3ea1561ad25a8b5340b707199566e5af839796a132bcf42a2aa389be292a5985f0a4b799244a5ea2eba53b585c9bf3facae10c4ce0296cef55362a3108d5fc78
data/README.md CHANGED
@@ -39,7 +39,17 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
39
39
 
40
40
  ## Contributing
41
41
 
42
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rubicure_fuzzy_match.
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/kaosf/rubicure_fuzzy_match.
43
+
44
+ ## References
45
+
46
+ - [Fuzzy match in Ruby [Brighter Planet's Safety in Numbers]](http://numbers.brighterplanet.com/2012/01/18/fuzzy-match-in-ruby/)
47
+ - [seamusabshere/fuzzy_match](https://github.com/seamusabshere/fuzzy_match)
48
+ - [Ruby - Test::Unitでテストを書く - Qiita](http://qiita.com/repeatedly/items/727b08599d87af7fa671)
49
+
50
+ ## Slide
51
+
52
+ [Rubicureをあいまい検索対応強化してみた](http://kaosf.github.io/rubicure-fuzzy-match-slide)
43
53
 
44
54
  ## License
45
55
 
@@ -1,3 +1,3 @@
1
1
  module RubicureFuzzyMatch
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -6,18 +6,21 @@ class Rubicure::Seriese
6
6
  TITLES = Precure.map(&:title)
7
7
  TITLES_DICTIONARY = Hash[*TITLES.map.with_index { |e, i| [e, i] }.flatten]
8
8
  FUZZY_TITLES_DICTIONARY = {
9
- '初代' => 0,
10
- '無印' => 0,
11
- '555' => 4,
12
- 'フレプリ' => 5,
13
- 'ハト' => 6,
14
- 'スイプリ' => 7,
15
- 'スマプリ' => 8,
16
- 'ドキプリ' => 9,
17
- 'ドドリア' => 9,
18
- 'ハチャプリ' => 10,
19
- 'ゴプリプリ' => 11,
20
- '姫プリ' => 11,
9
+ '初代' => 0,
10
+ '無印' => 0,
11
+ 'マックスハート' => 1,
12
+ 'スプラッシュスター' => 2,
13
+ 'イエス' => 3,
14
+ '555' => 4,
15
+ 'フレプリ' => 5,
16
+ 'ハト' => 6,
17
+ 'スイプリ' => 7,
18
+ 'スマプリ' => 8,
19
+ 'ドキプリ' => 9,
20
+ 'ドドリア' => 9,
21
+ 'ハチャプリ' => 10,
22
+ 'ゴプリプリ' => 11,
23
+ '姫プリ' => 11,
21
24
  }
22
25
  FUZZY_MATCHER = FuzzyMatch.new(TITLES + FUZZY_TITLES_DICTIONARY.keys)
23
26
  TITLES_DICTIONARY.merge! FUZZY_TITLES_DICTIONARY
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubicure_fuzzy_match
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-22 00:00:00.000000000 Z
11
+ date: 2015-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubicure