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: 4eb559da6c58e1d094b117f7309f63a57fd0ce8420f20f1b29e70db9ced197d5
4
- data.tar.gz: a257cbd1dc47e8b30ff8aa23e4b6ec7179dafa476e137ef65ef14652aa62668d
3
+ metadata.gz: e137674a0bf0d74260cd49ab5606d145001c1a2af1783ff86a995982a036a9fa
4
+ data.tar.gz: 90c6c75293a728ca0aa5a86ce576f78681fe51841b8ab77ee6855d0b88c1a8b1
5
5
  SHA512:
6
- metadata.gz: '0991ec18af0234a57b7d331a270b7149cc02e1d921f1c507d437138c38bb637d044789fb56c8a2e10ab5489585f90a24d34ce5a10a0d4a1cf0b59699aa705640'
7
- data.tar.gz: c0312e3e6251c0de3cd92d620211e6a2d47098d7b30aaba3608e190ab347d5d3ffc6ff81d35bee5c25ec2d0c630585d7dfa731ada8d94c9d2cb1f20a90189caa
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"] # TODO: Coerce to numeric? see https://basecamp.com/2819363/projects/15019959/messages/79802980
24
+ this.weighting = options["weighting"].to_f
25
25
  this.latency = options["latency"]
26
26
 
27
27
  this
@@ -1,3 +1,3 @@
1
1
  module ScormEngine
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.2.0".freeze
3
3
  end
@@ -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 "3"
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.1.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.15'
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.15'
26
+ version: '0.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement