scorm_engine 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8427213f1d3146144b07e07c72bd197f8dede2d4c203c8ed15615a341c4535ef
4
- data.tar.gz: 054c0d302e3a6def37a5fd37b5dfa26822caa719a9a7753be21925d9da1cc881
3
+ metadata.gz: 769846ca2e2194ec8f7e4372b0cc20947bfcb34269724d49e4b66b9187636270
4
+ data.tar.gz: b81907ba10ca436b56c483883ed7a7e23cd98dc8326c3010e8445109cd018347
5
5
  SHA512:
6
- metadata.gz: ffaf83eda0604e1a89aa11018f43e5908d0c77fcfcfa4bfabfc61e17d5d4bdee3ff2025226fad20d26a85595119d26b582ca182e72bbad9e8e0ab2f12e5b62ce
7
- data.tar.gz: cbe6c17083dc17ea4de1e4e313e7117fa991e0a69cac69e7b7baa6cf0daba5838b42f37dbd60ccd0b7fc9e6bbc24a252d7465024a6da9055c18de7e6dde9e468
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
@@ -1,3 +1,3 @@
1
1
  module ScormEngine
2
- VERSION = "0.6.8".freeze
2
+ VERSION = "0.6.9".freeze
3
3
  end
@@ -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.8
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: '0.12'
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: '0.12'
26
+ version: 0.12.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement