redis-search 0.9.1 → 0.9.2

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
  SHA1:
3
- metadata.gz: fd041bc3357ace32de60abc0360f57e8b547a766
4
- data.tar.gz: 2669938cf7809390388715b536d91b7c80492072
3
+ metadata.gz: 33272b4ecdd3291d20d8c18b81408df1a285a341
4
+ data.tar.gz: 38b7f637d9caf86c4c954a3c3c1c4cb20aa8dc02
5
5
  SHA512:
6
- metadata.gz: f8c77602acef1e986a35497c320f563a880d38034dd521c5b02d39d120451776d685ada73066968e0ec09da8cb527398416e33669459f2726e11b84d772de1e6
7
- data.tar.gz: 6a8e6bfdce8b72afd45f58afa24652ae16f3c88d1921c1fea5f4cbad03fc58748a3d90e2fc4993a13c06252be27626f87f1e8114fdd15224fbb3867960b6baf5
6
+ metadata.gz: 164afbf3600a9fdf21c5beb5426f402e96bdc2f234fbf2c2ec5c141e88be0bb77fc1467942a4a7469cecd2c0ae87dee552aec994e16fa0b256dbf3e97cbfc42b
7
+ data.tar.gz: f5c6d1da12d349092eb53f79333a22de834cc5e2077ebb45e0dc1b2455a9bbaadd138425c2d214311829e6474bf04a0d867761e5508bc38453488c0c193f5088
@@ -2,6 +2,8 @@
2
2
 
3
3
  class Redis
4
4
  module Search
5
+ autoload :PinYin, 'ruby-pinyin'
6
+
5
7
  extend ::ActiveSupport::Concern
6
8
 
7
9
  module ClassMethods
@@ -1,7 +1,6 @@
1
1
  # coding: utf-8
2
- require 'ruby-pinyin'
3
2
  class Redis
4
- module Search
3
+ module Search
5
4
  # use rmmseg to split words
6
5
  def self.split(text)
7
6
  _split(text)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-30 00:00:00.000000000 Z
11
+ date: 2014-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-pinyin