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: 29a07695204dd330dd9a5b2684ae01cc28b5346902a05a3aa5eda4404bb6cf60
4
- data.tar.gz: 7da1b015edfaa0a64805d08032fa634707a8c77a268d32d89176789c58ef75e9
3
+ metadata.gz: 6c71387b1fdeae99ee4ec9e758cb63c4b0d4e543e5dc06af652329aafbae348b
4
+ data.tar.gz: da93c3d4c62f7ceb8c2acdaf5f2ec66d5abf7a1599fa4b4398de938d70475c20
5
5
  SHA512:
6
- metadata.gz: 6afc144ecca456786e87c64c2cddf38c3c599086d717430278d2db3c45aea1d6ef377a7d3a4d6003a91a6282222e5fb8081d9108e60f6ac114e52fa4ea782e9c
7
- data.tar.gz: 67033e7e0544e0ae60253df87cfa7c1f3210312835ffa0e66c17456823f98c1d1cc7c85e70e1706bf9f501e08558f271471c2e7869c01e86e5f408890423118d
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)&.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) || [] }
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
@@ -1,5 +1,5 @@
1
1
  module Eitil
2
2
 
3
- VERSION = '1.3.10'
3
+ VERSION = '1.3.11'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eitil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.10
4
+ version: 1.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jurriaan Schrofer