quby-compiler 0.6.8 → 0.6.9

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: 01cfba3183d5a4279b2c73b3c9cee99b676bb878fe4fb41750966dff9f3cee05
4
- data.tar.gz: b73b3f4426dc2a4f995fd03164a49ef65d27a723d7de870fdeceaebf26efecc0
3
+ metadata.gz: f6219ec14c5c8bd782f24d4b83ca18330d901746fe63cf37a606f2ddc817c753
4
+ data.tar.gz: daf732c5f5931e6610aae4c48048f0a67e483e59a06a42d90f5c67e31139500d
5
5
  SHA512:
6
- metadata.gz: 7babf0bc0256ed62390f442b34104eaf64778ad04a563fa3ffd239091bcca67f0d3058a42a67df4b8db50a12a8e6bd064636f290cc519233065c7d0a18175e9f
7
- data.tar.gz: c65d1f03ed2219c8b3704a843323ef92bb019baef95889ee86d40ecc67fb4f4eda5a2bdb5905adf652178657b783232c85353db0fb726076efbaad1ea342ce21
6
+ metadata.gz: 60309de0755d0315413fc46615b3c39697ca764152d0aabafa23ac225171da1acf2ea768b3e330623f28e40503ef4b9462095ca75653d18b551d98b5647acfe7
7
+ data.tar.gz: 14ed027c991aadc276b8e9a3b221724ea0138517a89b8b51bb4307aefa801472b9dc9b5c88d42bbf65bbe21e190650218a3ba6fe58d640cb6ec99db6ec3f8f9a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # Unreleased
2
+
3
+ # 0.6.9
4
+
5
+ * dsl + roqua.json: allow a label to be added to plotband
6
+
1
7
  # 0.6.8
2
8
 
3
9
  * dsl_quby2.json: Add count_selected to s-expressions.
@@ -41,8 +41,8 @@ module Quby
41
41
  @chart.y_range_categories = RangeCategories.new(*y_range_categories).as_range_hash
42
42
  end
43
43
 
44
- def plotband(from, to, color)
45
- @chart.plotbands << {from: from, to: to, color: color}
44
+ def plotband(from, to, color, label: nil)
45
+ @chart.plotbands << {from:, to:, color:, label:}.compact
46
46
  end
47
47
 
48
48
  def plotline(value, color)
@@ -92,7 +92,7 @@ module Quby
92
92
  key: chart.key,
93
93
  type: chart.type,
94
94
  title: chart.title,
95
- plottables: chart.plottables,
95
+ plottables: chart.plottables.map{it.as_json.compact},
96
96
  y_categories: chart.y_categories,
97
97
  y_range_categories: chart.y_range_categories,
98
98
  chart_type: chart.chart_type,
@@ -1,5 +1,5 @@
1
1
  module Quby
2
2
  module Compiler
3
- VERSION = "0.6.8"
3
+ VERSION = "0.6.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quby-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis