quby-compiler 0.5.31 → 0.5.33
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: 4c1af309fb9a9b4b95c7ec4e7d41cc9e1f69a21bfbf2b7267649f50b7d87bffe
|
4
|
+
data.tar.gz: 06caabaaed4da6c9951f37491e0d8e31817ec2998b3662bb09186d024a52ce52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b46018e140022030f7aa573e02d9ac213fd8acd28c3d31b24ac4f06d079deade64f60a39455476e337ff34499eb6921449d4f73024d579eb61fe9aabfba0008c
|
7
|
+
data.tar.gz: 821f576e5a389a6cd6f988e667e6440e3aecdc025443caf56a572773065d7142110f298331140b7555fe35867e11ebcfc26a16ab74a4656f4e28413b7a7d2aab
|
data/CHANGELOG.md
CHANGED
@@ -39,13 +39,13 @@ module Quby
|
|
39
39
|
handle_scale(question, question_titles, d_qtypes, vars)
|
40
40
|
when :select
|
41
41
|
d_qtypes[question.key.to_s] = { type: :discrete }
|
42
|
-
for option in question.
|
42
|
+
for option in question.all_options
|
43
43
|
d_qtypes[question.key.to_s][option.value.to_s] = strip_p_tag(option.context_free_description || option.description || "") unless option.placeholder
|
44
44
|
end
|
45
45
|
update_hidden_questions_for(question)
|
46
46
|
when :check_box
|
47
47
|
d_qtypes[question.key.to_s] = { type: :check_box }
|
48
|
-
question.
|
48
|
+
question.all_options.each do |option|
|
49
49
|
next if option.inner_title
|
50
50
|
vars << option.key.to_s
|
51
51
|
if question.hidden
|
@@ -82,7 +82,7 @@ module Quby
|
|
82
82
|
else
|
83
83
|
no_keys = true
|
84
84
|
values = []
|
85
|
-
question.
|
85
|
+
question.all_options.each do |option|
|
86
86
|
if option.value # scale or radio
|
87
87
|
vars << question.key.to_s unless vars.include? question.key.to_s
|
88
88
|
next if option.inner_title
|
@@ -150,7 +150,7 @@ module Quby
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def update_hidden_questions_for(question, for_checkbox: false)
|
153
|
-
shows = question.
|
153
|
+
shows = question.all_options.each_with_object({}) do |option, shows|
|
154
154
|
next if option.inner_title
|
155
155
|
for key in option.shows_questions
|
156
156
|
skey = key.to_s
|
@@ -255,7 +255,7 @@ module Quby
|
|
255
255
|
d_qtypes[quest.key.to_s] = { type: :scale }
|
256
256
|
d_qtypes[quest.key.to_s][:depends] = { values: values, variable: key } unless options[:without_depends]
|
257
257
|
quests[quest.key.to_s] = strip_tags(quest.context_free_title || quest.title || "")
|
258
|
-
for option in quest.
|
258
|
+
for option in quest.all_options
|
259
259
|
next if option.inner_title
|
260
260
|
d_qtypes[quest.key.to_s][option.value.to_s] = strip_p_tag(option.context_free_description || option.description || "")
|
261
261
|
end
|
@@ -276,7 +276,7 @@ module Quby
|
|
276
276
|
d_qtypes[question.key.to_s] = { type: :scale }
|
277
277
|
values = []
|
278
278
|
update_hidden_questions_for(question)
|
279
|
-
for option in question.
|
279
|
+
for option in question.all_options
|
280
280
|
next if option.inner_title
|
281
281
|
d_qtypes[question.key.to_s][option.value.to_s] = strip_p_tag(option.context_free_description || option.description || "")
|
282
282
|
values << option.value.to_s
|