quby-compiler 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/quby/compiler/outputs/roqua_serializer.rb +28 -1
- data/lib/quby/compiler/version.rb +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: 51cced2ed60f5bf58986b0bb1359a06e20349ee41f8313a86fd8abe7743b942f
|
4
|
+
data.tar.gz: 63dfc7514011d1a0518a5a5fd5dec191dd326104dab042eba491bb3b71380ff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cef3595b41bdeb1eb0cd4ced9b903fc63441359a98a12b2999bdfda66daa2b705c07316cf6eaf16912e64a20098296348b838565eb89c6f15b42bab659fbdee
|
7
|
+
data.tar.gz: a5ad54369e5bf53e516d2f03665309d0e3e530b3acd488be9cad1eb4d1bcab0cebb6e3d23274c5d3bbfba225475e8970aa24fc776eee1b5206049428dd8c1d0d
|
data/CHANGELOG.md
CHANGED
@@ -22,6 +22,7 @@ module Quby
|
|
22
22
|
tags: questionnaire.tags.to_h.keys,
|
23
23
|
charts: charts,
|
24
24
|
outcome_tables_schema: outcome_tables_schema,
|
25
|
+
scores: scores,
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
@@ -139,7 +140,33 @@ module Quby
|
|
139
140
|
tables: tables,
|
140
141
|
}
|
141
142
|
end
|
143
|
+
|
144
|
+
# [{ key: { .., subscores: { subkey: {..} } } }]
|
145
|
+
def scores
|
146
|
+
questionnaire.score_schemas.transform_values { |score|
|
147
|
+
{
|
148
|
+
key: score.key,
|
149
|
+
label: score.label,
|
150
|
+
subscores: subscores_for(score)
|
151
|
+
}
|
152
|
+
}
|
153
|
+
end
|
154
|
+
|
155
|
+
# { subkey: {..} }
|
156
|
+
def subscores_for(score)
|
157
|
+
score.subscore_schemas.to_h { |subscore|
|
158
|
+
[
|
159
|
+
subscore.key,
|
160
|
+
{
|
161
|
+
key: subscore.key,
|
162
|
+
label: subscore.label,
|
163
|
+
export_key: subscore.export_key,
|
164
|
+
only_for_export: subscore.only_for_export.presence
|
165
|
+
}.compact
|
166
|
+
]
|
167
|
+
}
|
168
|
+
end
|
142
169
|
end
|
143
170
|
end
|
144
171
|
end
|
145
|
-
end
|
172
|
+
end
|
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.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|