mondrian-rest 0.7.2-java → 0.7.3-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mondrian_rest/api_formatters.rb +6 -0
- data/mondrian-rest.gemspec +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: f624397cfe237e53f1bd87cc96aed950a1abbb1622c312f5766f52200d9ae640
|
4
|
+
data.tar.gz: 5d771e082cb087ac2e378465bd816b696c90173165deff10e0c18d33baccdcaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ff8ad841c28ee6ce41081d6ffecfd01b8b48b19d5d24c5ef1844b2e3458516062c7c0410553d5a8ff499822b4afcd6a07c21b4dc9a1c638fb5ffabee9cdf132
|
7
|
+
data.tar.gz: cf774d74d54403bb1b02d2c599a17914b44374a0917edc89e759c1c8d04e85d43f61841125cbeff8e1801a9407b8b013d84cfb6ef285ccefd00c77465aaf3ecc
|
@@ -11,11 +11,17 @@ module Mondrian::REST::Formatters
|
|
11
11
|
# Generate 'tidy data' (http://vita.had.co.nz/papers/tidy-data.pdf)
|
12
12
|
# from a result set.
|
13
13
|
def self.tidy(result, options)
|
14
|
+
|
14
15
|
cube = result.cube
|
15
16
|
|
16
17
|
add_parents = options[:add_parents]
|
17
18
|
properties = options[:properties]
|
18
19
|
rs = result.to_h(add_parents, options[:debug])
|
20
|
+
|
21
|
+
if rs[:values].empty?
|
22
|
+
return []
|
23
|
+
end
|
24
|
+
|
19
25
|
measures = rs[:axes].first[:members]
|
20
26
|
dimensions = rs[:axis_dimensions][1..-1]
|
21
27
|
columns = []
|
data/mondrian-rest.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mondrian-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Manuel Aristarán
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|