qti 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qti.rb +7 -0
- data/lib/qti/v1/models/interactions.rb +0 -1
- data/lib/qti/v1/models/interactions/numeric_interaction.rb +4 -14
- data/lib/qti/v1/models/numerics/exact_match.rb +43 -0
- data/lib/qti/v1/models/numerics/margin_error.rb +51 -0
- data/lib/qti/v1/models/numerics/precision.rb +65 -0
- data/lib/qti/v1/models/numerics/scoring_base.rb +29 -0
- data/lib/qti/v1/models/numerics/scoring_data.rb +26 -0
- data/lib/qti/v1/models/numerics/scoring_node.rb +29 -0
- data/lib/qti/v1/models/numerics/within_range.rb +36 -0
- data/lib/qti/version.rb +1 -1
- data/spec/fixtures/items_1.2/{numeric.xml → numeric_exact_match.xml} +0 -0
- data/spec/fixtures/items_1.2/numeric_margin_error.xml +58 -0
- data/spec/fixtures/items_1.2/numeric_precision.xml +58 -0
- data/spec/fixtures/items_1.2/numeric_within_range.xml +53 -0
- data/spec/gemfiles/nokogiri-1.8.gemfile.lock +35 -18
- data/spec/lib/qti/v1/models/interactions/numeric_interaction_spec.rb +92 -27
- data/spec/lib/qti/v1/models/numerics/exact_match_spec.rb +84 -0
- data/spec/lib/qti/v1/models/numerics/margin_error_spec.rb +80 -0
- data/spec/lib/qti/v1/models/numerics/precision_spec.rb +88 -0
- data/spec/lib/qti/v1/models/numerics/scoring_base_spec.rb +35 -0
- data/spec/lib/qti/v1/models/numerics/scoring_node_spec.rb +29 -0
- data/spec/lib/qti/v1/models/numerics/within_range_spec.rb +64 -0
- data/spec/spec_helper.rb +1 -0
- metadata +44 -17
- data/spec/gemfiles/nokogiri-1.6.gemfile.lock +0 -127
- data/spec/gemfiles/rails-4.2.gemfile.lock +0 -204
- data/spec/gemfiles/rails-5.0.gemfile.lock +0 -210
- data/spec/gemfiles/rails-5.1.gemfile.lock +0 -210
- data/spec/gemfiles/sanitize-4.2.gemfile.lock +0 -127
- data/spec/gemfiles/sanitize-4.5.gemfile.lock +0 -127
@@ -1,127 +0,0 @@
|
|
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
|
@@ -1,127 +0,0 @@
|
|
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
|