quby-compiler 0.5.1 → 0.5.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 +11 -0
- data/config/locales/de.yml +0 -3
- data/config/locales/en.yml +0 -3
- data/config/locales/nl.yml +1 -4
- data/lib/quby/compiler/dsl/calls_custom_methods.rb +2 -2
- data/lib/quby/compiler/dsl/panel_builder.rb +2 -2
- data/lib/quby/compiler/dsl/standardized_panel_generators.rb +0 -2
- data/lib/quby/compiler/outputs/roqua_serializer.rb +31 -0
- data/lib/quby/compiler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8759a0fd7801e78197ad7a28d88efceda1c16f72710b546d8adb4d2492c82188
|
4
|
+
data.tar.gz: 47f7a81bac855c37ec0e2b89fa82e8b3480e06ca5243a9739544564ccb4acc35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d98714fc2fb0e96c630629e19e2175350f3ccfe3ef8a0a3c176bcc014c4ef2113cad02d73a9c4fcb1624941ceebc7dc29c6ec882c3b288cfb3bcd613138379d9
|
7
|
+
data.tar.gz: ee969c707b4f87674de8ae77f828f5dfb477895955c3cba4a846b874cf75a8fac559fe7fa51f8db1c7905feb695f89cd7a675fba5dde11239ca689a618e65541
|
data/CHANGELOG.md
CHANGED
data/config/locales/de.yml
CHANGED
@@ -8,9 +8,6 @@ de:
|
|
8
8
|
abort: Später zu Ende ausfüllen
|
9
9
|
previous_questionnaire: Vorheriger Fragebogen
|
10
10
|
done: Fertig
|
11
|
-
print_answers: Antworten drucken
|
12
|
-
download_answers_pdf: Als PDF herunterladen
|
13
|
-
pdf_download_failed_message: Beim Vorbereiten des Downloads ist ein Fehler aufgetreten.
|
14
11
|
questionnaire_not_completed:
|
15
12
|
heading: Dieser Fragebogen ist noch nicht vollständig ausgefüllt!
|
16
13
|
explanation: Wenn Sie diesen Fragebogen dennoch speichern, können unter Umständen Dimensionen des Fragebogens nicht berechnet werden, weil zu wenig Informationen dafür zur Verfügung stehen. Sie können Ihre Antworten unten weiterhin ausfüllen. Fragen die noch unvollständig ausgefüllt sind, erscheinen rot markiert.
|
data/config/locales/en.yml
CHANGED
@@ -8,9 +8,6 @@ en:
|
|
8
8
|
abort: Save for later
|
9
9
|
previous_questionnaire: Previous questionnaire
|
10
10
|
done: Done
|
11
|
-
print_answers: Print answers
|
12
|
-
download_answers_pdf: Download as PDF
|
13
|
-
pdf_download_failed_message: An error occurred preparing the download.
|
14
11
|
questionnaire_not_completed:
|
15
12
|
heading: "This questionnaire hasn't been filled out completely!"
|
16
13
|
explanation: "If you decide to save the questionnaire anyway, it could be that scale scores can't be calculated because we don't have all the required answers. You may complete the questionnaire below."
|
data/config/locales/nl.yml
CHANGED
@@ -8,9 +8,6 @@ nl:
|
|
8
8
|
abort: Later afmaken
|
9
9
|
previous_questionnaire: Vorige vragenlijst
|
10
10
|
done: Klaar
|
11
|
-
print_answers: Print antwoorden
|
12
|
-
download_answers_pdf: Download als PDF
|
13
|
-
pdf_download_failed_message: Het aanmaken van de download is helaas mislukt.
|
14
11
|
questionnaire_not_completed:
|
15
12
|
heading: Deze vragenlijst is nog niet volledig ingevuld!
|
16
13
|
explanation: Als u de vragenlijst toch opslaat, kan het zijn dat er geen schaalscores berekend worden omdat hiervoor onvoldoende informatie voorhanden is. U kunt uw antwoorden hieronder alsnog aanvullen. Vragen die nog niet volledig zijn beantwoord, worden rood gemarkeerd.
|
@@ -54,4 +51,4 @@ nl:
|
|
54
51
|
month: maand
|
55
52
|
year: jaar
|
56
53
|
hour: uur
|
57
|
-
minute: minuut
|
54
|
+
minute: minuut
|
@@ -11,9 +11,9 @@ module Quby
|
|
11
11
|
super
|
12
12
|
end
|
13
13
|
|
14
|
-
def method_missing(method_sym, *args, &block)
|
14
|
+
def method_missing(method_sym, *args, **kwargs, &block)
|
15
15
|
if @custom_methods.key? method_sym
|
16
|
-
instance_exec(*args, &custom_methods[method_sym])
|
16
|
+
instance_exec(*args, **kwargs, &custom_methods[method_sym])
|
17
17
|
else
|
18
18
|
super
|
19
19
|
end
|
@@ -65,9 +65,9 @@ module Quby
|
|
65
65
|
table_builder.instance_eval(&block) if block
|
66
66
|
end
|
67
67
|
|
68
|
-
def method_missing(method_sym, *args, &block)
|
68
|
+
def method_missing(method_sym, *args, **kwargs, &block)
|
69
69
|
if @custom_methods.key? method_sym
|
70
|
-
instance_exec(*args, &@custom_methods[method_sym])
|
70
|
+
instance_exec(*args, **kwargs, &@custom_methods[method_sym])
|
71
71
|
else
|
72
72
|
super
|
73
73
|
end
|
@@ -15,7 +15,6 @@ module Quby
|
|
15
15
|
def end_panel
|
16
16
|
panel do
|
17
17
|
text "*Bedankt voor het invullen van deze vragenlijst.*<br>
|
18
|
-
* U kunt uw antwoorden downloaden door op de knop 'Download als PDF' te klikken. Dit bestand is ook geschikt om af te drukken.<br>
|
19
18
|
* Sla de antwoorden op door op de 'Klaar'-knop onderaan te klikken. Daarna kunt u uw antwoorden niet meer wijzigen."
|
20
19
|
end
|
21
20
|
end
|
@@ -23,7 +22,6 @@ module Quby
|
|
23
22
|
def informal_end_panel
|
24
23
|
panel do
|
25
24
|
text "*Bedankt voor het invullen van deze vragenlijst.*<br>
|
26
|
-
* Je kan je antwoorden downloaden door op de knop 'Download als PDF' te klikken. Dit bestand is ook geschikt om af te drukken.<br>
|
27
25
|
* Sla de antwoorden op door op de 'Klaar'-knop onderaan te klikken. Daarna kun je je antwoorden niet meer wijzigen."
|
28
26
|
end
|
29
27
|
end
|
@@ -34,9 +34,12 @@ module Quby
|
|
34
34
|
tags: questionnaire.tags.to_h.keys,
|
35
35
|
charts: charts,
|
36
36
|
outcome_tables_schema: outcome_tables_schema,
|
37
|
+
outcome_description: questionnaire.outcome_description,
|
37
38
|
questions: questions,
|
38
39
|
scores: scores,
|
39
40
|
anonymous_conditions: questionnaire.anonymous_conditions,
|
41
|
+
flags: flags,
|
42
|
+
textvars: textvars,
|
40
43
|
license: questionnaire.license,
|
41
44
|
licensor: questionnaire.licensor,
|
42
45
|
}
|
@@ -262,6 +265,34 @@ module Quby
|
|
262
265
|
}
|
263
266
|
end
|
264
267
|
|
268
|
+
def flags
|
269
|
+
questionnaire.flags.map do |key, flag|
|
270
|
+
{
|
271
|
+
key: flag.key,
|
272
|
+
description: flag.description,
|
273
|
+
description_true: flag.description_true,
|
274
|
+
description_false: flag.description_false,
|
275
|
+
internal: flag.internal,
|
276
|
+
trigger_on: flag.trigger_on,
|
277
|
+
shows_questions: flag.shows_questions,
|
278
|
+
hides_questions: flag.hides_questions,
|
279
|
+
depends_on: flag.depends_on,
|
280
|
+
default_in_interface: flag.default_in_interface
|
281
|
+
}
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
def textvars
|
286
|
+
questionnaire.textvars.map do |key, textvar|
|
287
|
+
{
|
288
|
+
key: textvar.key,
|
289
|
+
description: textvar.description,
|
290
|
+
default: textvar.default,
|
291
|
+
depends_on_flag: textvar.depends_on_flag
|
292
|
+
}
|
293
|
+
end
|
294
|
+
end
|
295
|
+
|
265
296
|
def parse_markdown_and_strip_tags(markdown)
|
266
297
|
strip_tags_without_html_encode(Quby::Compiler::MarkdownParser.new(markdown).to_html)
|
267
298
|
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.5.
|
4
|
+
version: 0.5.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: 2023-
|
11
|
+
date: 2023-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.4.
|
247
|
+
rubygems_version: 3.4.10
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: Quby::Compiler compiles a DSL for questionnaires to JSON
|