strongmind-platform-sdk 3.19.40 → 3.20.0

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: ee2be3c848418419cea2a1d187bf078b190bd75e1d360b6b4aa43e4fc89bb108
4
- data.tar.gz: 849f7708af58cdb82750110475af64de26669b8751c234e097f10612e6e11538
3
+ metadata.gz: 17fb77cce71d1c480524e74bf985a06fe8f28bae419a202a211b5abd88cfc893
4
+ data.tar.gz: 39c60b0e242eb1bb60014605bec838eb64ccbc5ea37ed90b2221191c4140e226
5
5
  SHA512:
6
- metadata.gz: e1e74f391bc54c3b3c81349a26d1f87e55f785f8415c5abf0345446ab8305f36152732ab9e9f308c9a28ec7cf37adec1592bd15d49c79ac24c53265e2052d78d
7
- data.tar.gz: f73619d9d0145bb4e6565a874109134ed478e1644171df76bc2077eeab65f9e3ebab0c179133087a69caa009d3b0c20aa4cf59cd264f61f88601f8b72c711f7e
6
+ metadata.gz: ddce04c15c09ca6ea2c2503e54d1e57ce8a8f6c4e280b1218c52c9d02cab3b12955a87cd4a4d0923d0cab37e9cc0141028fd7997159e02f2f835f0d58b4e3566
7
+ data.tar.gz: e496eb7f6a4cc2e7ae2ce0e663ab71a96dec19f6e77cb16aa2afa9fcb7d6f9fd0d25a00700db39cc68c1be6a245ed2a7a35041134a84035e28aaf227e2198e52
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.19.0)
4
+ strongmind-platform-sdk (3.20.0)
5
5
  activesupport (~> 7.1)
6
6
  asset_sync
7
7
  aws-sdk-cloudwatch
@@ -489,6 +489,24 @@ module PlatformSdk
489
489
  end
490
490
  end
491
491
 
492
+ def retrieve_discussion_topic(course_id:, topic_id:)
493
+ uri = "/api/v1/courses/#{course_id}/discussion_topics/#{topic_id}"
494
+ response = @connection.get(uri) do |req|
495
+ req.headers['Content-Type'] = 'application/json'
496
+ end
497
+ handle_rate_limiting response
498
+ result = MultiJson.load response.body, symbolize_keys: true
499
+ if success?(response.status)
500
+ result
501
+ else
502
+ error_messages = String.new
503
+ result[:errors]&.each do |error|
504
+ error_messages << "#{error[:message]} "
505
+ end
506
+ raise "Error retrieving discussion topic: #{error_messages}"
507
+ end
508
+ end
509
+
492
510
  private
493
511
 
494
512
  # @param headers [Faraday::Utils::Headers]
@@ -2,8 +2,8 @@
2
2
 
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
- MINOR = 19
6
- PATCH = 40
5
+ MINOR = 20
6
+ PATCH = 0
7
7
 
8
8
  VERSION = "#{PlatformSdk::MAJOR}.#{PlatformSdk::MINOR}.#{PlatformSdk::PATCH}"
9
9
  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.40
4
+ version: 3.20.0
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-27 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday