qti 0.8.2 → 0.8.3
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,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9501025b957fd152a06d9f8fbcd0a43f18231307
|
4
|
+
data.tar.gz: 780e5d82d983e6d94aea40574865d2d6f59a6c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05be9883791183dc3a1c8261b814cacd48e2a960c7755e004e5e6ed3f210aba9da26b549bd6dbda3a9753cc94cbfbe976709ded15f79f8fb0045a71b8b8a1144
|
7
|
+
data.tar.gz: 77d486e5b21b022b9787448db926c2028341f07ed01731b07c67b0f5b2c48147145a5894554fcd769f49b289de43b287f352637205af966441ae937dc5905414
|
@@ -15,6 +15,8 @@ module Qti
|
|
15
15
|
|
16
16
|
# Filter undesired interaction nodes out of the list (need to make this a deep traversal)
|
17
17
|
node.children.filter(INTERACTION_ELEMENTS_CSS).map(&:unlink)
|
18
|
+
# Filter out rubrics
|
19
|
+
node.children.filter('rubricBlock').map(&:unlink)
|
18
20
|
|
19
21
|
node.add_child(prompt) if prompt&.parent && prompt.parent != node
|
20
22
|
sanitize_content!(node.to_html)
|
@@ -64,4 +64,17 @@ describe Qti::V2::Models::AssessmentItem do
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
67
|
+
|
68
|
+
context 'rubrics' do
|
69
|
+
describe 'with a rubric' do
|
70
|
+
let(:fixtures_path) { File.join('spec', 'fixtures') }
|
71
|
+
let(:file_path) { File.join(fixtures_path, 'items_2.1', 'extended_text_rubric.xml') }
|
72
|
+
let(:loaded_class) { described_class.from_path!(file_path) }
|
73
|
+
|
74
|
+
it 'removes the rubric from the item_body' do
|
75
|
+
expect(loaded_class.item_body).to include 'Read this postcard'
|
76
|
+
expect(loaded_class.item_body).not_to include 'Scoring Guidelines'
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
67
80
|
end
|
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: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannah Bottalla
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -511,7 +511,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
511
511
|
version: '0'
|
512
512
|
requirements: []
|
513
513
|
rubyforge_project:
|
514
|
-
rubygems_version: 2.5.
|
514
|
+
rubygems_version: 2.5.1
|
515
515
|
signing_key:
|
516
516
|
specification_version: 4
|
517
517
|
summary: QTI 1.2 and 2.1 import and export models
|