qti 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/null_logger.rb +2 -4
  3. data/lib/qti/models/base.rb +8 -10
  4. data/lib/qti/models/manifest.rb +4 -8
  5. data/lib/qti/v1/models/assessment.rb +4 -4
  6. data/lib/qti/v1/models/assessment_item.rb +2 -2
  7. data/lib/qti/v1/models/choices/fill_blank_choice.rb +1 -1
  8. data/lib/qti/v1/models/interactions/base_interaction.rb +1 -1
  9. data/lib/qti/v1/models/interactions/choice_interaction.rb +1 -1
  10. data/lib/qti/v1/models/interactions/fill_blank_interaction.rb +6 -7
  11. data/lib/qti/v1/models/interactions/ordering_interaction.rb +1 -1
  12. data/lib/qti/v1/models/scoring_data.rb +1 -1
  13. data/lib/qti/v2/models/assessment_item.rb +1 -1
  14. data/lib/qti/v2/models/assessment_test.rb +3 -3
  15. data/lib/qti/v2/models/base.rb +6 -6
  16. data/lib/qti/v2/models/choices/simple_choice.rb +1 -1
  17. data/lib/qti/v2/models/interactions/base_interaction.rb +1 -1
  18. data/lib/qti/v2/models/interactions/categorization_interaction.rb +1 -1
  19. data/lib/qti/v2/models/interactions/gap_match_interaction.rb +8 -12
  20. data/lib/qti/v2/models/interactions/match_interaction.rb +2 -2
  21. data/lib/qti/v2/models/non_assessment_test.rb +2 -2
  22. data/lib/qti/v2/models/scoring_data.rb +1 -1
  23. data/lib/qti/v2/models/stimulus_item.rb +0 -1
  24. data/lib/qti/version.rb +1 -1
  25. data/spec/gemfiles/nokogiri-1.6.gemfile.lock +126 -0
  26. data/spec/gemfiles/nokogiri-1.8.gemfile.lock +126 -0
  27. data/spec/gemfiles/rails-4.2.gemfile.lock +203 -0
  28. data/spec/gemfiles/rails-5.0.gemfile.lock +209 -0
  29. data/spec/gemfiles/rails-5.1.gemfile.lock +209 -0
  30. data/spec/gemfiles/sanitize-4.2.gemfile.lock +126 -0
  31. data/spec/gemfiles/sanitize-4.5.gemfile.lock +126 -0
  32. data/spec/lib/qti/models/base_spec.rb +10 -10
  33. data/spec/lib/qti/models/manifest_spec.rb +0 -1
  34. data/spec/lib/qti/v1/models/assessment_spec.rb +7 -8
  35. data/spec/lib/qti/v1/models/choices/fill_blank_choice_spec.rb +1 -1
  36. data/spec/lib/qti/v1/models/choices/logical_identifier_choice_spec.rb +1 -1
  37. data/spec/lib/qti/v1/models/interactions/fill_blank_interaction_spec.rb +15 -13
  38. data/spec/lib/qti/v1/models/interactions/ordering_interaction_spec.rb +1 -1
  39. data/spec/lib/qti/v2/models/assessment_item_spec.rb +3 -3
  40. data/spec/lib/qti/v2/models/assessment_test_spec.rb +6 -7
  41. data/spec/lib/qti/v2/models/choices/gap_match_choice_spec.rb +1 -1
  42. data/spec/lib/qti/v2/models/choices/simple_associable_choice_spec.rb +8 -8
  43. data/spec/lib/qti/v2/models/choices/simple_choice_spec.rb +1 -1
  44. data/spec/lib/qti/v2/models/interactions/categorization_interaction_spec.rb +3 -3
  45. data/spec/lib/qti/v2/models/interactions/gap_match_interaction_spec.rb +24 -23
  46. data/spec/lib/qti/v2/models/interactions/ordering_interaction_spec.rb +1 -1
  47. data/spec/lib/qti/v2/models/interactions/short_text_interaction_spec.rb +1 -1
  48. data/spec/lib/qti/v2/models/non_assessment_test_spec.rb +1 -1
  49. data/spec/lib/qti/v2/models/object_element_spec.rb +1 -1
  50. metadata +17 -3
