qti 2.23.3 → 2.23.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9719566374e9aa9adafe874fb59f93c2af3ae5205b0ce13e9336dc859844217a
4
- data.tar.gz: de7eb6ec7d447940bc1bc34560d5f7d4baaa880d4e475bb812350b497b2210e5
3
+ metadata.gz: eeed8fd2f47c4cc0e9b58dc60cf95a4d0c5c371c351b9351243cf198f60b4ad2
4
+ data.tar.gz: 65671e7242200110475199e9ff8a3fa847e60b90d6c6d24269e45ec08b431a06
5
5
  SHA512:
6
- metadata.gz: 1a7182cb2d4cf71405b46a3ab714faa89ddbcdb47552b90ddc5b33685b9a924540ced776092690f160017430f40c93f0af7d3f94c7593c601d5f1a7ef15cbd0d
7
- data.tar.gz: cace046b4c9072f8929208bfba2360b4582f3b8e3f757af9a7367c8e424876a6e8c85632d41d632f1a2d16bcbc5d752eddf9f069bc1290ed00076fc522bfb631
6
+ metadata.gz: 5053826023e5230e712cf9360352ca1572274fda65b88d93da294a4138d9e4411a82208188f8c0f2e0d79a1c0729303e3976b4ddea46828688a8967f0a4b9958
7
+ data.tar.gz: 23e438f500f4c6fe8dffe5466aaa61acc6f27c50a669176da2e4682891a674546683584321d7ef2e72c469716cc275b59c7f651017d65cc098a2c4dc7c161a78
@@ -90,6 +90,14 @@ module Qti
90
90
  allowed_attempts_raw.to_i
91
91
  end
92
92
 
93
+ def build_on_last_attempt
94
+ tag_under_quiz('build_on_last_attempt')
95
+ end
96
+
97
+ def build_on_last_attempt?
98
+ string_true?(build_on_last_attempt)
99
+ end
100
+
93
101
  def one_question_at_a_time
94
102
  tag_under_quiz('one_question_at_a_time')
95
103
  end
@@ -343,7 +351,7 @@ module Qti
343
351
  :shuffle_answers?, :calculator_type, :scoring_policy,
344
352
  :cooling_period_seconds, :points_possible,
345
353
  :hide_results, :quiz_type, :anonymous_submissions?,
346
- :could_be_locked?, :allowed_attempts, :one_question_at_a_time?,
354
+ :could_be_locked?, :allowed_attempts, :build_on_last_attempt?, :one_question_at_a_time?,
347
355
  :cant_go_back?, :available?, :one_time_results?,
348
356
  :show_correct_answers_last_attempt?, :only_visible_to_overrides?,
349
357
  :module_locked?, :access_code, :ip_filter, :time_limit,
data/lib/qti/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Qti
2
- VERSION = '2.23.3'.freeze
2
+ VERSION = '2.23.4'.freeze
3
3
  end
@@ -15,6 +15,7 @@
15
15
  <anonymous_submissions>false</anonymous_submissions>
16
16
  <could_be_locked>false</could_be_locked>
17
17
  <allowed_attempts>1</allowed_attempts>
18
+ <build_on_last_attempt>true</build_on_last_attempt>
18
19
  <one_question_at_a_time>false</one_question_at_a_time>
19
20
  <cant_go_back>false</cant_go_back>
20
21
  <available>true</available>
@@ -15,6 +15,7 @@
15
15
  <anonymous_submissions>false</anonymous_submissions>
16
16
  <could_be_locked>false</could_be_locked>
17
17
  <allowed_attempts>1</allowed_attempts>
18
+ <build_on_last_attempt>true</build_on_last_attempt>
18
19
  <one_question_at_a_time>false</one_question_at_a_time>
19
20
  <cant_go_back>false</cant_go_back>
20
21
  <available>true</available>
@@ -14,6 +14,7 @@
14
14
  <anonymous_submissions>false</anonymous_submissions>
