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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed1a89a7fd34fed09b05bbdc426156e4f6a6b5029e06706400c47bcd33dd96a9
4
- data.tar.gz: 8e2c135b305e02740276f49f3792fa13ac5c83f58c814910c7e1b6916ebb182e
3
+ metadata.gz: f624397cfe237e53f1bd87cc96aed950a1abbb1622c312f5766f52200d9ae640
4
+ data.tar.gz: 5d771e082cb087ac2e378465bd816b696c90173165deff10e0c18d33baccdcaa
5
5
  SHA512:
6
- metadata.gz: 3bff20c0e4ee3b619ef4d4bf0e09d66aa5213778b7d9d97f444e914e809d611e2ee802e718210dfa5790020f76573a3c7c4aa9e61fa59b3d37dca8865e28fc6b
7
- data.tar.gz: 7aba57e8652de450ce8ff897c392c196e5d5deb668f659cd7e56fca8a7d5520f812926a7b2732ac6f0426138dd3bf3d84371284a4230c97760e0eb9dcf16e1c4
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 = []
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "mondrian-rest"
4
- s.version = '0.7.2'
4
+ s.version = '0.7.3'
5
5
  s.authors = ["Manuel Aristarán"]
6
6
  s.email = ["manuel@jazzido.com"]
7
7
  s.homepage = "https://github.com/jazzido/mondrian-rest"
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.2
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-20 00:00:00.000000000 Z
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