qti 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,127 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ qti (0.9.3)
5
+ activesupport (>= 4.2.9, < 5.2)
6
+ dry-struct (~> 0.2.1)
7
+ dry-types (~> 0.12.0)
8
+ nokogiri (>= 1.6.8, < 1.9)
9
+ rubyzip (~> 1.2)
10
+ sanitize (>= 4.2.0, < 5.0)
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ activesupport (5.1.4)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (~> 0.7)
18
+ minitest (~> 5.1)
19
+ tzinfo (~> 1.1)
20
+ ast (2.3.0)
21
+ byebug (9.1.0)
22
+ coderay (1.1.2)
23
+ concurrent-ruby (1.0.5)
24
+ crass (1.0.2)
25
+ diff-lcs (1.3)
26
+ docile (1.1.5)
27
+ dry-configurable (0.7.0)
28
+ concurrent-ruby (~> 1.0)
29
+ dry-container (0.6.0)
30
+ concurrent-ruby (~> 1.0)
31
+ dry-configurable (~> 0.1, >= 0.1.3)
32
+ dry-core (0.3.4)
33
+ concurrent-ruby (~> 1.0)
34
+ dry-equalizer (0.2.0)
35
+ dry-logic (0.4.2)
36
+ dry-container (~> 0.2, >= 0.2.6)
37
+ dry-core (~> 0.2)
38
+ dry-equalizer (~> 0.2)
39
+ dry-struct (0.2.1)
40
+ dry-configurable (~> 0.1)
41
+ dry-equalizer (~> 0.2)
42
+ dry-types (~> 0.9, >= 0.9.0)
43
+ ice_nine (~> 0.11)
44
+ dry-types (0.12.0)
45
+ concurrent-ruby (~> 1.0)
46
+ dry-configurable (~> 0.1)
47
+ dry-container (~> 0.3)
48
+ dry-core (~> 0.2, >= 0.2.1)
49
+ dry-equalizer (~> 0.2)
50
+ dry-logic (~> 0.4, >= 0.4.2)
51
+ inflecto (~> 0.0.0, >= 0.0.2)
52
+ i18n (0.8.6)
53
+ ice_nine (0.11.2)
54
+ inflecto (0.0.2)
55
+ json (2.1.0)
56
+ method_source (0.9.0)
57
+ mini_portile2 (2.3.0)
58
+ minitest (5.10.3)
59
+ nokogiri (1.8.1)
60
+ mini_portile2 (~> 2.3.0)
61
+ nokogumbo (1.4.13)
62
+ nokogiri
63
+ parallel (1.12.0)
64
+ parser (2.4.0.0)
65
+ ast (~> 2.2)
66
+ powerpack (0.1.1)
67
+ pry (0.11.1)
68
+ coderay (~> 1.1.0)
69
+ method_source (~> 0.9.0)
70
+ rainbow (2.2.2)
71
+ rake
72
+ rake (0.9.6)
73
+ rspec (3.6.0)
74
+ rspec-core (~> 3.6.0)
75
+ rspec-expectations (~> 3.6.0)
76
+ rspec-mocks (~> 3.6.0)
77
+ rspec-core (3.6.0)
78
+ rspec-support (~> 3.6.0)
79
+ rspec-expectations (3.6.0)
80
+ diff-lcs (>= 1.2.0, < 2.0)
81
+ rspec-support (~> 3.6.0)
82
+ rspec-mocks (3.6.0)
83
+ diff-lcs (>= 1.2.0, < 2.0)
84
+ rspec-support (~> 3.6.0)
85
+ rspec-support (3.6.0)
86
+ rubocop (0.50.0)
87
+ parallel (~> 1.10)
88
+ parser (>= 2.3.3.1, < 3.0)
89
+ powerpack (~> 0.1)
90
+ rainbow (>= 2.2.2, < 3.0)
91
+ ruby-progressbar (~> 1.7)
92
+ unicode-display_width (~> 1.0, >= 1.0.1)
93
+ ruby-progressbar (1.8.3)
94
+ rubyzip (1.2.1)
95
+ sanitize (4.2.0)
96
+ crass (~> 1.0.2)
97
+ nokogiri (>= 1.4.4)
98
+ nokogumbo (~> 1.4.1)
99
+ simplecov (0.15.1)
100
+ docile (~> 1.1.0)
101
+ json (>= 1.8, < 3)
102
+ simplecov-html (~> 0.10.0)
103
+ simplecov-html (0.10.2)
104
+ thread_safe (0.3.6)
105
+ tzinfo (1.2.3)
106
+ thread_safe (~> 0.1)
107
+ unicode-display_width (1.3.0)
108
+ wwtd (1.3.0)
109
+
110
+ PLATFORMS
111
+ ruby
112
+
113
+ DEPENDENCIES
114
+ bundler (~> 1.15)
115
+ byebug (~> 9.0)
116
+ pry (~> 0)
117
+ qti!
118
+ rake (~> 0)
119
+ rspec (~> 3.6)
120
+ rspec-mocks (~> 3.6)
121
+ rubocop (~> 0.50.0)
122
+ sanitize (~> 4.2.0)
123
+ simplecov (~> 0)
124
+ wwtd (~> 1.3)
125
+
126
+ BUNDLED WITH
127
+ 1.15.4
@@ -0,0 +1,127 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ qti (0.9.3)
5
+ activesupport (>= 4.2.9, < 5.2)
6
+ dry-struct (~> 0.2.1)
7
+ dry-types (~> 0.12.0)
8
+ nokogiri (>= 1.6.8, < 1.9)
9
+ rubyzip (~> 1.2)
10
+ sanitize (>= 4.2.0, < 5.0)
11
+
12
+ GEM
13
+ remote: https://rubygems.org/
14
+ specs:
15
+ activesupport (5.1.4)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (~> 0.7)
18
+ minitest (~> 5.1)
19
+ tzinfo (~> 1.1)
20
+ ast (2.3.0)
21
+ byebug (9.1.0)
22
+ coderay (1.1.2)
23
+ concurrent-ruby (1.0.5)
24
+ crass (1.0.2)
25
+ diff-lcs (1.3)
26
+ docile (1.1.5)
27
+ dry-configurable (0.7.0)
28
+ concurrent-ruby (~> 1.0)
29
+ dry-container (0.6.0)
30
+ concurrent-ruby (~> 1.0)
31
+ dry-configurable (~> 0.1, >= 0.1.3)
32
+ dry-core (0.3.4)
33
+ concurrent-ruby (~> 1.0)
34
+ dry-equalizer (0.2.0)
35
+ dry-logic (0.4.2)
36
+ dry-container (~> 0.2, >= 0.2.6)
37
+ dry-core (~> 0.2)
38
+ dry-equalizer (~> 0.2)
39
+ dry-struct (0.2.1)
40
+ dry-configurable (~> 0.1)
41
+ dry-equalizer (~> 0.2)
42
+ dry-types (~> 0.9, >= 0.9.0)
43
+ ice_nine (~> 0.11)
44
+ dry-types (0.12.0)
45
+ concurrent-ruby (~> 1.0)
46
+ dry-configurable (~> 0.1)
47
+ dry-container (~> 0.3)
48
+ dry-core (~> 0.2, >= 0.2.1)
49
+ dry-equalizer (~> 0.2)
50
+ dry-logic (~> 0.4, >= 0.4.2)
51
+ inflecto (~> 0.0.0, >= 0.0.2)
52
+ i18n (0.8.6)
53
+ ice_nine (0.11.2)
54
+ inflecto (0.0.2)
55
+ json (2.1.0)
56
+ method_source (0.9.0)
57
+ mini_portile2 (2.3.0)
58
+ minitest (5.10.3)
59
+ nokogiri (1.8.1)
60
+ mini_portile2 (~> 2.3.0)
61
+ nokogumbo (1.4.13)
62
+ nokogiri
63
+ parallel (1.12.0)
64
+ parser (2.4.0.0)
65
+ ast (~> 2.2)
66
+ powerpack (0.1.1)
67
+ pry (0.11.1)
68
+ coderay (~> 1.1.0)
69
+ method_source (~> 0.9.0)
70
+ rainbow (2.2.2)
71
+ rake
72
+ rake (0.9.6)
73
+ rspec (3.6.0)
74
+ rspec-core (~> 3.6.0)
75
+ rspec-expectations (~> 3.6.0)
76
+ rspec-mocks (~> 3.6.0)
77
+ rspec-core (3.6.0)
78
+ rspec-support (~> 3.6.0)
79
+ rspec-expectations (3.6.0)
80
+ diff-lcs (>= 1.2.0, < 2.0)
81
+ rspec-support (~> 3.6.0)
82
+ rspec-mocks (3.6.0)
83
+ diff-lcs (>= 1.2.0, < 2.0)
84
+ rspec-support (~> 3.6.0)
85
+ rspec-support (3.6.0)
86
+ rubocop (0.50.0)
87
+ parallel (~> 1.10)
88
+ parser (>= 2.3.3.1, < 3.0)
89
+ powerpack (~> 0.1)
90
+ rainbow (>= 2.2.2, < 3.0)
91
+ ruby-progressbar (~> 1.7)
92
+ unicode-display_width (~> 1.0, >= 1.0.1)
93
+ ruby-progressbar (1.8.3)
94
+ rubyzip (1.2.1)
95
+ sanitize (4.5.0)
96
+ crass (~> 1.0.2)
97
+ nokogiri (>= 1.4.4)
98
+ nokogumbo (~> 1.4.1)
99
+ simplecov (0.15.1)
100
+ docile (~> 1.1.0)
101
+ json (>= 1.8, < 3)
102
+ simplecov-html (~> 0.10.0)
103
+ simplecov-html (0.10.2)
104
+ thread_safe (0.3.6)
105
+ tzinfo (1.2.3)
106
+ thread_safe (~> 0.1)
107
+ unicode-display_width (1.3.0)
108
+ wwtd (1.3.0)
109
+
110
+ PLATFORMS
111
+ ruby
112
+
113
+ DEPENDENCIES
114
+ bundler (~> 1.15)
115
+ byebug (~> 9.0)
116
+ pry (~> 0)
117
+ qti!
118
+ rake (~> 0)
119
+ rspec (~> 3.6)
120
+ rspec-mocks (~> 3.6)
121
+ rubocop (~> 0.50.0)
122
+ sanitize (~> 4.5.0)
123
+ simplecov (~> 0)
124
+ wwtd (~> 1.3)
125
+
126
+ BUNDLED WITH
127
+ 1.15.4
@@ -63,6 +63,35 @@ describe Qti::V1::Models::Interactions::FillBlankInteraction do
63
63
  end
