active_reporter 0.5.11 → 0.5.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_reporter/serializer/nested_hash.rb +1 -1
- data/lib/active_reporter/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: aed148d6a8bfcab1d71ab77adc0663400b36bfac88a20070a42350bdee5afe71
|
4
|
+
data.tar.gz: f588e4470f5f496e5d3206c1e4374c50d968dbb9e6be0310525509d0faf4d7d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 850aa84aa4db8c5a879a224cb6e06033a5435e161dd232092b4dd66d3ba51d81bb83cd9b13414e6233c9ef1311c315892c458c91e1e56a8526ae2ebf30df370d
|
7
|
+
data.tar.gz: cd18bc9a71b491c451639a6102d497a8d9766deee3b97275f35485cd0bb51c013bb8e3ef8dde69b2d9035df61ac13dc0e10df9f4af22c309f52f101c239fb19a
|
@@ -4,7 +4,7 @@ module ActiveReporter
|
|
4
4
|
def table
|
5
5
|
report.hashed_data.collect { |row| row.map { |k,v| [k, (v.respond_to?(:min) ? v.min : v).to_s] }.to_h }.collect do |row|
|
6
6
|
report.grouper_names.reverse.inject(row.slice(*report.all_aggregators.keys)) { |nested_row_data, group| { row[group] => nested_row_data } }
|
7
|
-
end.reduce({}, :
|
7
|
+
end.reduce({}, :deep_merge)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chaunce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|