activecube-graphql 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d530166b53468ef6619823980eb04ab18a43c0cf73f9732376b3b26cf8898917
4
- data.tar.gz: 060b0a82a4081dd108835e910b260de8c33c7ed7c3d112e3a28202eec940f8a1
3
+ metadata.gz: b5907c942a7c6ff67df9c067b511f3fa12ecd28786501c171c254a8208fea8ae
4
+ data.tar.gz: af6cf1ab5742653b86e3773b38524b67320de944f34eb1f5fce54eca209d02b7
5
5
  SHA512:
6
- metadata.gz: 8ce9b0b5829cafa7f381a454113afe26a03e2a39699bd21be70e6b7b9151fdd75dd3780c08b120c70f710c174c6213ef51aa946228a9a5d56a857e259f9e6b15
7
- data.tar.gz: 104409450638839f1b50e6e7a03f3b1baff1af0402d015250fa48d1aab2e2039ce77a19b532527dad098d9e0cc3723d728e90d78dab4bc9163e89d0b433f13c9
6
+ metadata.gz: f6a8e54da43f0eef1f7c6c0ea75f726deeb2fa8f190ecda6d2aed61ceac6d8d42d9eb5641d60eae32ee5e993183c89cc0bc201af71800e498dccab00f1a68bf2
7
+ data.tar.gz: b5aae1ee51c0964faaf8eed002d8906db458493270b692e396771560e3e54ea4f977c087a922eadcecc10e6b34d3602deccce2cde2588c920216d98014d8b4d1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activecube-graphql (0.1.5)
4
+ activecube-graphql (0.1.6)
5
5
  activecube (~> 0.1.6)
6
6
  graphql (~> 1.9)
7
7
 
@@ -30,7 +30,7 @@ module Activecube
30
30
  elsif parent.metric
31
31
  raise Activecube::InputArgumentError, "Unexpected metric #{key} in cube #{cube.name}"
32
32
  else
33
- if !(@metric = cube.metrics[definition.to_sym]) && !(@dimension = cube.dimensions[definition.to_sym])
33
+ if !(@metric = (cube.metrics && cube.metrics[definition.to_sym])) && !(@dimension = (cube.dimensions && cube.dimensions[definition.to_sym]))
34
34
  raise Activecube::InputArgumentError, "Metric or dimension #{definition} for #{key} not defined for cube #{cube.name}"
35
35
  end
36
36
  end
@@ -1,5 +1,5 @@
1
1
  module Activecube
2
2
  module Graphql
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activecube-graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksey Studnev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-07 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activecube