active_redis_stats 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_redis_stats/count/get.rb +6 -1
- data/lib/active_redis_stats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df7ba61778ec0a6a0abd910f5f846b7cff92fb73ea6263d24ff78ec8612824ca
|
4
|
+
data.tar.gz: 99eb45ef35ef5bee3e2a1e2ed3854849a81dfe8a5e4c1c2605d7e3da50b5baf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa57c7ff2885a69e0e799d2441d4953a9c8084704e361625704bf78e118407ecc6310d6d58949c49d57d687a9568787abeab4acfefe0f6c144d673872241b0a
|
7
|
+
data.tar.gz: cc99c6d7f191947c5a7e812a94477abc776d9dee6fe283cd56871a599e943e55d3be52a2412d1e3ba08fbfcfbf429346f7ee92d2be4744280797566796cbc37c
|
@@ -13,7 +13,12 @@ module ActiveRedisStats
|
|
13
13
|
|
14
14
|
def total_intervals(key, format: :month, offset: 0)
|
15
15
|
keys = send("#{format}_keys", offset: offset)
|
16
|
-
keys.collect { |k|
|
16
|
+
keys = keys.collect { |k| primary_key("#{key}:#{k}") }
|
17
|
+
|
18
|
+
ActiveRedisDB::String
|
19
|
+
.evaluate
|
20
|
+
.find_each(*keys)
|
21
|
+
.map(&:to_i)
|
17
22
|
end
|
18
23
|
end
|
19
24
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_redis_stats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_object
|