TriviaMD 0.1.3 → 0.1.4
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 +3 -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: ea7d8b0baa803ab62daaf63ac882c723e13ee9b2e7eb6a8558997516d2290093
|
4
|
+
data.tar.gz: 3601c0ae381b8b9ad0f0a04404094b371afa2f45e32449ce0035500390463df0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c988e5b9a698b8477a4b276ac84853131a7cd9e261d3131405ed6dab8902c0533c16340ac1728144560d6c6d3bcaefa21035fa4a53e5c4330a331d0945e53f47
|
7
|
+
data.tar.gz: f1c9ff7f1cddbc94885dd402f90e02facb6e8aa76d08031689dc86669a6bd2ea6adbf37af4ac8b3cbd0eef94bb761afc26d8addc9767e311f335b0daee1bed03
|
data/lib/quizzes_v1.rb
CHANGED
@@ -38,7 +38,9 @@ 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
|
+
points_possible: 1
|
42
44
|
}
|
43
45
|
}
|
44
46
|
body[:question][:answers] = question["answers"].map do |a|
|