scorm_engine 0.5.2 → 0.5.3

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: 7b0f553cbad97140f54dfba48bd4c0514ab010f94874235343a83af6f10b8cd2
4
- data.tar.gz: 804e07cfba2d37c56e0ecb197d6512ed470124c061347947ac4a4e6b5357add1
3
+ metadata.gz: bb7b48b89bca65bdb06ede4fe1cff9c182778eba1f1d87f36cf9dca77acf8f1e
4
+ data.tar.gz: 8955c69310384981324f9e3460ef43a8885ad46325a4f4968d00489967d51918
5
5
  SHA512:
6
- metadata.gz: a7c2e7c440815f2908daea3961914d9c01c0006bfc5b19290741c2dfe705d3d4662dd6f24c01b3c794953fb1e4206794c84a0cb8dfa65766f3ee35125d15fd50
7
- data.tar.gz: 10b4e9b99a124f27eba6f61da41c8c66ecc1c60e3e5e848cd4e4b33ca9f389edd76ddeb3a52c3c50131cb85e183beb0158f5edebaaab5064d00f30e0b1bf8f7b
6
+ metadata.gz: 25c7dd5e73b364501d0d95bbc72eed02ee31585fd78faaa7982a8767fbd7fc613ba1518c5ca44d97b072d5c1f09f0d1175138f3347e57e73a9a6aeb628f57fe6
7
+ data.tar.gz: a65243ffefe6bd148e18c33f3ec8b8b2c7fff0ce57d7459c483d57f18119cbaafc85e856abec2c7205dba2caa04bbc03e03b216b6b1e065c029b08616f71bfd9
@@ -10,7 +10,7 @@ module ScormEngine
10
10
  uri.scheme = "https" # TODO: Make configurable
11
11
  uri.host = ScormEngine.configuration.host
12
12
  uri.path = ScormEngine.configuration.path_prefix
13
- uri
13
+ URI(uri.to_s) # convert URI::Generic to URI:HTTPS
14
14
  end
15
15
 
16
16
  private
@@ -1,3 +1,3 @@
1
1
  module ScormEngine
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.5.3".freeze
3
3
  end
@@ -0,0 +1,21 @@
1
+ RSpec.describe ScormEngine::Faraday::Connection do
2
+ before do
3
+ ScormEngine.configure do |config|
4
+ config.host = "scorm.engine"
5
+ config.username = "admin"
6
+ config.password = "secret"
7
+ end
8
+ end
9
+
10
+ describe "#base_uri" do
11
+ let(:uri) { scorm_engine_client.base_uri }
12
+
13
+ it "returns a URI::HTTPS instance" do
14
+ expect(uri).to be_a(URI::HTTPS)
15
+ end
16
+
17
+ it "is correct given the configuration" do
18
+ expect(uri.to_s).to eq "https://scorm.engine/ScormEngineInterface/api/v1/"
19
+ end
20
+ end
21
+ end
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.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom
@@ -360,6 +360,7 @@ files:
360
360
  - spec/scorm_engine/api/endpoints/registrations/launch_history_spec.rb
361
361
  - spec/scorm_engine/api/endpoints/registrations_spec.rb
362
362
  - spec/scorm_engine/configuration_spec.rb
363
+ - spec/scorm_engine/faraday/connection_spec.rb
363
364
  - spec/scorm_engine/models/course_configuration_spec.rb
364
365
  - spec/scorm_engine/models/course_import_spec.rb
365
366
  - spec/scorm_engine/models/course_spec.rb