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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdb471d62abb8f183faaf2bfb1fd26fe004528f671e4955ded925fda813f9156
4
- data.tar.gz: 3e25f85140234c5b6c6ea050a4a8388df1ad565b5f8438c41a8b800704fb6770
3
+ metadata.gz: c80e4322f9f2d0cf1ed6321f28d49f2d54da2ec0acb611375fd70c68fd111dc4
4
+ data.tar.gz: bb95ccb9d87b42a30dd450cb1d11a70d70d951281b9d66925e0b5f5fe8a88113
5
5
  SHA512:
6
- metadata.gz: f5bd310d66784680450a687a9fd9f930cfaa4bc3bcc4b2b360a9e75957169b4e1beac3f7e81730358bb0b65b3834a9e2097209a87755baf5ce0668252e887ae3
7
- data.tar.gz: 9f69c4416598837e9160a68e3c547efa1c8b92f230303df51f83c8405b2375eeb5d913d0845ba4afc38e842c54a20e3cb90274b1ab3c540776e24ae5363e1690
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 (and body) drives the semver bump.
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!:`, `<type>(scope)!:`, or `BREAKING CHANGE` in the PR body/title -> major
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: 'user_profile:default',
42
+ config_key: config_key,
42
43
  options: { force_sync: true, test_mode: true },
43
44
  )
44
45
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GetStreamRuby
4
4
 
5
- VERSION = '8.0.0'
5
+ VERSION = '8.0.1'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: getstream-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 8.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream