TriviaMD 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quizzes_v1.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 847f2e364b5b1118c064f21dfcc93f9038a1caa8b628e3bd594059def01bb6e3
|
4
|
+
data.tar.gz: 695a7af4b76beb415b9ace4c026c5390a3d157a3ae7698a5e3d7ae69dd4c132d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29dd27234614d21c20b59c6053d8f7712412326b9f92c3f4947cbd75f283b63a5ed12a0bbc3cd21292ab1e6baa8291948794f5028109c734583486644b3991aa
|
7
|
+
data.tar.gz: 4fdbbe25ce3051a02f243c94d17a5956f16d06e2cd031d9c228ed2c1741f1a21015834abe991fc8f92cfe3903b13e9022267ebde3129b1e60a2e47eda812108a
|
data/lib/quizzes_v1.rb
CHANGED
@@ -38,7 +38,11 @@ class QuizzesV1
|
|
38
38
|
body = {
|
39
39
|
question: {
|
40
40
|
question_text: question["question"],
|
41
|
-
question_type: "multiple_answers_question"
|
41
|
+
question_type: "multiple_answers_question",
|
42
|
+
neutral_comments: question["reason"],
|
43
|
+
correct_comments: question["reason"],
|
44
|
+
incorrect_comments: question["reason"],
|
45
|
+
points_possible: 1
|
42
46
|
}
|
43
47
|
}
|
44
48
|
body[:question][:answers] = question["answers"].map do |a|
|