redis-search 1.0.2 → 1.0.3
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 +4 -4
- data/lib/redis-search/base.rb +2 -2
- data/lib/redis-search/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46cb4cef781bc85a8e83494adda2b28d272bdd99
|
4
|
+
data.tar.gz: ef3fc73d7f0738aa7faa7d5b64a54be03932c60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c6f2e456091de71841e5b84ae9d5e9a8dcb5d69ca3483f61556c843606d8a9e6ee256db5db58d1efb86e3dacb19a5eb937837a0dfea7904428f578d08206b46
|
7
|
+
data.tar.gz: bf7faec87c2becd841b12f74f7b649fb1da2be9fa3522284725043251915f52e2740215edcb1a28c85e427b6fa1a28addcc6aa93b1a004085a11750d4ea2af13
|
data/lib/redis-search/base.rb
CHANGED
@@ -152,12 +152,12 @@ class Redis
|
|
152
152
|
if ancestors.collect(&:to_s).include?('ActiveRecord::Base'.freeze)
|
153
153
|
find_in_batches(batch_size: batch_size) do |items|
|
154
154
|
_redis_search_reindex_items(items)
|
155
|
-
count +=
|
155
|
+
count += items.count
|
156
156
|
end
|
157
157
|
elsif included_modules.collect(&:to_s).include?('Mongoid::Document'.freeze)
|
158
158
|
self.all.each_slice(batch_size) do |items|
|
159
159
|
_redis_search_reindex_items(items)
|
160
|
-
count +=
|
160
|
+
count += items.count
|
161
161
|
end
|
162
162
|
else
|
163
163
|
puts 'skiped, not support this ORM in current.'
|
data/lib/redis-search/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-pinyin
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.8
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: High performance real-time prefix search.
|