quby-compiler 0.3.4 → 0.3.5
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 +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/quby/compiler/entities/subscore_schema.rb +2 -1
- data/lib/quby/compiler/outputs/roqua_serializer.rb +1 -0
- data/lib/quby/compiler/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6057e46b6b390c3a3d4ecdf461f1e8970c3c42de8d2b5ec50cb14a1544eff8c9
|
|
4
|
+
data.tar.gz: ae3e2dd60f2e9dbc655bee2f32cb110e1daf399fecdc8d653e1a3df39fe267af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fc383d185fd6ef9a11f4bc1d952ecefa89c6853cc1ef3f8e00a80b86d9c779a470309106492b57890da29424fc8cd9dc092c08df9a135d140d01cbcb226a5b2
|
|
7
|
+
data.tar.gz: 979aea81dcfa1a4f15060ba9cea59f5d3bffc94983b59383323e5e00fea3d57f2967fd8cc17a66b11e3fc16eb823b91c3f83d8f06845eac7445e3d374619a68f
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.7.
|
|
1
|
+
2.7.2
|
data/CHANGELOG.md
CHANGED
|
@@ -16,7 +16,8 @@ module Quby
|
|
|
16
16
|
attribute :calculation_key?, Types::Symbol
|
|
17
17
|
# [Optional argument] The name of the outcome table where this subscore should be shown. Used for cases where scores
|
|
18
18
|
# differ in subscores too much to be shown as one table. By default, all scores end up in the `:main` table.
|
|
19
|
-
|
|
19
|
+
# When outcome_table is explicitly nil, the value should not be shown in outcome tables
|
|
20
|
+
attribute :outcome_table, Types::Symbol.optional.default(:main)
|
|
20
21
|
end
|
|
21
22
|
end
|
|
22
23
|
end
|
|
@@ -91,6 +91,7 @@ module Quby
|
|
|
91
91
|
|
|
92
92
|
questionnaire.score_schemas.values.each do |schema|
|
|
93
93
|
schema.subscore_schemas.each do |subschema|
|
|
94
|
+
next if subschema.outcome_table.blank?
|
|
94
95
|
tables[subschema.outcome_table][:subscore_keys] << subschema.key
|
|
95
96
|
tables[subschema.outcome_table][:score_keys] << schema.key
|
|
96
97
|
headers[subschema.key] = subschema.label
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: quby-compiler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marten Veldthuis
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-06-
|
|
11
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -136,7 +136,7 @@ dependencies:
|
|
|
136
136
|
- - ">="
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
|
-
description:
|
|
139
|
+
description:
|
|
140
140
|
email:
|
|
141
141
|
- marten@veldthuis.com
|
|
142
142
|
executables:
|
|
@@ -256,7 +256,7 @@ licenses:
|
|
|
256
256
|
- MIT
|
|
257
257
|
metadata:
|
|
258
258
|
homepage_uri: https://gitlab.roqua.nl/roqua/quby-compiler
|
|
259
|
-
post_install_message:
|
|
259
|
+
post_install_message:
|
|
260
260
|
rdoc_options: []
|
|
261
261
|
require_paths:
|
|
262
262
|
- lib
|
|
@@ -271,8 +271,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
271
271
|
- !ruby/object:Gem::Version
|
|
272
272
|
version: '0'
|
|
273
273
|
requirements: []
|
|
274
|
-
rubygems_version: 3.1.
|
|
275
|
-
signing_key:
|
|
274
|
+
rubygems_version: 3.1.4
|
|
275
|
+
signing_key:
|
|
276
276
|
specification_version: 4
|
|
277
277
|
summary: Quby::Compiler compiles a DSL for questionnaires to JSON
|
|
278
278
|
test_files: []
|