quby-compiler 0.5.27 → 0.5.29
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb884b82a733382fca3791ab2b9f2f72062dbb7c378f7ed2cd97c10bcd8f2aae
|
4
|
+
data.tar.gz: 4a4835da650c648b416246797a550d5ea02f0923eee774c0bf269058f1b0a025
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86ab18bb6a9bdadee7ad7ab299cb823c601dc5aeaccc48740353326b68cae8f4b775fbdba79fdd2a241e9643f7e466d16ef12d49fff1152c640eb4b222fa5799
|
7
|
+
data.tar.gz: e76c0cd997943943648f5d1d0a01f2753fa544a6ff2f712bfd97feea87ae6119e74b7378790f6862d99ace2729779bce16141ad579cef126a6c68e3e5bdfb052
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 0.5.29
|
2
|
+
|
3
|
+
* quby2.json: force scale questions to horizontal (so quby2 doesn't have to anymore)
|
4
|
+
|
5
|
+
# 0.5.28
|
6
|
+
|
7
|
+
* roqua.json: Don't parse markdown in title/descriptions for layout_version :v2
|
8
|
+
|
1
9
|
# 0.5.27
|
2
10
|
|
3
11
|
* roqua.json: put label in context_free description if present.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
merge(values(:v_1, :v_2), values(v_4).recode(1 => 3)).sum
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
divide(value(:v_2), multiply(value(:v_1), value(:v_1)))
|
6
|
+
|
7
|
+
w / l * l
|
8
|
+
|
9
|
+
|
10
|
+
sexp_variable :key1 do
|
11
|
+
foo = values(:v_1, :v_2)
|
12
|
+
bar = recode(foo, 1 => 3)
|
13
|
+
bla = merge(foo, bar)
|
14
|
+
sum(bla)
|
15
|
+
|
16
|
+
end
|
@@ -304,8 +304,13 @@ module Quby
|
|
304
304
|
end
|
305
305
|
end
|
306
306
|
|
307
|
-
|
308
|
-
|
307
|
+
# Only parses markdown for layout v1
|
308
|
+
def parse_markdown_and_strip_tags(markdown_or_html)
|
309
|
+
if questionnaire.layout_version == :v2 # only supports markdown in `text`-method, which doesn't show up in roqua.json
|
310
|
+
strip_tags_without_html_encode(markdown_or_html)
|
311
|
+
else
|
312
|
+
strip_tags_without_html_encode(Quby::Compiler::MarkdownParser.new(markdown_or_html).to_html)
|
313
|
+
end
|
309
314
|
end
|
310
315
|
|
311
316
|
def strip_tags_without_html_encode(html)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-08-
|
10
|
+
date: 2025-08-27 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activemodel
|
@@ -151,6 +151,7 @@ files:
|
|
151
151
|
- lib/quby/compiler/dsl/charting/radar_chart_builder.rb
|
152
152
|
- lib/quby/compiler/dsl/helpers.rb
|
153
153
|
- lib/quby/compiler/dsl/info_block_builder.rb
|
154
|
+
- lib/quby/compiler/dsl/merge(values(:v_1, :v_2), values(v_4).rb
|
154
155
|
- lib/quby/compiler/dsl/panel_builder.rb
|
155
156
|
- lib/quby/compiler/dsl/question_builder.rb
|
156
157
|
- lib/quby/compiler/dsl/questionnaire_builder.rb
|