strongmind-platform-sdk 3.23.6 → 3.24.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: 25353bae16a316757afdc4894f7525b2fcb3067a023d6e060e097aecaa9c065b
4
- data.tar.gz: db6dd50bd976e011fd695a7c9b5fd6f46858b3c9855310f3ed5bf901111970cb
3
+ metadata.gz: 74c0c99acf8dd003b7b42d91ebf41d68d47bdbd63918a63384d6a5a3f78bc5ea
4
+ data.tar.gz: 04ad4dead89549e81ca8540b4338fa7e043f1c822d20dae681401f0d5a32f25c
5
5
  SHA512:
6
- metadata.gz: d2500352b571a23391b794ca15ad8ec54a5885b0c2973f4feec6c8b15cd89bde697d782d7cdcb349d08c1f5982860d6a4668b6febcb2c840b9a668fd9bf8f75e
7
- data.tar.gz: 8b080df75d3f179de7b5a4435d3e68901bee46639928ee2736e83cd5c6ee55bb7931c1777279521a37428ddc25ba6b0ebf12c4af7deab02444af7ee79aeb1396
6
+ metadata.gz: df92d19421089f1c48ed0e31504ec4eb6d057df021c20ab188648cd4ed3b2a31cc048d1e15cacb2b18b91aeb3c9c0d5a82e64ee46cc59f29983ae1c398836f14
7
+ data.tar.gz: 91aee9d5a87b128e6a6296970a7c31226a8338c6dc1a7a180096843a6389b04ed5f3b67a4e8f4d4ff742a61353fc48ac266c98d661e42de7953681f3ca07dddf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.23.0)
4
+ strongmind-platform-sdk (3.24.0)
5
5
  asset_sync
6
6
  aws-sdk-cloudwatch
7
7
  aws-sdk-secretsmanager (~> 1.66)
@@ -128,13 +128,13 @@ GEM
128
128
  bigdecimal
129
129
  rexml
130
130
  crass (1.0.6)
131
- date (3.4.0)
131
+ date (3.4.1)
132
132
  diff-lcs (1.5.1)
133
133
  drb (2.2.1)
134
134
  erubi (1.13.0)
135
135
  ethon (0.16.0)
136
136
  ffi (>= 1.15.0)
137
- excon (1.2.1)
137
+ excon (1.2.2)
138
138
  factory_bot (6.4.6)
139
139
  activesupport (>= 5.0.0)
140
140
  faker (3.4.2)
@@ -195,7 +195,7 @@ GEM
195
195
  mime-types (3.6.0)
196
196
  logger
197
197
  mime-types-data (~> 3.2015)
198
- mime-types-data (3.2024.1105)
198
+ mime-types-data (3.2024.1203)
199
199
  mini_mime (1.1.5)
200
200
  mini_portile2 (2.8.7)
201
201
  minitest (5.24.1)
@@ -353,9 +353,9 @@ module PlatformSdk
353
353
  # @param module_item_id [Integer]
354
354
  # @param user_id [Integer]
355
355
  # @return nil
356
- def post_mark_module_item_done(course_id:, module_id:, module_item_id:, user_id:)
356
+ def put_mark_module_item_done(course_id:, module_id:, module_item_id:, user_id:)
357
357
  uri = "api/v1/courses/#{course_id}/modules/#{module_id}/items/#{module_item_id}/done?as_user_id=#{user_id}"
358
- response = @connection.post(uri)
358
+ response = @connection.put(uri)
359
359
  handle_rate_limiting response
360
360
  if success?(response.status)
361
361
  MultiJson.load response.body, symbolize_keys: true
@@ -39,6 +39,12 @@ module PlatformSdk
39
39
  response.body
40
40
  end
41
41
 
42
+ def notifications(**notification)
43
+ resource_path = '/api/notifications'
44
+ response = post(resource_path, notification)
45
+ response.body
46
+ end
47
+
42
48
  private
43
49
 
44
50
  def build_connection
@@ -2,8 +2,8 @@
2
2
 
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
- MINOR = 23
6
- PATCH = 6
5
+ MINOR = 24
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.23.6
4
+ version: 3.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-09 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -310,7 +310,7 @@ metadata:
310
310
  homepage_uri: https://github.com/StrongMind/platform-ruby-sdk
311
311
  source_code_uri: https://github.com/StrongMind/platform-ruby-sdk
312
312
  changelog_uri: https://github.com/StrongMind/platform-ruby-sdk/blob/main/CHANGELOG.md
313
- post_install_message:
313
+ post_install_message:
314
314
  rdoc_options: []
315
315
  require_paths:
316
316
  - lib
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  requirements: []
328
328
  rubygems_version: 3.4.10
329
- signing_key:
329
+ signing_key:
330
330
  specification_version: 4
331
331
  summary: This gem is intended to provide clients and models for accessing the Platform
332
332
  APIs.