@@ -0,0 +1,209 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ qti (0.9.1)
5
+ activesupport (>= 4.2.9, < 5.2)
6
+ dry-struct (~> 0.2.1)
7
+ nokogiri (>= 1.6.8, < 1.9)
8
+ rubyzip (~> 1.2)
9
+ sanitize (>= 4.2.0, < 5.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ actioncable (5.1.4)
15
+ actionpack (= 5.1.4)
16
+ nio4r (~> 2.0)
17
+ websocket-driver (~> 0.6.1)
18
+ actionmailer (5.1.4)
19
+ actionpack (= 5.1.4)
20
+ actionview (= 5.1.4)
21
+ activejob (= 5.1.4)
22
+ mail (~> 2.5, >= 2.5.4)
23
+ rails-dom-testing (~> 2.0)
24
+ actionpack (5.1.4)
25
+ actionview (= 5.1.4)
26
+ activesupport (= 5.1.4)
27
+ rack (~> 2.0)
28
+ rack-test (>= 0.6.3)
29
+ rails-dom-testing (~> 2.0)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
+ actionview (5.1.4)
32
+ activesupport (= 5.1.4)
33
+ builder (~> 3.1)
34
+ erubi (~> 1.4)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
37
+ activejob (5.1.4)
38
+ activesupport (= 5.1.4)
39
+ globalid (>= 0.3.6)
40
+ activemodel (5.1.4)
41
+ activesupport (= 5.1.4)
42
+ activerecord (5.1.4)
43
+ activemodel (= 5.1.4)
44
+ activesupport (= 5.1.4)
45
+ arel (~> 8.0)
46
+ activesupport (5.1.4)
47
+ concurrent-ruby (~> 1.0, >= 1.0.2)
48
+ i18n (~> 0.7)
49
+ minitest (~> 5.1)
50
+ tzinfo (~> 1.1)
51
+ arel (8.0.0)
52
+ ast (2.3.0)
53
+ builder (3.2.3)
54
+ byebug (9.1.0)
55
+ coderay (1.1.2)
56
+ concurrent-ruby (1.0.5)
57
+ crass (1.0.2)
58
+ diff-lcs (1.3)
59
+ docile (1.1.5)
60
+ dry-configurable (0.7.0)
61
+ concurrent-ruby (~> 1.0)
62
+ dry-container (0.6.0)
63
+ concurrent-ruby (~> 1.0)
64
+ dry-configurable (~> 0.1, >= 0.1.3)
65
+ dry-core (0.3.3)
66
+ concurrent-ruby (~> 1.0)
67
+ dry-equalizer (0.2.0)
68
+ dry-logic (0.4.2)
69
+ dry-container (~> 0.2, >= 0.2.6)
70
+ dry-core (~> 0.2)
71
+ dry-equalizer (~> 0.2)
72
+ dry-struct (0.2.1)
73
+ dry-configurable (~> 0.1)
74
+ dry-equalizer (~> 0.2)
75
+ dry-types (~> 0.9, >= 0.9.0)
76
+ ice_nine (~> 0.11)
77
+ dry-types (0.12.0)
78
+ concurrent-ruby (~> 1.0)
79
+ dry-configurable (~> 0.1)
80
+ dry-container (~> 0.3)
81
+ dry-core (~> 0.2, >= 0.2.1)
82
+ dry-equalizer (~> 0.2)
83
+ dry-logic (~> 0.4, >= 0.4.2)
84
+ inflecto (~> 0.0.0, >= 0.0.2)
85
+ erubi (1.6.1)
86
+ globalid (0.4.0)
87
+ activesupport (>= 4.2.0)
88
+ i18n (0.8.6)
89
+ ice_nine (0.11.2)
90
+ inflecto (0.0.2)
91
+ json (2.1.0)
92
+ loofah (2.1.1)
93
+ crass (~> 1.0.2)
94
+ nokogiri (>= 1.5.9)
95
+ mail (2.6.6)
96
+ mime-types (>= 1.16, < 4)
97
+ method_source (0.9.0)
98
+ mime-types (3.1)
99
+ mime-types-data (~> 3.2015)
100
+ mime-types-data (3.2016.0521)
101
+ mini_portile2 (2.3.0)
102
+ minitest (5.10.3)
103
+ nio4r (2.1.0)
104
+ nokogiri (1.8.1)
105
+ mini_portile2 (~> 2.3.0)
106
+ nokogumbo (1.4.13)
107
+ nokogiri
108
+ parallel (1.12.0)
109
+ parser (2.4.0.0)
110
+ ast (~> 2.2)
111
+ powerpack (0.1.1)
112
+ pry (0.11.1)
113
+ coderay (~> 1.1.0)
114
+ method_source (~> 0.9.0)
115
+ rack (2.0.3)
116
+ rack-test (0.7.0)
117
+ rack (>= 1.0, < 3)
118
+ rails (5.1.4)
119
+ actioncable (= 5.1.4)
120
+ actionmailer (= 5.1.4)
121
+ actionpack (= 5.1.4)
122
+ actionview (= 5.1.4)
123
+ activejob (= 5.1.4)
124
+ activemodel (= 5.1.4)
125
+ activerecord (= 5.1.4)
126
+ activesupport (= 5.1.4)
127
+ bundler (>= 1.3.0)
128
+ railties (= 5.1.4)
129
+ sprockets-rails (>= 2.0.0)
130
+ rails-dom-testing (2.0.3)
131
+ activesupport (>= 4.2.0)
132
+ nokogiri (>= 1.6)
133
+ rails-html-sanitizer (1.0.3)
134
+ loofah (~> 2.0)
135
+ railties (5.1.4)
136
+ actionpack (= 5.1.4)
137
+ activesupport (= 5.1.4)
138
+ method_source
139
+ rake (>= 0.8.7)
140
+ thor (>= 0.18.1, < 2.0)
141
+ rainbow (2.2.2)
142
+ rake
143
+ rake (0.9.6)
144
+ rspec (3.6.0)
145
+ rspec-core (~> 3.6.0)
146
+ rspec-expectations (~> 3.6.0)
147
+ rspec-mocks (~> 3.6.0)
148
+ rspec-core (3.6.0)
149
+ rspec-support (~> 3.6.0)
150
+ rspec-expectations (3.6.0)
151
+ diff-lcs (>= 1.2.0, < 2.0)
152
+ rspec-support (~> 3.6.0)
153
+ rspec-mocks (3.6.0)
154
+ diff-lcs (>= 1.2.0, < 2.0)
155
+ rspec-support (~> 3.6.0)
156
+ rspec-support (3.6.0)
157
+ rubocop (0.50.0)
158
+ parallel (~> 1.10)
159
+ parser (>= 2.3.3.1, < 3.0)
160
+ powerpack (~> 0.1)
161
+ rainbow (>= 2.2.2, < 3.0)
162
+ ruby-progressbar (~> 1.7)
163
+ unicode-display_width (~> 1.0, >= 1.0.1)
164
+ ruby-progressbar (1.8.3)
165
+ rubyzip (1.2.1)
166
+ sanitize (4.5.0)
167
+ crass (~> 1.0.2)
168
+ nokogiri (>= 1.4.4)
169
+ nokogumbo (~> 1.4.1)
170
+ simplecov (0.15.1)
171
+ docile (~> 1.1.0)
172
+ json (>= 1.8, < 3)
173
+ simplecov-html (~> 0.10.0)
174
+ simplecov-html (0.10.2)
175
+ sprockets (3.7.1)
176
+ concurrent-ruby (~> 1.0)
177
+ rack (> 1, < 3)
178
+ sprockets-rails (3.2.1)
179
+ actionpack (>= 4.0)
180
+ activesupport (>= 4.0)
181
+ sprockets (>= 3.0.0)
182
+ thor (0.20.0)
183
+ thread_safe (0.3.6)
184
+ tzinfo (1.2.3)
185
+ thread_safe (~> 0.1)
186
+ unicode-display_width (1.3.0)
187
+ websocket-driver (0.6.5)
188
+ websocket-extensions (>= 0.1.0)
189
+ websocket-extensions (0.1.2)
190
+ wwtd (1.3.0)
191
+
192
+ PLATFORMS
193
+ ruby
194
+
195
+ DEPENDENCIES
196
+ bundler (~> 1.15)
197
+ byebug (~> 9.0)
198
+ pry (~> 0)
199
+ qti!
200
+ rails (~> 5.1.4)
201
+ rake (~> 0)
202
+ rspec (~> 3.6)
203
+ rspec-mocks (~> 3.6)
204
+ rubocop (~> 0.50.0)
205
+ simplecov (~> 0)
206
+ wwtd (~> 1.3)
207
+
208
+ BUNDLED WITH
209
+ 1.15.4
@@ -0,0 +1,126 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ qti (0.9.1)
5
+ activesupport (>= 4.2.9, < 5.2)
6
+ dry-struct (~> 0.2.1)
7
+ nokogiri (>= 1.6.8, < 1.9)
8
+ rubyzip (~> 1.2)
9
+ sanitize (>= 4.2.0, < 5.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ activesupport (5.1.4)
15
+ concurrent-ruby (~> 1.0, >= 1.0.2)
16
+ i18n (~> 0.7)
17
+ minitest (~> 5.1)
18
+ tzinfo (~> 1.1)
19
+ ast (2.3.0)
20
+ byebug (9.1.0)
21
+ coderay (1.1.2)
22
+ concurrent-ruby (1.0.5)
23
+ crass (1.0.2)
24
+ diff-lcs (1.3)
25
+ docile (1.1.5)
26
+ dry-configurable (0.7.0)
27
+ concurrent-ruby (~> 1.0)
28
+ dry-container (0.6.0)
29
+ concurrent-ruby (~> 1.0)
30
+ dry-configurable (~> 0.1, >= 0.1.3)
31
+ dry-core (0.3.3)
32
+ concurrent-ruby (~> 1.0)
33
+ dry-equalizer (0.2.0)
34
+ dry-logic (0.4.2)
35
+ dry-container (~> 0.2, >= 0.2.6)
36
+ dry-core (~> 0.2)
37
+ dry-equalizer (~> 0.2)
38
+ dry-struct (0.2.1)
39
+ dry-configurable (~> 0.1)
40
+ dry-equalizer (~> 0.2)
41
+ dry-types (~> 0.9, >= 0.9.0)
42
+ ice_nine (~> 0.11)
43
+ dry-types (0.12.0)
44
+ concurrent-ruby (~> 1.0)
45
+ dry-configurable (~> 0.1)
46
+ dry-container (~> 0.3)
47
+ dry-core (~> 0.2, >= 0.2.1)
48
+ dry-equalizer (~> 0.2)
49
+ dry-logic (~> 0.4, >= 0.4.2)
50
+ inflecto (~> 0.0.0, >= 0.0.2)
51
+ i18n (0.8.6)
52
+ ice_nine (0.11.2)
53
+ inflecto (0.0.2)
54
+ json (2.1.0)
55
+ method_source (0.9.0)
56
+ mini_portile2 (2.3.0)
57
+ minitest (5.10.3)
58
+ nokogiri (1.8.1)
59
+ mini_portile2 (~> 2.3.0)
60
+ nokogumbo (1.4.13)
61
+ nokogiri
62
+ parallel (1.12.0)
63
+ parser (2.4.0.0)
64
+ ast (~> 2.2)
65
+ powerpack (0.1.1)
66
+ pry (0.11.1)
67
+ coderay (~> 1.1.0)
68
+ method_source (~> 0.9.0)
69
+ rainbow (2.2.2)
70
+ rake
71
+ rake (0.9.6)
72
+ rspec (3.6.0)
73
+ rspec-core (~> 3.6.0)
74
+ rspec-expectations (~> 3.6.0)
75
+ rspec-mocks (~> 3.6.0)
76
+ rspec-core (3.6.0)
77
+ rspec-support (~> 3.6.0)
78
+ rspec-expectations (3.6.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.6.0)
81
+ rspec-mocks (3.6.0)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.6.0)
84
+ rspec-support (3.6.0)
85
+ rubocop (0.50.0)
86
+ parallel (~> 1.10)
87
+ parser (>= 2.3.3.1, < 3.0)
88
+ powerpack (~> 0.1)
89
+ rainbow (>= 2.2.2, < 3.0)
90
+ ruby-progressbar (~> 1.7)
91
+ unicode-display_width (~> 1.0, >= 1.0.1)
92
+ ruby-progressbar (1.8.3)
93
+ rubyzip (1.2.1)
94
+ sanitize (4.2.0)
95
+ crass (~> 1.0.2)
96
+ nokogiri (>= 1.4.4)
97
+ nokogumbo (~> 1.4.1)
98
+ simplecov (0.15.1)
99
+ docile (~> 1.1.0)
100
+ json (>= 1.8, < 3)
101
+ simplecov-html (~> 0.10.0)
102
+ simplecov-html (0.10.2)
103
+ thread_safe (0.3.6)
104
+ tzinfo (1.2.3)
105
+ thread_safe (~> 0.1)
106
+ unicode-display_width (1.3.0)
107
+ wwtd (1.3.0)
108
+
109
+ PLATFORMS
110
+ ruby
111
+
112
+ DEPENDENCIES
113
+ bundler (~> 1.15)
114
+ byebug (~> 9.0)
115
+ pry (~> 0)
116
+ qti!
117
+ rake (~> 0)
118
+ rspec (~> 3.6)
119
+ rspec-mocks (~> 3.6)
120
+ rubocop (~> 0.50.0)
121
+ sanitize (~> 4.2.0)
122
+ simplecov (~> 0)
123
+ wwtd (~> 1.3)
124
+
125
+ BUNDLED WITH
126
+ 1.15.4
@@ -0,0 +1,126 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ qti (0.9.1)
5
+ activesupport (>= 4.2.9, < 5.2)
6
+ dry-struct (~> 0.2.1)
7
+ nokogiri (>= 1.6.8, < 1.9)
8
+ rubyzip (~> 1.2)
9
+ sanitize (>= 4.2.0, < 5.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ activesupport (5.1.4)
15
+ concurrent-ruby (~> 1.0, >= 1.0.2)
16
+ i18n (~> 0.7)
17
+ minitest (~> 5.1)
18
+ tzinfo (~> 1.1)
19
+ ast (2.3.0)
20
+ byebug (9.1.0)
21
+ coderay (1.1.2)
22
+ concurrent-ruby (1.0.5)
23
+ crass (1.0.2)
24
+ diff-lcs (1.3)
25
+ docile (1.1.5)
26
+ dry-configurable (0.7.0)
27
+ concurrent-ruby (~> 1.0)
28
+ dry-container (0.6.0)
29
+ concurrent-ruby (~> 1.0)
30
+ dry-configurable (~> 0.1, >= 0.1.3)
31
+ dry-core (0.3.3)
32
+ concurrent-ruby (~> 1.0)
33
+ dry-equalizer (0.2.0)
34
+ dry-logic (0.4.2)
35
+ dry-container (~> 0.2, >= 0.2.6)
36
+ dry-core (~> 0.2)
37
+ dry-equalizer (~> 0.2)
38
+ dry-struct (0.2.1)
39
+ dry-configurable (~> 0.1)
40
+ dry-equalizer (~> 0.2)
41
+ dry-types (~> 0.9, >= 0.9.0)
42
+ ice_nine (~> 0.11)
43
+ dry-types (0.12.0)
44
+ concurrent-ruby (~> 1.0)
45
+ dry-configurable (~> 0.1)
46
+ dry-container (~> 0.3)
47
+ dry-core (~> 0.2, >= 0.2.1)
48
+ dry-equalizer (~> 0.2)
49
+ dry-logic (~> 0.4, >= 0.4.2)
50
+ inflecto (~> 0.0.0, >= 0.0.2)
51
+ i18n (0.8.6)
52
+ ice_nine (0.11.2)
53
+ inflecto (0.0.2)
54
+ json (2.1.0)
55
+ method_source (0.9.0)
56
+ mini_portile2 (2.3.0)
57
+ minitest (5.10.3)
58
+ nokogiri (1.8.1)
59
+ mini_portile2 (~> 2.3.0)
60
+ nokogumbo (1.4.13)
61
+ nokogiri
62
+ parallel (1.12.0)
63
+ parser (2.4.0.0)
64
+ ast (~> 2.2)
65
+ powerpack (0.1.1)
66
+ pry (0.11.1)
67
+ coderay (~> 1.1.0)
68
+ method_source (~> 0.9.0)
69
+ rainbow (2.2.2)
70
+ rake
71
+ rake (0.9.6)
72
+ rspec (3.6.0)
73
+ rspec-core (~> 3.6.0)
74
+ rspec-expectations (~> 3.6.0)
75
+ rspec-mocks (~> 3.6.0)
76
+ rspec-core (3.6.0)
77
+ rspec-support (~> 3.6.0)
78
+ rspec-expectations (3.6.0)
79
+ diff-lcs (>= 1.2.0, < 2.0)
80
+ rspec-support (~> 3.6.0)
81
+ rspec-mocks (3.6.0)
82
+ diff-lcs (>= 1.2.0, < 2.0)
83
+ rspec-support (~> 3.6.0)
84
+ rspec-support (3.6.0)
85
+ rubocop (0.50.0)
86
+ parallel (~> 1.10)
87
+ parser (>= 2.3.3.1, < 3.0)
88
+ powerpack (~> 0.1)
89
+ rainbow (>= 2.2.2, < 3.0)
90
+ ruby-progressbar (~> 1.7)
91
+ unicode-display_width (~> 1.0, >= 1.0.1)
92
+ ruby-progressbar (1.8.3)
93
+ rubyzip (1.2.1)
94
+ sanitize (4.5.0)
95
+ crass (~> 1.0.2)
96
+ nokogiri (>= 1.4.4)
97
+ nokogumbo (~> 1.4.1)
98
+ simplecov (0.15.1)
99
+ docile (~> 1.1.0)
100
+ json (>= 1.8, < 3)
101
+ simplecov-html (~> 0.10.0)
102
+ simplecov-html (0.10.2)
103
+ thread_safe (0.3.6)
104
+ tzinfo (1.2.3)
105
+ thread_safe (~> 0.1)
106
+ unicode-display_width (1.3.0)
107
+ wwtd (1.3.0)
108
+
109
+ PLATFORMS
110
+ ruby
111
+
112
+ DEPENDENCIES
113
+ bundler (~> 1.15)
114
+ byebug (~> 9.0)
115
+ pry (~> 0)
116
+ qti!
117
+ rake (~> 0)
118
+ rspec (~> 3.6)
119
+ rspec-mocks (~> 3.6)
120
+ rubocop (~> 0.50.0)
121
+ sanitize (~> 4.5.0)
122
+ simplecov (~> 0)
123
+ wwtd (~> 1.3)
124
+
125
+ BUNDLED WITH
126
+ 1.15.4