moodle2cc 0.2.20 → 0.2.21

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTJmMGI3MGEyMTZjZDc0OTdlOTc0NjFlNGRlY2JlZjRhY2FhNzRiYg==
4
+ NmUyYzkxZmQ3OGYwMGE1MzIwYmRlNjc3MmRkZjdjNTIzYmZlMGNkYg==
5
5
  data.tar.gz: !binary |-
6
- OTFkNjkzZDY0YTVkM2U1Y2EwMGYyNmFjNTA4NzZmZjExMjBlMDRkNA==
6
+ MWFlM2JhMWRhMDkxYjFhN2Q2OTA0NzA3NWM4NTc4MzkxMWNjZDhjZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWM0MzcxNzhiZGFiMDU5ZjdjYmM1ZjRiZGQ3ZTg5NjFhYzdjNzNlNTQ5Y2Fh
10
- N2EzNWRmNmJmNGM4MzZjYzU4YmQzOTdiMTAyODhhY2M2Yzk3MDMzMDM0ZTlm
11
- MTc4YmZhYzI0ZjkzNzI0M2ZkYWM0MDdlNTgwMDA0ZGQ2MDk1YmY=
9
+ MjNjNDRiNzIxMzk0ZmQ4Mjg4OGY1YTJlNWM5YzNiOWIwYjNlYzJlZTcxNzVm
10
+ ZjU2NTU2Nzc3M2M0OGQzZjhmNjIxOTU0ZWQyM2YxNjE2NWNlZDBjY2FkMTIz
11
+ ZjhlMDk5YzExZTYyMTM2ZGY2ODAxYzNmODNjZTljNmUxYWUxMjc=
12
12
  data.tar.gz: !binary |-
13
- YzdlNTQ5Mjk2YTIzMzk4MmMyOGQxNmJjMjMxNmNmNDA2Y2E3NzI3YTJkNjVh
14
- M2ZjYWRiOGI4YmIzY2RiMzQxNzc3MjBlODFmOWM4YTg2Zjk0OTY5OTkyNjk4
15
- YmQ1ZmE5YzhlMmQ0YjIyODgxYjJmZTNlMmQ0NjkzOGM4NWZiNmY=
13
+ ZjRlYWU1ZTE0NTRhNTliMzY5ZjE4MGJiNmM4ZTJjOTY4YzA5OWYxYzg2M2Fm
14
+ YWE1YjMyYTUwY2M2YzAwMzMwNGI5ODUwMGVjNDZhNjUyOTU4MjA2MWVjNjJj
15
+ ZGYwMmUzNmQzMjkyMWIzMTRiYmI5NDQ3OTQxNjljNmYwNWFmNTU=
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2015-06-10 Version 0.2.21
2
+ * Add question point conversion for Moodle 2
3
+
1
4
  2015-05-20 Version 0.2.20
2
5
  * Fix certain matching question parsing errors for Moodle 1.9
3
6
 
@@ -124,7 +127,7 @@
124
127
  2012-07-26 Version 0.1.1
125
128
 
126
129
  * Fix extra whitespace errors
127
- * Add ability to inject logger during conversion process
130
+ * Add ability to inject logger during conversion process
128
131
 
129
132
 
130
133
  2012-7-24 Version 0.1.0
@@ -34,6 +34,7 @@ module Moodle2CC::Moodle2Converter
34
34
  canvas_question.identifier = generate_unique_identifier_for(moodle_question.id, '_quiz_question')
35
35
  canvas_question.original_identifier = moodle_question.id
36
36
  canvas_question.title = truncate_text(moodle_question.name)
37
+ canvas_question.points_possible = moodle_question.default_mark
37
38
  canvas_question.general_feedback = moodle_question.general_feedback
38
39
  canvas_question.answers = moodle_question.answers.map do |moodle_answer|
39
40
  Moodle2CC::CanvasCC::Models::Answer.new(moodle_answer)
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
3
3
  end
@@ -37,6 +37,7 @@ module Moodle2CC::Moodle2Converter::QuestionConverters
37
37
  answer = Moodle2CC::Moodle2::Models::Quizzes::Answer.new
38
38
  answer.id = 'blah'
39
39
  moodle_question.answers = [answer]
40
+ moodle_question.default_mark = 2
40
41
  moodle_question.general_feedback = 'random stuff'
41
42
  moodle_question.question_text = 'other stuff'
42
43
 
@@ -47,6 +48,7 @@ module Moodle2CC::Moodle2Converter::QuestionConverters
47
48
  expect(converted_question.answers.count).to eq moodle_question.answers.count
48
49
  expect(converted_question.answers.first.id).to eq moodle_question.answers.first.id
49
50
  expect(converted_question.general_feedback).to eq moodle_question.general_feedback
51
+ expect(converted_question.points_possible).to eq moodle_question.default_mark
50
52
  expect(converted_question.material).to eq moodle_question.question_text
51
53
  end
52
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moodle2cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Durtschi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-05-20 00:00:00.000000000 Z
13
+ date: 2015-06-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyzip