strongmind-platform-sdk 3.33.2 → 3.33.4

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: 16ef38b315d004dc797038066c3977c189a027ede5c9ce9b5816a7115ba98879
4
- data.tar.gz: 2ea99aeeef3faadf552cb389b04ccc6e594e7bd97361aa4548e455bc1278aab8
3
+ metadata.gz: 80e27a2c045cd72bc8633ded3fc6505f5c2a029158bb67b120ed6b39b31c3438
4
+ data.tar.gz: 9941c3cde4236922d326beb90cfef6847568fb1b996eb55bc999f86217672385
5
5
  SHA512:
6
- metadata.gz: 5efb1af7b39c87ad4ece516cadc566f997e0a30a6c8e23964978ad240eef99660859421b102368bf379f8e1dc4f7c7990ed977b56d477ff65ca6f65aced1a202
7
- data.tar.gz: 4cdb95b27e2165a8b1a2a325714b1cfa9f67946975e0b264684946fb49a591b02cea635404d55855d9582eb8ae04c3a08e9af0e74476cfd0c9481e394be31391
6
+ metadata.gz: d991813ce02b2207fc72c523930d4dbe827d05e644be07d6868caa562be89936ec71a305bf275c1c378571005775cbcf584784bb2fbc57a806ccc236e438caac
7
+ data.tar.gz: c29637d88a1e720243e39a556195e89836c1346d1fc2a0e0de2d5c88a0d286c1a5bdc8096fea2be727dd2b0777f4e4fb6d32c37a3130c8ccf3b0063fbaef5588
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## [Unreleased]
2
2
 
3
+ - Fix `CanvasApiWrapper::Client#success?` treating some non-2xx responses as successful. The check used an unanchored `/2[0-9]/` match, so `429` matched on its `"29"` substring and a rate-limited response took the success branch, then raised `NoMethodError: undefined method 'split' for nil:NilClass` in `page_links` — `429` responses carry no `Link` header. Now anchored to `(200..299)`, so these fall through to the error branch and raise a descriptive message. Also corrects `422` and the other `3xx`/`4xx`/`5xx` codes matching the same pattern.
4
+
3
5
  ## [3.33.0] - 2026-07-28
4
6
 
5
7
  - Add `PlatformSdk::Identity::Zitadel::Client` — Zitadel v2 user API client (`#provision_identity`), mirroring the IS4 client's signature. Preserves the IS4 `Id` as the Zitadel `userId` and treats a `409` as an idempotent replay once the preserved id is confirmed to hold the same username.
@@ -648,7 +648,7 @@ module PlatformSdk
648
648
  # @param response_code [Integer]
649
649
  # @return [Boolean]
650
650
  def success?(response_code)
651
- !!(response_code.to_s =~ /2[0-9]/)
651
+ (200..299).cover?(response_code.to_i)
652
652
  end
653
653
 
654
654
  # @param message [String]
@@ -28,13 +28,14 @@ module PlatformSdk
28
28
  raise NetworkError, "Connection failed: #{e.message}"
29
29
  end
30
30
 
31
- def generate_offline_activity(learning_component:, learning_objective:, grade_level:)
31
+ def generate_offline_activity(learning_component:, learning_objective:, grade_level:, standard: nil)
32
32
  response = @connection.post('activities/generate') do |req|
33
33
  req.body = {
34
34
  learning_component: learning_component,
35
35
  learning_objective: learning_objective,
36
36
  grade_level: grade_level
37
37
  }
38
+ req.body[:standard] = standard if standard
38
39
  end
39
40
 
40
41
  handle_response(response)
@@ -3,7 +3,7 @@
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
5
  MINOR = 33
6
- PATCH = 2
6
+ PATCH = 4
7
7
 
8
8
  VERSION = "#{PlatformSdk::MAJOR}.#{PlatformSdk::MINOR}.#{PlatformSdk::PATCH}".freeze
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.33.2
4
+ version: 3.33.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-08-07 00:00:00.000000000 Z
11
+ date: 2026-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64