64
64
  end
65
65
 
66
+ context 'canvas_multiple_fib.xml' do
67
+ let(:file_path) { File.join(fixtures_path, 'canvas_multiple_fib.xml') }
68
+ let(:shuffle_value) { false }
69
+ let(:scoring_data_ids) { %w[9799 5231 5939 6364] }
70
+ let(:scoring_data_values) { %w[red Red blue Blue] }
71
+ let(:scoring_data_case) { %w[no no no no] }
72
+ let(:answer_count) { 4 }
73
+ let(:expected_blanks) {[{id: '9799'}, {id: '5231'}, {id: '5939'}, {id: '6364'}]}
74
+ let(:expected_stem_items) do
75
+ [
76
+ { id: 'stem_0', position: 1, type: 'text', value: '<div><p><span>Roses are ' },
77
+ { id: 'stem_1', position: 2, type: 'blank', blank_id: 'response_color1' },
78
+ { id: 'stem_2', position: 3, type: 'text', value: ', violets are ' },
79
+ { id: 'stem_3', position: 4, type: 'blank', blank_id: 'response_color2' },
80
+ { id: "stem_4", position: 5, type: "text", value: "</span></p></div>"}
81
+ ]
82
+ end
83
+
84
+ include_examples 'shuffled?'
85
+ include_examples 'answers'
86
+ include_examples 'scoring_data_structs'
87
+ include_examples 'blanks'
88
+ include_examples 'stem_items'
89
+
90
+ it 'returns false for #single_fill_in_blank?' do
91
+ expect(loaded_class.single_fill_in_blank?).to eq false
92
+ end
93
+ end
94
+
66
95
  context 'fib_str.xml' do
