getstream-ruby 8.0.0 → 8.0.1
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/README.md +2 -2
- data/lib/getstream_ruby/extensions/moderation_extensions.rb +3 -2
- data/lib/getstream_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c80e4322f9f2d0cf1ed6321f28d49f2d54da2ec0acb611375fd70c68fd111dc4
|
|
4
|
+
data.tar.gz: bb95ccb9d87b42a30dd450cb1d11a70d70d951281b9d66925e0b5f5fe8a88113
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eacba80f4cb84555dc1ad8b5b65b38f3f3ec474202e5301f0ed8f216f961faa144a4566d8700ec98a2b7c05ae6035976cf4f05a5f9edb19798ca0873686c587
|
|
7
|
+
data.tar.gz: 8d1e79f6dac3cd19e3d20364c65c792e1a23f69074097b9c381a0d27b8116419ac691ac347f1a887d616b388cf5ba7051f1a228220467d30cd7263cbd6af195f
|
data/README.md
CHANGED
|
@@ -352,14 +352,14 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/getstr
|
|
|
352
352
|
|
|
353
353
|
Releases use two paths, both handled by `.github/workflows/release.yml`:
|
|
354
354
|
|
|
355
|
-
- **Default**: automatic release when a PR is merged to `main`/`master`. The PR title
|
|
355
|
+
- **Default**: automatic release when a PR is merged to `main`/`master`. The PR title drives the semver bump.
|
|
356
356
|
- **Fallback**: manual release via the `Release` workflow's `workflow_dispatch` (admin use). Select a `version_bump` (`patch`/`minor`/`major`). `use_current_version=true` skips the bump and publishes whatever is already in `lib/getstream_ruby/version.rb`.
|
|
357
357
|
|
|
358
358
|
Automatic semver bump rules:
|
|
359
359
|
|
|
360
360
|
- `feat:` -> minor
|
|
361
361
|
- `fix:` (or `bug:`) -> patch
|
|
362
|
-
- `feat
|
|
362
|
+
- `feat!:` or `<type>(scope)!:` (the `!` marker) -> major
|
|
363
363
|
|
|
364
364
|
PRs with any other prefix do not trigger a release.
|
|
365
365
|
|
|
@@ -19,12 +19,13 @@ module GetStream
|
|
|
19
19
|
# @param profile [Hash] Profile data to be checked
|
|
20
20
|
# @option profile [String] :username Username to be checked
|
|
21
21
|
# @option profile [String] :image Image URL to be checked
|
|
22
|
+
# @param config_key [String] Moderation config key to use (defaults to 'user_profile:default').
|
|
22
23
|
# @return [Models::CheckResponse]
|
|
23
24
|
#
|
|
24
25
|
# @example
|
|
25
26
|
# client.moderation.check_user_profile('user-id',
|
|
26
27
|
# { username: 'bad_username', image: 'https://example.com/profile.jpg' })
|
|
27
|
-
def check_user_profile(user_id, profile)
|
|
28
|
+
def check_user_profile(user_id, profile, config_key: 'user_profile:default')
|
|
28
29
|
if profile[:username].nil? && profile[:image].nil?
|
|
29
30
|
raise ArgumentError, 'Either username or image must be provided'
|
|
30
31
|
end
|
|
@@ -38,7 +39,7 @@ module GetStream
|
|
|
38
39
|
entity_id: user_id,
|
|
39
40
|
entity_creator_id: user_id,
|
|
40
41
|
moderation_payload: moderation_payload,
|
|
41
|
-
config_key:
|
|
42
|
+
config_key: config_key,
|
|
42
43
|
options: { force_sync: true, test_mode: true },
|
|
43
44
|
)
|
|
44
45
|
|