qti 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 393747e20e5dfd4ea82c84d94a453ff255dca004
4
- data.tar.gz: 4895db6433e8b5b37775888cffc6b884103637b2
3
+ metadata.gz: 253924e98c131f8cfb7c57d2a759ffdf3cecc619
4
+ data.tar.gz: 56d20eb6905592308d90cba3a81a72a44fabd293
5
5
  SHA512:
6
- metadata.gz: 025acd7b5b163a07ff92daf38373037fe62ae82a6a46aa0101f95d0d924186dcecd467d5a4c585cb4e35b20d94e7e716b00c1070719b60871f3847a23f017506
7
- data.tar.gz: 5bc328455e6b63cb3e543d0199e135aee3696b2d66be5994732ba7ae36dccc6211602870887c6c1d7b0f633caa2275238b718d88e56f82a7e8bf2b880faa325a
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
- ### Installation
9
+ ## Installation
10
10
 
11
11
  ```sh
12
12
  $ cd your_project
13
13
  $ bundle install qti
14
14
  ```
15
15
 
16
- ### Usage
16
+ ## Usage
17
17
 
18
18
  `require 'qti'`
19
19
  `@gem = Qti::Importer.new(path_of_quiz)`
20
20
 
21
- Now you can use the gem to access the manifest, the assessments, and the assessment items and use it in your own code!
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
- ### Development
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
- ### To Do
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.1
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-08 00:00:00.000000000 Z
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 importer
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