eitil 1.3.10 → 1.3.11
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c71387b1fdeae99ee4ec9e758cb63c4b0d4e543e5dc06af652329aafbae348b
|
4
|
+
data.tar.gz: da93c3d4c62f7ceb8c2acdaf5f2ec66d5abf7a1599fa4b4398de938d70475c20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a352ca83b1a0bd8ba1cf24adb09b0de511601010d398b877d22e19c1f58b3d56ff859ac0e96e6edc104fe2bb21c6fac757e831914ae43bde1e5f84f052c64c3
|
7
|
+
data.tar.gz: c46d20e5872da0322df88fe2758fe0a5eb552b56f8897d350ce5f11da022eed1a3f4b2e0dad3459c71a3f4fd1815e0f676eea31e6329cd8aa2a053c988ed290e
|
@@ -18,10 +18,10 @@ module EitilWrapper
|
|
18
18
|
}
|
19
19
|
|
20
20
|
SharableIterableCalculators = -> (_class, column) {
|
21
|
-
_class.eitil_calculator :"#{column}_sum", -> { _class.pluck(column)
|
22
|
-
_class.eitil_calculator :"#{column}_sum_i", -> { _class.pluck(column)
|
23
|
-
_class.eitil_calculator :"#{column}_sum_f", -> { _class.pluck(column)
|
24
|
-
_class.eitil_calculator :"#{column}_sum_d", -> { _class.pluck(column)
|
21
|
+
_class.eitil_calculator :"#{column}_sum", -> { _class.pluck(column).flatten!.uniq }
|
22
|
+
_class.eitil_calculator :"#{column}_sum_i", -> { _class.pluck(column).flatten!.uniq.map(&:to_i) }
|
23
|
+
_class.eitil_calculator :"#{column}_sum_f", -> { _class.pluck(column).flatten!.uniq.map(&:to_f) }
|
24
|
+
_class.eitil_calculator :"#{column}_sum_d", -> { _class.pluck(column).flatten!.uniq.map(&:to_d) }
|
25
25
|
}
|
26
26
|
|
27
27
|
def inherited(subclass)
|
data/lib/eitil/version.rb
CHANGED