scorm_engine 0.6.8 → 0.6.9
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: 769846ca2e2194ec8f7e4372b0cc20947bfcb34269724d49e4b66b9187636270
|
4
|
+
data.tar.gz: b81907ba10ca436b56c483883ed7a7e23cd98dc8326c3010e8445109cd018347
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d642abf5fa725f431803a575ddc1a0076b4401d0c2a0bde919a034686ae91d7af8aed4a4e5ba55db340802ca2ce4b6c3090fe70b7db2b8c4aee498664144274
|
7
|
+
data.tar.gz: a4310024f0f04890be9517fb14d65877f72c4644c54e682d03d421b190968ec14fec93ac5e8a622edbdabfad5915b4b5e35932d769f5b2eb5872ff133ac670e8
|
@@ -47,6 +47,11 @@ module ScormEngine
|
|
47
47
|
# @return [Time]
|
48
48
|
attr_accessor :expiration_date
|
49
49
|
|
50
|
+
# @attr
|
51
|
+
# If true, then this dispatch can be launched.
|
52
|
+
# @return [Boolean]
|
53
|
+
attr_accessor :enabled
|
54
|
+
|
50
55
|
# @attr
|
51
56
|
# Serialized external configuration information to include when launching
|
52
57
|
# the dispatched package.
|
@@ -69,6 +74,7 @@ module ScormEngine
|
|
69
74
|
this.registration_cap = data["registrationCap"]&.to_i
|
70
75
|
this.registration_count = data["registrationCount"]&.to_i
|
71
76
|
this.expiration_date = get_expiration_date(data)
|
77
|
+
this.enabled = data["enabled"]
|
72
78
|
this.external_config = data["externalConfig"]
|
73
79
|
|
74
80
|
this
|
data/lib/scorm_engine/version.rb
CHANGED
@@ -44,6 +44,9 @@ RSpec.describe ScormEngine::Api::Endpoints::Dispatches do
|
|
44
44
|
aggregate_failures do
|
45
45
|
expect(dispatch.destination_id).to eq dispatch_options[:destination_id]
|
46
46
|
expect(dispatch.course_id).to eq dispatch_options[:course_id]
|
47
|
+
expect(dispatch.registration_cap).to be_a Integer
|
48
|
+
expect(dispatch.registration_count).to be_a Integer
|
49
|
+
expect(dispatch.enabled).to eq true
|
47
50
|
end
|
48
51
|
end
|
49
52
|
end
|
@@ -128,6 +131,7 @@ RSpec.describe ScormEngine::Api::Endpoints::Dispatches do
|
|
128
131
|
expect(dispatch.course_id).to eq dispatch_options[:course_id]
|
129
132
|
expect(dispatch.registration_cap).to be_a Integer
|
130
133
|
expect(dispatch.registration_count).to be_a Integer
|
134
|
+
expect(dispatch.enabled).to eq true
|
131
135
|
end
|
132
136
|
end
|
133
137
|
end
|
@@ -100,6 +100,17 @@ RSpec.describe ScormEngine::Models::Dispatch do
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
+
describe ":enabled" do
|
104
|
+
it "is set" do
|
105
|
+
dispatch = described_class.new_from_api(
|
106
|
+
"data" => {
|
107
|
+
"enabled" => true
|
108
|
+
}
|
109
|
+
)
|
110
|
+
expect(dispatch.enabled).to eq true
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
103
114
|
describe ":external_config" do
|
104
115
|
it "is set" do
|
105
116
|
dispatch = described_class.new_from_api(
|
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.6.
|
4
|
+
version: 0.6.9
|
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:
|
19
|
+
version: 0.12.2
|
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:
|
26
|
+
version: 0.12.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|