qti 2.23.3 → 2.24.0

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: fa2391bbfd265fba1241b29e4da36121ef06649841bcc2037f7dd34c27523bc4
4
+ data.tar.gz: a6ba533017ca01b780802613bb7dd1d571511da04e41913a6eb2ac052ffde089
5
5
  SHA512:
6
- metadata.gz: 1a7182cb2d4cf71405b46a3ab714faa89ddbcdb47552b90ddc5b33685b9a924540ced776092690f160017430f40c93f0af7d3f94c7593c601d5f1a7ef15cbd0d
7
- data.tar.gz: cace046b4c9072f8929208bfba2360b4582f3b8e3f757af9a7367c8e424876a6e8c85632d41d632f1a2d16bcbc5d752eddf9f069bc1290ed00076fc522bfb631
6
+ metadata.gz: 42ad1f00560acbecb59706297352f19cf72b68d11a68a23135d086b00f678b721c4529aaef5c04027457dc215b0264ea5f2158b10f1a095127b746c2013689e6
7
+ data.tar.gz: 634a08fff1a70580908fdab9242c9ea333c8beff5529e136455f9b37f7e9652fd3ee4c3327c5ce2f6153825474149b6bc5fa935044f05b304f4a88a3515228f1
@@ -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.24.0'.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>
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../../'
4
+
5
+ gem 'rails', '~> 7.0.0'
@@ -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.24.0
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-10-23 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionview
@@ -20,40 +20,40 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: '5.2'
23
+ version: '6.0'
24
24
  - - "<"
25
25
  - !ruby/object:Gem::Version
26
- version: '6.2'
26
+ version: '7.2'
27
27
  type: :runtime
28
28
  prerelease: false
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '5.2'
33
+ version: '6.0'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '6.2'
36
+ version: '7.2'
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: activesupport
39
39
  requirement: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '5.2'
43
+ version: '6.0'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '6.2'
46
+ version: '7.2'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '5.2'
53
+ version: '6.0'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '6.2'
56
+ version: '7.2'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: dry-logic
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -678,6 +678,7 @@ files:
678
678
  - spec/gemfiles/rails-5.2.gemfile
679
679
  - spec/gemfiles/rails-6.0.gemfile
680
680
  - spec/gemfiles/rails-6.1.gemfile
681
+ - spec/gemfiles/rails-7.0.gemfile
681
682
  - spec/lib/qti/assessment_item_exporter_spec.rb
682
683
  - spec/lib/qti/exporter_spec.rb
683
684
  - spec/lib/qti/models/assessment_meta_spec.rb
@@ -745,7 +746,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
745
746
  requirements:
746
747
  - - ">="
747
748
  - !ruby/object:Gem::Version
748
- version: '2.6'
749
+ version: '2.7'
749
750
  required_rubygems_version: !ruby/object:Gem::Requirement
750
751
  requirements:
751
752
  - - ">="
@@ -1059,6 +1060,7 @@ test_files:
1059
1060
  - spec/gemfiles/rails-5.2.gemfile
1060
1061
  - spec/gemfiles/rails-6.0.gemfile
1061
1062
  - spec/gemfiles/rails-6.1.gemfile
1063
+ - spec/gemfiles/rails-7.0.gemfile
1062
1064
  - spec/lib/qti/assessment_item_exporter_spec.rb
1063
1065
  - spec/lib/qti/exporter_spec.rb
1064
1066
  - spec/lib/qti/models/assessment_meta_spec.rb