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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/scorm_engine/api/endpoints/courses/import.rb +5 -0
  3. data/lib/scorm_engine/api/endpoints/dispatches.rb +28 -19
  4. data/lib/scorm_engine/version.rb +1 -1
  5. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/returns_success_even_when_id_is_invalid.yml +3 -3
  6. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_delete_dispatch/works.yml +3 -3
  7. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/fails_when_id_is_invalid.yml +3 -3
  8. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/is_successful.yml +6 -6
  9. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +6 -6
  10. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_false_when_disabled.yml +8 -8
  11. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_enabled/is_true_when_enabled.yml +8 -8
  12. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_id.yml +3 -3
  13. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/fails_given_an_invalid_type.yml +4 -4
  14. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works.yml +7 -7
  15. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_AICC.yml +7 -7
  16. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM12.yml +7 -7
  17. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatch_zip/works_when_type_is_SCORM2004-3RD.yml +8 -8
  18. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_all_the_dispatches.yml +11 -11
  19. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_more_option_pagination_/returns_the_more_key_in_the_raw_response.yml +5 -5
  20. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/fails_when_passed_an_invalid_value.yml +3 -3
  21. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/_since_option/works.yml +5 -5
  22. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/is_successful.yml +5 -5
  23. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/is_an_enumerator_of_dispatch_models.yml +5 -5
  24. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_get_dispatches/results/sucessfully_creates_the_dispatch_attributes.yml +11 -11
  25. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_post_dispatch/is_successful.yml +8 -8
  26. 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
  27. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/is_successful.yml +4 -4
  28. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch/results/sucessfully_creates_the_dispatch_attributes.yml +10 -10
  29. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/fails_when_invalid.yml +5 -5
  30. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_false.yml +4 -4
  31. data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Dispatches/_put_dispatch_enabled/works_when_true.yml +4 -4
  32. data/spec/scorm_engine/api/endpoints/dispatches_spec.rb +25 -5
  33. data/spec/support/scorm_engine.rb +5 -1
  34. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f641dd96f8aa0bd99d360d711fdd5df21d29256087d2fa3b6379236d31dfb3d
4
- data.tar.gz: '088b0d95759b970b4ac6d9254ae6a2837cd14fec77a600b0e37ef4e56f7d9c03'
3
+ metadata.gz: 96f9e3115cb5345e489c54e9d49ac10dd67b1b2bb7dbd30878a222c5eca3dde5
4
+ data.tar.gz: a64f2c8ce1dcc564e71d06a020324e947406020e5930f24a5f59b91b377d47c5
5
5
  SHA512:
6
- metadata.gz: 426200281300e123425f2eebfffcec80fab4963f2489fa3dfa0e8ae56e60919c3cfc59d6a85d7bc97c5ec397ab2ec0f47bb7f5ba1762f4ea3e0cd7c924731706
7
- data.tar.gz: 480436fec2288e0a753b92dd7b3d4e15f95aad359e2c69e1d95b5336d0f5a2ce18f0f4f62738388689e137cd275c105a633928631dec4ae6b6779082415454d6
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 \"none\" for no expiration date.
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 (false)
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 (false)
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 (0)
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 ("none")
157
+ # @option options [Date] :expiration_date
169
158
  # The date after which this dispatch will be disabled as an ISO 8601
170
- # string, or \"none\" for no expiration date.
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
@@ -1,3 +1,3 @@
1
1
  module ScormEngine
2
- VERSION = "0.6.10".freeze
2
+ VERSION = "0.7.0".freeze
3
3
  end
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - ScormEngine Ruby Gem 0.3.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
- - Mon, 20 Aug 2018 23:04:55 GMT
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: Mon, 20 Aug 2018 23:04:55 GMT
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.3.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
- - Mon, 20 Aug 2018 23:04:51 GMT
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: Mon, 20 Aug 2018 23:04:51 GMT
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.3.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
- - Mon, 20 Aug 2018 23:05:24 GMT
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: Mon, 20 Aug 2018 23:05:24 GMT
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.3.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
- - Mon, 20 Aug 2018 23:05:23 GMT
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
- - '178'
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":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}'
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: Mon, 20 Aug 2018 23:05:23 GMT
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.3.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
- - Mon, 20 Aug 2018 23:05:26 GMT
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
- - '178'
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":0,"expirationDate":"none","externalConfig":"scormenginegemtesting-default","enabled":true,"registrationCount":0,"registrationResetDate":"none"}'
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: Mon, 20 Aug 2018 23:05:26 GMT
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.3.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
- - Mon, 20 Aug 2018 23:04:26 GMT
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: Mon, 20 Aug 2018 23:04:27 GMT
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.3.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
- - Mon, 20 Aug 2018 23:04:27 GMT
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: Mon, 20 Aug 2018 23:04:27 GMT
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.3.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
- - Mon, 20 Aug 2018 23:04:29 GMT
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: Mon, 20 Aug 2018 23:04:29 GMT
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.3.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
- - Mon, 20 Aug 2018 23:04:29 GMT
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: Mon, 20 Aug 2018 23:04:29 GMT
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.2
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
- - Fri, 24 Aug 2018 21:38:12 GMT
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: Fri, 24 Aug 2018 21:38:12 GMT
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.2
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
- - Fri, 24 Aug 2018 21:38:14 GMT
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: Fri, 24 Aug 2018 21:38:14 GMT
33
+ recorded_at: Thu, 04 Oct 2018 21:22:08 GMT
34
34
  recorded_with: VCR 4.0.0