67
96
  let(:file_path) { File.join(fixtures_path, 'fib_str.xml') }
68
97
  let(:shuffle_value) { false }
@@ -101,7 +130,11 @@ describe Qti::V1::Models::Interactions::FillBlankInteraction do
101
130
 
102
131
  it "returns 'no' as case default value" do
103
132
  allow(nodexml).to receive(:at_xpath)
104
- node = double(content: 'content', attributes: { 'respident' => double(value: 'a') })
133
+ node = double(
134
+ parent: double(parent: double(attributes: 'a')),
135
+ content: 'content',
136
+ attributes: { respident: double(value: 'a') }
137
+ )
105
138
  allow(subject).to receive(:answer_nodes).and_return([node])
106
139
  expect(subject.scoring_data_structs.first.case).to eq 'no'
107
140
  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.9.7
4
+ version: 0.9.8
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: 2018-01-02 00:00:00.000000000 Z
12
+ date: 2018-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -297,6 +297,7 @@ files:
297
297
  - lib/qti/v2/models/scoring_data.rb
298
298
  - lib/qti/v2/models/stimulus_item.rb
299
299
  - lib/qti/version.rb
300
+ - spec/fixtures/items_1.2/canvas_multiple_fib.xml
300
301
  - spec/fixtures/items_1.2/choice.xml
