almicube 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/almicube/aggregator/base.rb +1 -1
- data/lib/almicube/aggregator/sum_aggregator.rb +4 -4
- data/lib/almicube/builder.rb +1 -1
- data/lib/almicube/ranking/base.rb +0 -1
- data/lib/almicube/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fa0b027e6a3cbdfc138f59cc9a9b9a6704227bd
|
4
|
+
data.tar.gz: ffb6baa33b5d9940c5fe10c1dd3571d1d44427c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e23331dfcd4ef85a623a8bb406172cefa9f4fb411931e11532d29becf51f610f9006db9ac6b79b76111da3a627afa2615685225bb70feae891365e041a8d1ea3
|
7
|
+
data.tar.gz: abbdecc865510ee154bfec2350167b1b5a8252d0348a89f7455eb8fb35a389e40487ff17b8f5f8713b59e315e59875379a595bed359b5f22c6470de4fbeb1ece
|
data/Gemfile.lock
CHANGED
@@ -12,7 +12,7 @@ module Almicube
|
|
12
12
|
def aggregate(ranking=nil)
|
13
13
|
self.ranking = ranking unless active? || ranking.nil?
|
14
14
|
|
15
|
-
self.ranking.selector.before_aggregate
|
15
|
+
self.ranking.selector.before_aggregate unless self.ranking.selector.nil?
|
16
16
|
|
17
17
|
if self.ranking.data?
|
18
18
|
data_aggregate self.ranking.key
|
@@ -4,11 +4,11 @@ module Almicube
|
|
4
4
|
protected
|
5
5
|
|
6
6
|
def sub_aggregate(key)
|
7
|
-
keys = ranking.bundled_keys.select { |k| self.class.connection.
|
7
|
+
keys = ranking.bundled_keys.select { |k| self.class.connection.exists(k) }
|
8
|
+
raise "enabled keys are empty" if keys.length == 0
|
9
|
+
|
8
10
|
keys << ranking.selector.interstore if ranking.selector.interstore
|
9
|
-
|
10
|
-
self.class.connection.zinterstore(key, keys)
|
11
|
-
end
|
11
|
+
self.class.connection.zinterstore(key, keys)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/lib/almicube/builder.rb
CHANGED
data/lib/almicube/version.rb
CHANGED