15
15
  <could_be_locked>false</could_be_locked>
16
16
  <allowed_attempts>1</allowed_attempts>
17
+ <build_on_last_attempt>true</build_on_last_attempt>
17
18
  <one_question_at_a_time>false</one_question_at_a_time>
18
19
  <cant_go_back>false</cant_go_back>
19
20
  <available>true</available>
@@ -26,6 +26,7 @@
26
26
  <could_be_locked>false</could_be_locked>
27
27
  <time_limit>187</time_limit>
28
28
  <allowed_attempts>52</allowed_attempts>
29
+ <build_on_last_attempt>false</build_on_last_attempt>
29
30
  <one_question_at_a_time>true</one_question_at_a_time>
30
31
  <cant_go_back>true</cant_go_back>
31
32
  <available>false</available>
@@ -23,6 +23,7 @@
23
23
  <could_be_locked></could_be_locked>
24
24
  <time_limit></time_limit>
25
25
  <allowed_attempts></allowed_attempts>
26
+ <build_on_last_attempt></build_on_last_attempt>
26
27
  <one_question_at_a_time></one_question_at_a_time>
27
28
  <cant_go_back></cant_go_back>
28
29
  <available></available>
@@ -12,6 +12,7 @@ context 'Canvas Assessment Meta Data' do
12
12
  expect(assessment.canvas_points_possible).to eq(points_possible)
13
13
  expect(assessment.canvas_one_question_at_a_time?).to eq(oqaat)
14
14
  expect(assessment.canvas_allowed_attempts).to eq(allowed_attempts)
15
+ expect(assessment.canvas_build_on_last_attempt?).to eq(build_on_last_attempt)
15
16
  expect(assessment.canvas_hide_results).to eq(hide_results)
16
17
  expect(assessment.canvas_quiz_type).to eq(quiz_type)
17
18
  expect(assessment.canvas_anonymous_submissions?).to eq(anon_submissions)
@@ -67,6 +68,7 @@ context 'Canvas Assessment Meta Data' do
67
68
  let(:points_possible) { 4.0 }
68
69
  let(:oqaat) { false }
69
70
  let(:allowed_attempts) { 1 }
71
+ let(:build_on_last_attempt) { true }
70
72
  let(:hide_results) { nil }
71
73
  let(:quiz_type) { 'assignment' }
72
74
  let('anon_submissions') { false }
@@ -122,6 +124,7 @@ context 'Canvas Assessment Meta Data' do
122
124
  let(:points_possible) { 0.0 }
123
125
  let(:oqaat) { true }
124
126
  let(:allowed_attempts) { 52 }
127
+ let(:build_on_last_attempt) { false }
125
128
  let(:hide_results) { nil }
126
129
  let(:quiz_type) { 'assignment' }
127
130
  let('anon_submissions') { false }
@@ -182,6 +185,7 @@ context 'Canvas Assessment Meta Data' do
182
185
  let(:points_possible) { 0.0 }
183
186
  let(:oqaat) { false }
184
187
  let(:allowed_attempts) { 0 }
188
+ let(:build_on_last_attempt) { false }
185
189
  let(:hide_results) { nil }
186
190
  let(:quiz_type) { nil }
187
191
  let('anon_submissions') { false }
@@ -237,6 +241,7 @@ context 'Canvas Assessment Meta Data' do
237
241
  let(:points_possible) { 1.0 }
238
242
  let(:oqaat) { false }
239
243
  let(:allowed_attempts) { 1 }
244
+ let(:build_on_last_attempt) { true }
240
245
  let(:hide_results) { nil }
241
246
  let(:quiz_type) { 'assignment' }
242
247
  let('anon_submissions') { false }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qti
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.23.3
4
+ version: 2.23.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Diaz
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2024-07-23 00:00:00.000000000 Z
15
+ date: 2024-08-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionview