scorm_engine 0.1.0 → 0.2.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e137674a0bf0d74260cd49ab5606d145001c1a2af1783ff86a995982a036a9fa
|
4
|
+
data.tar.gz: 90c6c75293a728ca0aa5a86ce576f78681fe51841b8ab77ee6855d0b88c1a8b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c7a8fd179443647dcfcb9022cf092ea984e4f0a4128ee3812794b14a9d366d80d0ba2481ef8e02562600e0dc4c5c64fe389a1b52208592e00194f42488a307
|
7
|
+
data.tar.gz: 914453246c9e97b786f344f5b823181082afaea85b1b22f13f5a636effc870fbe270c004dc68c4fbfa392c4d7f9a74c9ff82e9bdd1d8e928c0fa170c56abd64b
|
@@ -21,7 +21,7 @@ module ScormEngine
|
|
21
21
|
this.correct_responses = options["correctResponses"]
|
22
22
|
this.learner_response = get_learner_response_from_api(options)
|
23
23
|
this.result = options["result"]
|
24
|
-
this.weighting = options["weighting"]
|
24
|
+
this.weighting = options["weighting"].to_f
|
25
25
|
this.latency = options["latency"]
|
26
26
|
|
27
27
|
this
|
data/lib/scorm_engine/version.rb
CHANGED
@@ -7,7 +7,7 @@ RSpec.describe ScormEngine::Models::RegistrationRuntimeInteraction do
|
|
7
7
|
"correctResponses" => %w[one two],
|
8
8
|
"learnerResponse" => "one",
|
9
9
|
"result" => "correct",
|
10
|
-
"weighting" => "3",
|
10
|
+
"weighting" => "3.14",
|
11
11
|
"latency" => "0012:34:59"
|
12
12
|
} }
|
13
13
|
|
@@ -66,7 +66,7 @@ RSpec.describe ScormEngine::Models::RegistrationRuntimeInteraction do
|
|
66
66
|
|
67
67
|
describe ":weighting" do
|
68
68
|
it "is set properly" do
|
69
|
-
expect(interaction.weighting).to eq
|
69
|
+
expect(interaction.weighting).to eq 3.14
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scorm_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hallstrom
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|