scorm_engine 0.7.0 → 0.7.1
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/dispatches.rb +1 -2
- data/lib/scorm_engine/version.rb +1 -1
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_get_course_import/successful_imports/works.yml +6 -6
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_get_course_import/unsuccessful_imports/fails_to_import_given_an_invalid_url.yml +7 -7
- data/spec/fixtures/vcr/ScormEngine_Api_Endpoints_Courses_Import/_post_course_import/unsuccessful_imports/fails_to_import_a_previously_existing_course.yml +2 -2
- data/spec/scorm_engine/api/endpoints/courses/import_spec.rb +1 -1
- data/spec/scorm_engine/api/endpoints/dispatches_spec.rb +1 -1
- data/spec/support/scorm_engine.rb +1 -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: '0499e8bbb95da53112a9bba9c98534272d25fc99a164bf483c7012aba545b366'
|
4
|
+
data.tar.gz: eb9e248e8628d07d30ba0c8f2d20015cc1eccb3ae8c3d4a53bb9c7c61b47cac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51f47c3284f1c092325c449c65d784c4633a7b29458dbba887e0ab948a89304a43bfde311640c087d8e59183d2cd4de490b9b7bb8868e03ab87ad4d3af3e4eb
|
7
|
+
data.tar.gz: 495d009b94290f634b1427523d460b4b7b3f39b2cb256fc874ea17793eabc9f083b9f01eb296f3e7b3f6cd105bfb5003e2b9a5c10798e6db13cfb667882125e1
|
@@ -272,8 +272,7 @@ module ScormEngine
|
|
272
272
|
|
273
273
|
options = options.dup
|
274
274
|
dispatch_id = options.delete(:dispatch_id)
|
275
|
-
options[:type]
|
276
|
-
options[:type]&.upcase!
|
275
|
+
options[:type] = options[:type]&.upcase || "SCORM12"
|
277
276
|
|
278
277
|
response = get("dispatches/#{dispatch_id}/zip", options)
|
279
278
|
|
data/lib/scorm_engine/version.rb
CHANGED
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/courses/importJobs?course=a-valid-course-url&mayCreateNewVersion=true
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"courseName":"a-valid-course-url","url":"https://github.com/
|
8
|
+
string: '{"courseName":"a-valid-course-url","url":"https://github.com/instructure-bridge/scorm_engine/raw/master/spec/fixtures/zip/RuntimeBasicCalls_SCORM20043rdEdition.zip"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- ScormEngine Ruby Gem 0.6.3
|
@@ -33,7 +33,7 @@ http_interactions:
|
|
33
33
|
body:
|
34
34
|
encoding: ASCII-8BIT
|
35
35
|
string: '{"result":"08e0a9a6-86b0-4b19-9e23-46d825a4c114","importResult":{"status":"RUNNING","parserWarnings":[],"courseLanguages":[]}}'
|
36
|
-
http_version:
|
36
|
+
http_version:
|
37
37
|
recorded_at: Mon, 10 Sep 2018 17:29:02 GMT
|
38
38
|
- request:
|
39
39
|
method: get
|
@@ -66,7 +66,7 @@ http_interactions:
|
|
66
66
|
body:
|
67
67
|
encoding: ASCII-8BIT
|
68
68
|
string: '{"status":"RUNNING","parserWarnings":[],"courseLanguages":[]}'
|
69
|
-
http_version:
|
69
|
+
http_version:
|
70
70
|
recorded_at: Mon, 10 Sep 2018 17:29:02 GMT
|
71
71
|
- request:
|
72
72
|
method: get
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
body:
|
100
100
|
encoding: ASCII-8BIT
|
101
101
|
string: '{"status":"RUNNING","parserWarnings":[],"courseLanguages":[]}'
|
102
|
-
http_version:
|
102
|
+
http_version:
|
103
103
|
recorded_at: Mon, 10 Sep 2018 17:29:08 GMT
|
104
104
|
- request:
|
105
105
|
method: get
|
@@ -134,7 +134,7 @@ http_interactions:
|
|
134
134
|
string: '{"jobId":"08e0a9a6-86b0-4b19-9e23-46d825a4c114","status":"COMPLETE","message":"Import
|
135
135
|
Successful","courseTitle":"Golf Explained - Run-time Basic Calls","webPathToCourse":"/courses/ScormEngineGemTesting-default/a-valid-course-url/0","parserWarnings":[],"courseLanguages":[],"course":{"id":"a-valid-course-url","version":0,"title":"Golf
|
136
136
|
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2018-09-10T17:29:09.919Z"}}'
|
137
|
-
http_version:
|
137
|
+
http_version:
|
138
138
|
recorded_at: Mon, 10 Sep 2018 17:29:13 GMT
|
139
139
|
- request:
|
140
140
|
method: get
|
@@ -169,6 +169,6 @@ http_interactions:
|
|
169
169
|
string: '{"jobId":"08e0a9a6-86b0-4b19-9e23-46d825a4c114","status":"COMPLETE","message":"Import
|
170
170
|
Successful","courseTitle":"Golf Explained - Run-time Basic Calls","webPathToCourse":"/courses/ScormEngineGemTesting-default/a-valid-course-url/0","parserWarnings":[],"courseLanguages":[],"course":{"id":"a-valid-course-url","version":0,"title":"Golf
|
171
171
|
Explained - Run-time Basic Calls","courseLearningStandard":"SCORM_2004_3RD_EDITION","registrationCount":0,"updated":"2018-09-10T17:29:09.919Z"}}'
|
172
|
-
http_version:
|
172
|
+
http_version:
|
173
173
|
recorded_at: Mon, 10 Sep 2018 17:29:14 GMT
|
174
174
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/courses/importJobs?course=an-invalid-course-url&mayCreateNewVersion=true
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"courseName":"an-invalid-course-url","url":"https://github.com/
|
8
|
+
string: '{"courseName":"an-invalid-course-url","url":"https://github.com/instructure-bridge/scorm_engine/raw/master/spec/fixtures/zip/non-existent-key.zip"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- ScormEngine Ruby Gem 0.6.3
|
@@ -33,7 +33,7 @@ http_interactions:
|
|
33
33
|
body:
|
34
34
|
encoding: ASCII-8BIT
|
35
35
|
string: '{"result":"151cfd1f-8761-4b21-9d7a-972d99b8fd59","importResult":{"status":"RUNNING","parserWarnings":[],"courseLanguages":[]}}'
|
36
|
-
http_version:
|
36
|
+
http_version:
|
37
37
|
recorded_at: Mon, 10 Sep 2018 17:29:15 GMT
|
38
38
|
- request:
|
39
39
|
method: get
|
@@ -66,7 +66,7 @@ http_interactions:
|
|
66
66
|
body:
|
67
67
|
encoding: ASCII-8BIT
|
68
68
|
string: '{"status":"RUNNING","parserWarnings":[],"courseLanguages":[]}'
|
69
|
-
http_version:
|
69
|
+
http_version:
|
70
70
|
recorded_at: Mon, 10 Sep 2018 17:29:15 GMT
|
71
71
|
- request:
|
72
72
|
method: get
|
@@ -98,7 +98,7 @@ http_interactions:
|
|
98
98
|
- Close
|
99
99
|
body:
|
100
100
|
encoding: ASCII-8BIT
|
101
|
-
string: '{"jobId":"151cfd1f-8761-4b21-9d7a-972d99b8fd59","status":"ERROR","message":"https://github.com/
|
101
|
+
string: '{"jobId":"151cfd1f-8761-4b21-9d7a-972d99b8fd59","status":"ERROR","message":"https://github.com/instructure-bridge/scorm_engine/raw/master/spec/fixtures/zip/non-existent-key.zip
|
102
102
|
returned (404) <!DOCTYPE html>\n<html>\n <head>\n <meta http-equiv=\"Content-type\"
|
103
103
|
content=\"text/html; charset=utf-8\">\n <meta http-equiv=\"Content-Security-Policy\"
|
104
104
|
content=\"default-src ''none''; base-uri ''self''; connect-src ''self''; form-action
|
@@ -208,7 +208,7 @@ http_interactions:
|
|
208
208
|
href=\"/\" class=\"logo logo-img-2x\">\n <img width=\"32\" height=\"32\"
|
209
209
|
title=\"\" alt=\"\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUh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ScmYHtTqSAyZLEJTK22Bie4iq3xsqpm4SAf9Hq9a2DnJ4uLK3SEULcdRvp3i3zHySqpficxEdsQc1NrlYXXvR+O7qASSezXB+h1SuUomgg9LL8BUoV4749EIolKh+EiqWmqVEZlDgHks2pxHw7xTqUQw9J5NcAXOK10AGIoZ6Zli6JY6Z1Q461KoZ4NiKLHarW+KDsxlDUPHZ5zPQZqUVDPJsTqb5n9malbpAh8C2XXDLl62+WZIDFRUlNVOiwencnNU3aQEkL+cDMSoLvZo2fQB7AJssNAuFuvorlDVVkkg2I87+jo2K2QAVphDrfyViK5VqtO34OkaxXCp+7drdDBCAdubm6eidX+2WwqT5komwh4YQLk+H4aE93h8Xg2gvHekQZOGSgLZTLyDTLJ4Lx9/KZWKBSainT4Iy3FqQBfnUZR42PKQFksBr9QKVXCPusD3OiA/RkQ5kP8qV/Jl1WywAp/6+dcmPM2zL1UrUahe4JqfnWWKXIul3uUbfP8njAFLW1OFr3gdFtZ72cNH+PtQT7/brW+NXqJAHh0y9V8/U/A1U7AfwIMAD7mS3pCbuWJAAAAAElFTkSuQmCC\">\n </a>\n </div>\n\n <script
|
210
210
|
type=\"text/javascript\" src=\"/_error.js\"></script>\n </body>\n</html>\n","courseTitle":"","parserWarnings":[],"courseLanguages":[]}'
|
211
|
-
http_version:
|
211
|
+
http_version:
|
212
212
|
recorded_at: Mon, 10 Sep 2018 17:29:21 GMT
|
213
213
|
- request:
|
214
214
|
method: get
|
@@ -240,7 +240,7 @@ http_interactions:
|
|
240
240
|
- Close
|
241
241
|
body:
|
242
242
|
encoding: ASCII-8BIT
|
243
|
-
string: '{"jobId":"151cfd1f-8761-4b21-9d7a-972d99b8fd59","status":"ERROR","message":"https://github.com/
|
243
|
+
string: '{"jobId":"151cfd1f-8761-4b21-9d7a-972d99b8fd59","status":"ERROR","message":"https://github.com/instructure-bridge/scorm_engine/raw/master/spec/fixtures/zip/non-existent-key.zip
|
244
244
|
returned (404) <!DOCTYPE html>\n<html>\n <head>\n <meta http-equiv=\"Content-type\"
|
245
245
|
content=\"text/html; charset=utf-8\">\n <meta http-equiv=\"Content-Security-Policy\"
|
246
246
|
content=\"default-src ''none''; base-uri ''self''; connect-src ''self''; form-action
|
@@ -350,6 +350,6 @@ http_interactions:
|
|
350
350
|
href=\"/\" class=\"logo logo-img-2x\">\n <img width=\"32\" height=\"32\"
|
351
351
|
title=\"\" alt=\"\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEQUM1QkUxRUI0MUMxMUUyQUQzREIxQzRENUFFNUM5NiIgeG1wTU06RG9jdW1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K47Hwe7WdDr9nAKgXwOBwHI+C45Htj1d6sd429TUNEcmUdc+PRaLHcvn87dXW4ugzdsaGxufL94NFv9zi1J7GVbhlvb2dnaJ3SVrxfc+n2+NTsZ7/H7/Mr3g5XdSIHyJSH1PZ+7fToyl2+ErqilgZ4NaLYB9goVGaHjR93Hv1ZrU4XDsFT20kH3PObzbWk0CgG1jacVIUnAQb9F+VexyLMzkpcLv0IJV7AHQIOCAUYHx7v5qgScmYHtTqSAyZLEJTK22Bie4iq3xsqpm4SAf9Hq9a2DnJ4uLK3SEULcdRvp3i3zHySqpficxEdsQc1NrlYXXvR+O7qASSezXB+h1SuUomgg9LL8BUoV4749EIolKh+EiqWmqVEZlDgHks2pxHw7xTqUQw9J5NcAXOK10AGIoZ6Zli6JY6Z1Q461KoZ4NiKLHarW+KDsxlDUPHZ5zPQZqUVDPJsTqb5n9malbpAh8C2XXDLl62+WZIDFRUlNVOiwencnNU3aQEkL+cDMSoLvZo2fQB7AJssNAuFuvorlDVVkkg2I87+jo2K2QAVphDrfyViK5VqtO34OkaxXCp+7drdDBCAdubm6eidX+2WwqT5komwh4YQLk+H4aE93h8Xg2gvHekQZOGSgLZTLyDTLJ4Lx9/KZWKBSainT4Iy3FqQBfnUZR42PKQFksBr9QKVXCPusD3OiA/RkQ5kP8qV/Jl1WywAp/6+dcmPM2zL1UrUahe4JqfnWWKXIul3uUbfP8njAFLW1OFr3gdFtZ72cNH+PtQT7/brW+NXqJAHh0y9V8/U/A1U7AfwIMAD7mS3pCbuWJAAAAAElFTkSuQmCC\">\n </a>\n </div>\n\n <script
|
352
352
|
type=\"text/javascript\" src=\"/_error.js\"></script>\n </body>\n</html>\n","courseTitle":"","parserWarnings":[],"courseLanguages":[]}'
|
353
|
-
http_version:
|
353
|
+
http_version:
|
354
354
|
recorded_at: Mon, 10 Sep 2018 17:29:21 GMT
|
355
355
|
recorded_with: VCR 4.0.0
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: https://<SCORM_ENGINE_HOST>/ScormEngineInterface/api/v1/ScormEngineGemTesting-default/courses/importJobs?course=a-previously-existing-course&mayCreateNewVersion=false
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"url":"https://github.com/
|
8
|
+
string: '{"url":"https://github.com/instructure-bridge/scorm_engine/raw/master/spec/fixtures/zip/RuntimeBasicCalls_SCORM20043rdEdition.zip","courseName":"a-previously-existing-course"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- ScormEngine Ruby Gem 0.6.9
|
@@ -31,6 +31,6 @@ http_interactions:
|
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
33
|
string: '{"message":"A course already exists with the specified id: ApiCourseId|a-previously-existing-course!VersionId|0"}'
|
34
|
-
http_version:
|
34
|
+
http_version:
|
35
35
|
recorded_at: Thu, 27 Sep 2018 20:03:33 GMT
|
36
36
|
recorded_with: VCR 4.0.0
|
@@ -45,7 +45,7 @@ RSpec.describe ScormEngine::Api::Endpoints::Courses::Import do
|
|
45
45
|
describe "successful imports" do
|
46
46
|
it "works with a :url" do
|
47
47
|
against_real_scorm_engine do
|
48
|
-
import = import_course(client: subject, course_id: "testing-url-123", url: "https://github.com/
|
48
|
+
import = import_course(client: subject, course_id: "testing-url-123", url: "https://github.com/instructure-bridge/scorm_engine/raw/master/spec/fixtures/zip/RuntimeBasicCalls_SCORM20043rdEdition.zip")
|
49
49
|
aggregate_failures do
|
50
50
|
expect(import.success?).to eq true
|
51
51
|
expect(import.result.complete?).to eq true
|
@@ -271,7 +271,7 @@ RSpec.describe ScormEngine::Api::Endpoints::Dispatches do
|
|
271
271
|
end
|
272
272
|
|
273
273
|
it "works when type is SCORM12" do
|
274
|
-
response = subject.get_dispatch_zip(dispatch_id: dispatch_options[:dispatch_id], type: "scorm12")
|
274
|
+
response = subject.get_dispatch_zip(dispatch_id: dispatch_options[:dispatch_id], type: "scorm12".freeze)
|
275
275
|
aggregate_failures do
|
276
276
|
expect(response.success?).to eq true
|
277
277
|
expect(response.result.type).to eq "SCORM12"
|
@@ -49,7 +49,7 @@ module ScormEngineHelpers
|
|
49
49
|
if options[:pathname]
|
50
50
|
import_options[:pathname] = options[:pathname]
|
51
51
|
else
|
52
|
-
import_options[:url] = "https://github.com/
|
52
|
+
import_options[:url] = "https://github.com/instructure-bridge/scorm_engine/raw/master/spec/fixtures/zip/#{options[:key]}.zip"
|
53
53
|
end
|
54
54
|
|
55
55
|
import = options[:client].post_course_import(import_options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scorm_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Hallstrom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -382,7 +382,7 @@ files:
|
|
382
382
|
- spec/support/scorm_engine_client.rb
|
383
383
|
- spec/support/scorm_engine_configuration.rb
|
384
384
|
- spec/support/vcr.rb
|
385
|
-
homepage: https://github.com/
|
385
|
+
homepage: https://github.com/instructure-bridge/scorm_engine
|
386
386
|
licenses:
|
387
387
|
- MIT
|
388
388
|
metadata: {}
|