quby-compiler 0.5.26 → 0.5.27
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: a93d6d4ac13078651742bb23af84089fa529ac307fe1352e54bebd563d76b168
|
4
|
+
data.tar.gz: 4289ba8dd18fce9b9524442c47505be23026e2b9a5588281bba80feeafffe96c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4375702ad36d91113b3c1845e2689bef9f4da47c4de32d877c3f26f5c08268ecb8aaef851acd1b2cc7b22879a7845094b2a768caa26db8ab344058f086885474
|
7
|
+
data.tar.gz: c5464526e4bc0b4ccb0228e83179140477c72a5bc8fb1eae2ff6a12bad94af7e505afc60104e395d9a572cb45837b599b0d5767cc636671fac79a162f4c2afc2
|
data/CHANGELOG.md
CHANGED
@@ -261,12 +261,16 @@ module Quby
|
|
261
261
|
end
|
262
262
|
|
263
263
|
def option_as_json(option)
|
264
|
+
label = option.label || option.description
|
265
|
+
label = handle_html(label) if option.question.type != :select
|
266
|
+
description = !option.label ? nil : option.description
|
267
|
+
description = handle_html(description) if option.question.type != :select
|
264
268
|
{
|
265
269
|
type: 'option',
|
266
270
|
key: option.key,
|
267
271
|
value: option.question.type != :check_box && option.value,
|
268
|
-
label
|
269
|
-
description
|
272
|
+
label:,
|
273
|
+
description:,
|
270
274
|
questions: option.question.type != :select && option.questions.map{ question(_1) },
|
271
275
|
hidden: option.hidden.presence,
|
272
276
|
viewId: option.view_id
|
@@ -244,7 +244,7 @@ module Quby
|
|
244
244
|
{
|
245
245
|
key: option.key,
|
246
246
|
value: (option.value.to_s unless question.type == :check_box),
|
247
|
-
description: option.context_free_description || parse_markdown_and_strip_tags(option.description),
|
247
|
+
description: option.context_free_description || parse_markdown_and_strip_tags(option.label || option.description),
|
248
248
|
child_question_keys: option.questions.map(&:key).presence,
|
249
249
|
unchecks_all_others: question.try(:uncheck_all_option) && question.uncheck_all_option == option.key
|
250
250
|
}.compact
|
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.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activemodel
|