qti 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +38 -5
- data/lib/qti/v2/models/assessment_test.rb +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 253924e98c131f8cfb7c57d2a759ffdf3cecc619
|
4
|
+
data.tar.gz: 56d20eb6905592308d90cba3a81a72a44fabd293
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b551c2e6ebb81a48a48b20fee97e3c4a5019b61790946b60fe05945e1cace26231e3f48d44daa95ba97ec90883e0cd5505545c436358b01183cf7a471816038
|
7
|
+
data.tar.gz: 796a63685b1ec76b21d579823117c97512703f701fc111c37eb541522a09abd90a5a6190f0c336384654303437c12bdf1e09b5a02bfefd01b469afda84dcc550
|
data/README.md
CHANGED
@@ -6,23 +6,56 @@ The Qti gem supports QTI 1.2 and 2.1. It currently supports the following intera
|
|
6
6
|
- Multiple Choice
|
7
7
|
- Multiple Answer
|
8
8
|
|
9
|
-
|
9
|
+
## Installation
|
10
10
|
|
11
11
|
```sh
|
12
12
|
$ cd your_project
|
13
13
|
$ bundle install qti
|
14
14
|
```
|
15
15
|
|
16
|
-
|
16
|
+
## Usage
|
17
17
|
|
18
18
|
`require 'qti'`
|
19
19
|
`@gem = Qti::Importer.new(path_of_quiz)`
|
20
20
|
|
21
|
-
|
21
|
+
You can use the gem to access the manifest, the assessments, and the assessment items and use it in your own code!
|
22
22
|
|
23
|
-
###
|
23
|
+
### Available methods
|
24
|
+
|
25
|
+
- `import_manifest`
|
26
|
+
|
27
|
+
Returns the version appropriate href from the manifest.xml
|
28
|
+
|
29
|
+
- `test_object`
|
30
|
+
|
31
|
+
Returns the version appropriate Assessment/AssessmentTest model
|
32
|
+
|
33
|
+
|
34
|
+
- `create_assessment_item(assessment_item_ref)`
|
35
|
+
|
36
|
+
Returns the version appropriate AssessmentItem model
|
37
|
+
|
38
|
+
#### Available Methods on the Assessment (QTI 1.2)
|
39
|
+
- `title`
|
40
|
+
- `assessment_items`
|
41
|
+
|
42
|
+
#### Available Methods on the AssessmentTest (QTI 2.1)
|
43
|
+
- `title`
|
44
|
+
- `assessment_item_reference_hrefs` (the hrefs of the xml files in the assessment.xml)
|
45
|
+
- `test_parts`
|
46
|
+
- `assessment_sections`
|
47
|
+
|
48
|
+
#### Available Methods on the AssessmentItem
|
49
|
+
- `identifier`
|
50
|
+
- `title`
|
51
|
+
- `points_possible`
|
52
|
+
- `rcardinality` (QTI 1.2)
|
53
|
+
- ` interaction_model` (ie Choice Interaction)
|
54
|
+
- `scoring_data_structs`
|
55
|
+
|
56
|
+
## Development
|
24
57
|
|
25
58
|
Want to contribute? Submit a pull request!
|
26
59
|
|
27
|
-
|
60
|
+
## To Do
|
28
61
|
- More interaction models!
|
@@ -17,12 +17,10 @@ module Qti
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
# Not used yet
|
21
20
|
def test_parts
|
22
21
|
@test_parts ||= @doc.xpath('//xmlns:testPart')
|
23
22
|
end
|
24
23
|
|
25
|
-
# Not used yet
|
26
24
|
def assessment_sections
|
27
25
|
@assessment_sections ||= test_parts.first.xpath('//xmlns:assessmentSection')
|
28
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannah Bottalla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -328,7 +328,7 @@ rubyforge_project:
|
|
328
328
|
rubygems_version: 2.5.1
|
329
329
|
signing_key:
|
330
330
|
specification_version: 4
|
331
|
-
summary: QTI 1.2 and 2.1
|
331
|
+
summary: QTI 1.2 and 2.1 import models
|
332
332
|
test_files:
|
333
333
|
- spec/fixtures/items_1.2/multiple_answer.xml
|
334
334
|
- spec/fixtures/items_1.2/multiple_choice.xml
|