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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d2b3880d5a6f1de5a449454d2c4277e1ac98a49280e22f49981e2d444853806
4
- data.tar.gz: d1b7b96c9927352eb25cecebb5a3da178e8a9e445f9f5309916b7d44b57afc5e
3
+ metadata.gz: e7b326eb237f054ac7f37aff6bea73a5a132f28a1f0c243c61797a3845afe409
4
+ data.tar.gz: e519fd565cb5d5bb563d626fe188646b69b1f1f4b7b403bbaa94c389ea97010f
5
5
  SHA512:
6
- metadata.gz: b267771ba72e4398202d97879059244e9a5e2c4b25ad56c69575f06191b3360cff7871821e8125d552ca8502b0aa7fc31a59a24a4a8007c0ebfce4e5cb739eef
7
- data.tar.gz: 923a3c3a152f421da844de81df80ad96bc7db261669d379d4a01f4ba5b28bdb3ae7dfd648e0c68a4272ea14e81e387211339f6ab7ae3f9dabb8c266ddbcc6fdd
6
+ metadata.gz: c53ad285c0ad7931fd5efabb67bbbaa26afe6a30303698c61e606aa7e3dc100d8bb2e2958b47539623563fd974992ea9b1302f8957f84c69edb83a8c16c06231
7
+ data.tar.gz: aefa902a5ff106b03419c776e7303d4b18c72496b3728f2931855548a23d2116d4db4e770cbb4f7405b016039ee29be66e9c93a841edf13011c3f60f42593fbd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.19.34)
4
+ strongmind-platform-sdk (3.19.35)
5
5
  activesupport (~> 7.1)
6
6
  asset_sync
7
7
  aws-sdk-secretsmanager (~> 1.66)
@@ -8,7 +8,7 @@ module PlatformSdk
8
8
  module CanvasApiWrapper
9
9
  # DataPipeline::Client
10
10
  class Client
11
- attr_reader :host, :token, :connection, :multipart_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 = @multipart_connection.put(uri) do |req|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = '3.19.34'
4
+ VERSION = '3.19.35'
5
5
  end
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.34
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-09 00:00:00.000000000 Z
11
+ date: 2024-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday