scorm_engine 0.5.1 → 0.5.2
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: 7b0f553cbad97140f54dfba48bd4c0514ab010f94874235343a83af6f10b8cd2
|
4
|
+
data.tar.gz: 804e07cfba2d37c56e0ecb197d6512ed470124c061347947ac4a4e6b5357add1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7c2e7c440815f2908daea3961914d9c01c0006bfc5b19290741c2dfe705d3d4662dd6f24c01b3c794953fb1e4206794c84a0cb8dfa65766f3ee35125d15fd50
|
7
|
+
data.tar.gz: 10b4e9b99a124f27eba6f61da41c8c66ecc1c60e3e5e848cd4e4b33ca9f389edd76ddeb3a52c3c50131cb85e183beb0158f5edebaaab5064d00f30e0b1bf8f7b
|
@@ -4,6 +4,15 @@ require "faraday_middleware"
|
|
4
4
|
module ScormEngine
|
5
5
|
module Faraday
|
6
6
|
module Connection
|
7
|
+
|
8
|
+
def base_uri
|
9
|
+
uri = URI("")
|
10
|
+
uri.scheme = "https" # TODO: Make configurable
|
11
|
+
uri.host = ScormEngine.configuration.host
|
12
|
+
uri.path = ScormEngine.configuration.path_prefix
|
13
|
+
uri
|
14
|
+
end
|
15
|
+
|
7
16
|
private
|
8
17
|
|
9
18
|
def connection
|
@@ -21,14 +30,6 @@ module ScormEngine
|
|
21
30
|
faraday.adapter ::Faraday.default_adapter
|
22
31
|
end
|
23
32
|
end
|
24
|
-
|
25
|
-
def base_uri
|
26
|
-
uri = URI("")
|
27
|
-
uri.scheme = "https" # TODO: Make configurable
|
28
|
-
uri.host = ScormEngine.configuration.host
|
29
|
-
uri.path = ScormEngine.configuration.path_prefix
|
30
|
-
uri
|
31
|
-
end
|
32
33
|
end
|
33
34
|
end
|
34
35
|
end
|
data/lib/scorm_engine/version.rb
CHANGED
@@ -103,7 +103,7 @@ RSpec.describe ScormEngine::Models::Course do
|
|
103
103
|
course = described_class.new_from_api(
|
104
104
|
"webPath" => "/courses/tenant/courseid/0"
|
105
105
|
)
|
106
|
-
expect(course.
|
106
|
+
expect(course.web_path).to eq "/courses/tenant/courseid/0"
|
107
107
|
end
|
108
108
|
end
|
109
109
|
end
|