strongmind-platform-sdk 3.19.34 → 3.19.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/platform_sdk/canvas_api/client.rb +2 -6
- data/lib/platform_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b326eb237f054ac7f37aff6bea73a5a132f28a1f0c243c61797a3845afe409
|
4
|
+
data.tar.gz: e519fd565cb5d5bb563d626fe188646b69b1f1f4b7b403bbaa94c389ea97010f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c53ad285c0ad7931fd5efabb67bbbaa26afe6a30303698c61e606aa7e3dc100d8bb2e2958b47539623563fd974992ea9b1302f8957f84c69edb83a8c16c06231
|
7
|
+
data.tar.gz: aefa902a5ff106b03419c776e7303d4b18c72496b3728f2931855548a23d2116d4db4e770cbb4f7405b016039ee29be66e9c93a841edf13011c3f60f42593fbd
|
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ module PlatformSdk
|
|
8
8
|
module CanvasApiWrapper
|
9
9
|
# DataPipeline::Client
|
10
10
|
class Client
|
11
|
-
attr_reader :host, :token, :connection
|
11
|
+
attr_reader :host, :token, :connection
|
12
12
|
|
13
13
|
PAGE_SIZE = 10
|
14
14
|
|
@@ -18,10 +18,6 @@ module PlatformSdk
|
|
18
18
|
@host = "https://#{domain}"
|
19
19
|
@token = token
|
20
20
|
@connection = Faraday.new(url: host, headers: { 'Authorization' => "Bearer #{token}" })
|
21
|
-
@multipart_connection = Faraday.new(url: host, headers: { 'Authorization' => "Bearer #{token}" }) do |f|
|
22
|
-
f.request :multipart
|
23
|
-
f.adapter :net_http
|
24
|
-
end
|
25
21
|
end
|
26
22
|
|
27
23
|
# @param course_id [Integer]
|
@@ -410,7 +406,7 @@ module PlatformSdk
|
|
410
406
|
# @note prerequisite_ids should be a valid module_id, sending and empty array removes all prerequisites.
|
411
407
|
def put_module_prerequesites(course_id:, module_id:, prerequisite_ids:)
|
412
408
|
uri = "/api/v1/courses/#{course_id}/modules/#{module_id}"
|
413
|
-
response = @
|
409
|
+
response = @connection.put(uri) do |req|
|
414
410
|
req.headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
415
411
|
req.body = { 'module[prerequisite_module_ids]' => prerequisite_ids }
|
416
412
|
end
|
data/lib/platform_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strongmind-platform-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.19.
|
4
|
+
version: 3.19.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platform Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|