scorm_engine 0.6.10 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scorm_engine/api/endpoints/courses/import.rb +5 -0
- data/lib/scorm_engine/api/endpoints/dispatches.rb +28 -19
- data/lib/scorm_engine/version.rb +1 -1
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/returns_success_even_when_id_is_invalid.yml +3 -3
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/works.yml +3 -3
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/fails_when_id_is_invalid.yml +3 -3
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/is_successful.yml +6 -6
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +6 -6
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_false_when_disabled.yml +8 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_true_when_enabled.yml +8 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_id.yml +3 -3
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_type.yml +4 -4
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works.yml +7 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_AICC.yml +7 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM12.yml +7 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM2004-3RD.yml +8 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_all_the_dispatches.yml +11 -11
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +5 -5
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/fails_when_passed_an_invalid_value.yml +3 -3
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/works.yml +5 -5
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/is_successful.yml +5 -5
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/is_an_enumerator_of_dispatch_models.yml +5 -5
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/sucessfully_creates_the_dispatch_attributes.yml +11 -11
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/is_successful.yml +8 -8
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/{is_updates_if_same_dispatch_id.yml → updates_if_same_dispatch_id.yml} +16 -16
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/is_successful.yml +4 -4
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +10 -10
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/fails_when_invalid.yml +5 -5
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_false.yml +4 -4
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_true.yml +4 -4
- data/spec/scorm_engine/api/endpoints/dispatches_spec.rb +25 -5
- data/spec/support/scorm_engine.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96f9e3115cb5345e489c54e9d49ac10dd67b1b2bb7dbd30878a222c5eca3dde5
|
4
|
+
data.tar.gz: a64f2c8ce1dcc564e71d06a020324e947406020e5930f24a5f59b91b377d47c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15dae198e937cfe18146767424e8361a7464372137dda3123a78cabcd87f3b9d0d2da92e566dfa82f942f3955caff1246160311ea403a2afb084fd95f5503ba9
|
7
|
+
data.tar.gz: 189edb44a0f257a82336efdb39e4876b47c16a021cc49d81db2644aac2068167d7b06193e80e52dfc0fc4c1866d1ce635f5f8564c32958cbccab013bb8c46d1b
|
@@ -49,6 +49,11 @@ module ScormEngine
|
|
49
49
|
mayCreateNewVersion: !!options[:may_create_new_version]
|
50
50
|
}
|
51
51
|
|
52
|
+
# When loading from a URL, we pass the URL and course name in the
|
53
|
+
# body as JSON. When loading from a file, the file's contents get
|
54
|
+
# placed in the body. In the latter case we can't pass in any other
|
55
|
+
# parameters, because the SCORM server doesn't know how to deal
|
56
|
+
# with multipart bodies and will become confused.
|
52
57
|
body = if options[:url]
|
53
58
|
{ url: options[:url], courseName: options[:name] || options[:course_id] }
|
54
59
|
elsif options[:pathname]
|
@@ -69,7 +69,7 @@ module ScormEngine
|
|
69
69
|
#
|
70
70
|
# @option options [Date] :expiration_date ("none")
|
71
71
|
# The date after which this dispatch will be disabled as an ISO 8601
|
72
|
-
# string, or
|
72
|
+
# string, or "none" for no expiration date.
|
73
73
|
#
|
74
74
|
# @option options [String] :external_config ("")
|
75
75
|
# Serialized external configuration information to include when
|
@@ -80,18 +80,7 @@ module ScormEngine
|
|
80
80
|
def post_dispatch(options = {})
|
81
81
|
require_options(options, :dispatch_id, :destination_id, :course_id)
|
82
82
|
|
83
|
-
options = options.dup
|
84
|
-
|
85
|
-
options[:allow_new_registrations] = false unless options[:allow_new_registrations]
|
86
|
-
options[:instanced] = false unless options[:instanced]
|
87
|
-
options[:registration_cap] = [0, options[:registration_cap].to_i].max
|
88
|
-
options[:expiration_date] = begin
|
89
|
-
date = options[:expiration_date]
|
90
|
-
date = date.is_a?(String) ? Date.parse(date) : date
|
91
|
-
date&.iso8601 # might be nil
|
92
|
-
rescue ArgumentError
|
93
|
-
"none"
|
94
|
-
end
|
83
|
+
options = coerce_dispatch_options(options.dup)
|
95
84
|
|
96
85
|
body = {
|
97
86
|
dispatches: [
|
@@ -152,22 +141,22 @@ module ScormEngine
|
|
152
141
|
# @option options [String] :course_id
|
153
142
|
# The course ID.
|
154
143
|
#
|
155
|
-
# @option options [Boolean] :allow_new_registrations
|
144
|
+
# @option options [Boolean] :allow_new_registrations
|
156
145
|
# If true, then new registrations can be created for this dispatch.
|
157
146
|
#
|
158
|
-
# @option options [Boolean] :instanced
|
147
|
+
# @option options [Boolean] :instanced
|
159
148
|
# If true, then a new registration instance will be created if the
|
160
149
|
# client LMS doesn't provide launch data for an existing one.
|
161
150
|
# Otherwise, the same instance will always be used for the given
|
162
151
|
# cmi.learner_id.
|
163
152
|
#
|
164
|
-
# @option options [Integer] :registration_cap
|
153
|
+
# @option options [Integer] :registration_cap
|
165
154
|
# The maximum number of registrations that can be created for this
|
166
155
|
# dispatch, where '0' means 'unlimited registrations'.
|
167
156
|
#
|
168
|
-
# @option options [Date] :expiration_date
|
157
|
+
# @option options [Date] :expiration_date
|
169
158
|
# The date after which this dispatch will be disabled as an ISO 8601
|
170
|
-
# string, or
|
159
|
+
# string, or "none" for no expiration date.
|
171
160
|
#
|
172
161
|
# @option options [String] :external_config ("")
|
173
162
|
# Serialized external configuration information to include when
|
@@ -176,7 +165,10 @@ module ScormEngine
|
|
176
165
|
# @return [ScormEngine::Response]
|
177
166
|
#
|
178
167
|
def put_dispatch(options = {})
|
179
|
-
require_options(options, :dispatch_id, :destination_id, :course_id
|
168
|
+
require_options(options, :dispatch_id, :destination_id, :course_id,
|
169
|
+
:allow_new_registrations, :instanced, :registration_cap, :expiration_date)
|
170
|
+
|
171
|
+
options = coerce_dispatch_options(options.dup)
|
180
172
|
|
181
173
|
body = {
|
182
174
|
destinationId: options[:destination_id],
|
@@ -297,6 +289,23 @@ module ScormEngine
|
|
297
289
|
Response.new(raw_response: response, result: result)
|
298
290
|
end
|
299
291
|
|
292
|
+
private
|
293
|
+
|
294
|
+
def coerce_dispatch_options(options = {})
|
295
|
+
options[:allow_new_registrations] = !!options[:allow_new_registrations]
|
296
|
+
options[:instanced] = !!options[:instanced]
|
297
|
+
options[:registration_cap] = [0, options[:registration_cap].to_i].max
|
298
|
+
options[:expiration_date] = coerce_expiration_date(options[:expiration_date])
|
299
|
+
options
|
300
|
+
end
|
301
|
+
|
302
|
+
def coerce_expiration_date(date)
|
303
|
+
return date if date == "none"
|
304
|
+
date = date.is_a?(String) ? Date.parse(date) : date
|
305
|
+
date&.iso8601 # might be nil
|
306
|
+
rescue ArgumentError # unparsable date string
|
307
|
+
raise(ArgumentError, "Invalid option expiration_date")
|
308
|
+
end
|
300
309
|
end
|
301
310
|
end
|
302
311
|
end
|
data/lib/scorm_engine/version.rb
CHANGED
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Thu, 04 Oct 2018 21:22:02 GMT
|
21
21
|
server:
|
22
22
|
- nginx
|
23
23
|
connection:
|
@@ -26,5 +26,5 @@ http_interactions:
|
|
26
26
|
encoding: UTF-8
|
27
27
|
string: ''
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Thu, 04 Oct 2018 21:22:02 GMT
|
30
30
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
@@ -17,7 +17,7 @@ http_interactions:
|
|
17
17
|
message: ''
|
18
18
|
headers:
|
19
19
|
date:
|
20
|
-
-
|
20
|
+
- Thu, 04 Oct 2018 21:22:04 GMT
|
21
21
|
server:
|
22
22
|
- nginx
|
23
23
|
connection:
|
@@ -26,5 +26,5 @@ http_interactions:
|
|
26
26
|
encoding: UTF-8
|
27
27
|
string: ''
|
28
28
|
http_version:
|
29
|
-
recorded_at:
|
29
|
+
recorded_at: Thu, 04 Oct 2018 21:22:04 GMT
|
30
30
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
content-type:
|
20
20
|
- application/json
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Thu, 04 Oct 2018 21:22:21 GMT
|
23
23
|
server:
|
24
24
|
- nginx
|
25
25
|
vary:
|
@@ -32,5 +32,5 @@ http_interactions:
|
|
32
32
|
encoding: ASCII-8BIT
|
33
33
|
string: '{"message":"No dispatches found with ID: nonexistent-dispatch"}'
|
34
34
|
http_version:
|
35
|
-
recorded_at:
|
35
|
+
recorded_at: Thu, 04 Oct 2018 21:22:21 GMT
|
36
36
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id
|
5
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
@@ -19,18 +19,18 @@ http_interactions:
|
|
19
19
|
content-type:
|
20
20
|
- application/json
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Thu, 04 Oct 2018 21:22:19 GMT
|
23
23
|
server:
|
24
24
|
- nginx
|
25
25
|
vary:
|
26
26
|
- Accept-Encoding
|
27
27
|
content-length:
|
28
|
-
- '
|
28
|
+
- '196'
|
29
29
|
connection:
|
30
30
|
- Close
|
31
31
|
body:
|
32
32
|
encoding: ASCII-8BIT
|
33
|
-
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":
|
33
|
+
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00Z","externalConfig":"scormenginegemtesting-default","enabled":false,"registrationCount":0,"registrationResetDate":"none"}'
|
34
34
|
http_version:
|
35
|
-
recorded_at:
|
35
|
+
recorded_at: Thu, 04 Oct 2018 21:22:19 GMT
|
36
36
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id
|
5
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
@@ -19,18 +19,18 @@ http_interactions:
|
|
19
19
|
content-type:
|
20
20
|
- application/json
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Thu, 04 Oct 2018 21:24:05 GMT
|
23
23
|
server:
|
24
24
|
- nginx
|
25
25
|
vary:
|
26
26
|
- Accept-Encoding
|
27
27
|
content-length:
|
28
|
-
- '
|
28
|
+
- '199'
|
29
29
|
connection:
|
30
30
|
- Close
|
31
31
|
body:
|
32
32
|
encoding: ASCII-8BIT
|
33
|
-
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":
|
33
|
+
string: '{"destinationId":"testing-golf-club","courseId":"testing-golf-explained","allowNewRegistrations":false,"instanced":false,"registrationCap":123,"expirationDate":"2018-01-01T00:00:00Z","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}'
|
34
34
|
http_version:
|
35
|
-
recorded_at:
|
35
|
+
recorded_at: Thu, 04 Oct 2018 21:24:05 GMT
|
36
36
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id/enabled
|
5
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2/enabled
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: 'false'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
Content-Type:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Thu, 04 Oct 2018 21:22:25 GMT
|
23
23
|
server:
|
24
24
|
- nginx
|
25
25
|
connection:
|
@@ -28,16 +28,16 @@ http_interactions:
|
|
28
28
|
encoding: UTF-8
|
29
29
|
string: ''
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Thu, 04 Oct 2018 21:22:25 GMT
|
32
32
|
- request:
|
33
33
|
method: get
|
34
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id/enabled
|
34
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2/enabled
|
35
35
|
body:
|
36
36
|
encoding: US-ASCII
|
37
37
|
string: ''
|
38
38
|
headers:
|
39
39
|
User-Agent:
|
40
|
-
- ScormEngine Ruby Gem 0.
|
40
|
+
- ScormEngine Ruby Gem 0.6.10
|
41
41
|
Authorization:
|
42
42
|
- Basic <BASIC_AUTH>
|
43
43
|
response:
|
@@ -48,7 +48,7 @@ http_interactions:
|
|
48
48
|
content-type:
|
49
49
|
- application/json
|
50
50
|
date:
|
51
|
-
-
|
51
|
+
- Thu, 04 Oct 2018 21:22:26 GMT
|
52
52
|
server:
|
53
53
|
- nginx
|
54
54
|
content-length:
|
@@ -59,5 +59,5 @@ http_interactions:
|
|
59
59
|
encoding: UTF-8
|
60
60
|
string: 'false'
|
61
61
|
http_version:
|
62
|
-
recorded_at:
|
62
|
+
recorded_at: Thu, 04 Oct 2018 21:22:26 GMT
|
63
63
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id/enabled
|
5
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2/enabled
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: 'true'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
Content-Type:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
message: ''
|
20
20
|
headers:
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Thu, 04 Oct 2018 21:22:28 GMT
|
23
23
|
server:
|
24
24
|
- nginx
|
25
25
|
connection:
|
@@ -28,16 +28,16 @@ http_interactions:
|
|
28
28
|
encoding: UTF-8
|
29
29
|
string: ''
|
30
30
|
http_version:
|
31
|
-
recorded_at:
|
31
|
+
recorded_at: Thu, 04 Oct 2018 21:22:28 GMT
|
32
32
|
- request:
|
33
33
|
method: get
|
34
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id/enabled
|
34
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2/enabled
|
35
35
|
body:
|
36
36
|
encoding: US-ASCII
|
37
37
|
string: ''
|
38
38
|
headers:
|
39
39
|
User-Agent:
|
40
|
-
- ScormEngine Ruby Gem 0.
|
40
|
+
- ScormEngine Ruby Gem 0.6.10
|
41
41
|
Authorization:
|
42
42
|
- Basic <BASIC_AUTH>
|
43
43
|
response:
|
@@ -48,7 +48,7 @@ http_interactions:
|
|
48
48
|
content-type:
|
49
49
|
- application/json
|
50
50
|
date:
|
51
|
-
-
|
51
|
+
- Thu, 04 Oct 2018 21:22:28 GMT
|
52
52
|
server:
|
53
53
|
- nginx
|
54
54
|
content-length:
|
@@ -59,5 +59,5 @@ http_interactions:
|
|
59
59
|
encoding: UTF-8
|
60
60
|
string: 'true'
|
61
61
|
http_version:
|
62
|
-
recorded_at:
|
62
|
+
recorded_at: Thu, 04 Oct 2018 21:22:28 GMT
|
63
63
|
recorded_with: VCR 4.0.0
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.6.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
content-type:
|
20
20
|
- application/json
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Thu, 04 Oct 2018 21:22:10 GMT
|
23
23
|
server:
|
24
24
|
- nginx
|
25
25
|
vary:
|
@@ -32,5 +32,5 @@ http_interactions:
|
|
32
32
|
encoding: ASCII-8BIT
|
33
33
|
string: '{"message":"No dispatches found with ID: nonexistent-dispatch"}'
|
34
34
|
http_version:
|
35
|
-
recorded_at:
|
35
|
+
recorded_at: Thu, 04 Oct 2018 21:22:10 GMT
|
36
36
|
recorded_with: VCR 4.0.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id/zip?type=OOPS
|
5
|
+
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/dispatches/testing-dispatch-id-2/zip?type=OOPS
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- ScormEngine Ruby Gem 0.6.
|
11
|
+
- ScormEngine Ruby Gem 0.6.10
|
12
12
|
Authorization:
|
13
13
|
- Basic <BASIC_AUTH>
|
14
14
|
response:
|
@@ -19,7 +19,7 @@ http_interactions:
|
|
19
19
|
content-type:
|
20
20
|
- application/json
|
21
21
|
date:
|
22
|
-
-
|
22
|
+
- Thu, 04 Oct 2018 21:22:08 GMT
|
23
23
|
server:
|
24
24
|
- nginx
|
25
25
|
content-length:
|
@@ -30,5 +30,5 @@ http_interactions:
|
|
30
30
|
encoding: UTF-8
|
31
31
|
string: '{"message":"The value ''OOPS'' is not a valid Dispatch Type."}'
|
32
32
|
http_version:
|
33
|
-
recorded_at:
|
33
|
+
recorded_at: Thu, 04 Oct 2018 21:22:08 GMT
|
34
34
|
recorded_with: VCR 4.0.0
|