301
302
  - spec/fixtures/items_1.2/essay.xml
302
303
  - spec/fixtures/items_1.2/fib.xml
@@ -505,13 +506,19 @@ files:
505
506
  - spec/fixtures/tests/tests/rtest27.xml
506
507
  - spec/fixtures/unsupported_version/imsmanifest.xml
507
508
  - spec/gemfiles/nokogiri-1.6.gemfile
509
+ - spec/gemfiles/nokogiri-1.6.gemfile.lock
508
510
  - spec/gemfiles/nokogiri-1.8.gemfile
509
511
  - spec/gemfiles/nokogiri-1.8.gemfile.lock
510
512
  - spec/gemfiles/rails-4.2.gemfile
513
+ - spec/gemfiles/rails-4.2.gemfile.lock
511
514
  - spec/gemfiles/rails-5.0.gemfile
515
+ - spec/gemfiles/rails-5.0.gemfile.lock
512
516
  - spec/gemfiles/rails-5.1.gemfile
517
+ - spec/gemfiles/rails-5.1.gemfile.lock
513
518
  - spec/gemfiles/sanitize-4.2.gemfile
519
+ - spec/gemfiles/sanitize-4.2.gemfile.lock
514
520
  - spec/gemfiles/sanitize-4.5.gemfile
521
+ - spec/gemfiles/sanitize-4.5.gemfile.lock
515
522
  - spec/lib/qti/assessment_item_exporter_spec.rb
516
523
  - spec/lib/qti/exporter_spec.rb
517
524
  - spec/lib/qti/models/base_spec.rb
@@ -565,11 +572,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
565
572
  version: '0'
566
573
  requirements: []
567
574
  rubyforge_project:
568
- rubygems_version: 2.6.13
575
+ rubygems_version: 2.6.8
569
576
  signing_key:
570
577
  specification_version: 4
571
578
  summary: QTI 1.2 and 2.1 import and export models
572
579
  test_files:
580
+ - spec/fixtures/items_1.2/canvas_multiple_fib.xml
573
581
  - spec/fixtures/items_1.2/choice.xml
574
582
  - spec/fixtures/items_1.2/essay.xml
575
583
  - spec/fixtures/items_1.2/fib.xml
@@ -778,13 +786,19 @@ test_files:
778
786
  - spec/fixtures/tests/tests/rtest27.xml
779
787
  - spec/fixtures/unsupported_version/imsmanifest.xml
780
788
  - spec/gemfiles/nokogiri-1.6.gemfile
789
+ - spec/gemfiles/nokogiri-1.6.gemfile.lock
781
790
  - spec/gemfiles/nokogiri-1.8.gemfile
782
791
  - spec/gemfiles/nokogiri-1.8.gemfile.lock
783
792
  - spec/gemfiles/rails-4.2.gemfile
793
+ - spec/gemfiles/rails-4.2.gemfile.lock
784
794
  - spec/gemfiles/rails-5.0.gemfile
795
+ - spec/gemfiles/rails-5.0.gemfile.lock
785
796
  - spec/gemfiles/rails-5.1.gemfile
797
+ - spec/gemfiles/rails-5.1.gemfile.lock
786
798
  - spec/gemfiles/sanitize-4.2.gemfile
799
+ - spec/gemfiles/sanitize-4.2.gemfile.lock
787
800
  - spec/gemfiles/sanitize-4.5.gemfile
801
+ - spec/gemfiles/sanitize-4.5.gemfile.lock
788
802
  - spec/lib/qti/assessment_item_exporter_spec.rb
789
803
  - spec/lib/qti/exporter_spec.rb
790
804
  - spec/lib/qti/models/base_spec.rb