safetykit 0.55.0 → 0.56.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: 94b5b4643f502907fdb970af56e96464d4678cba3f08a4b0449e07c0a2e6c40b
4
- data.tar.gz: 40fea2c964bb268f0fe1fc9fc0f1a82bd4be8e5aa0e3d21873e9b1c878731681
3
+ metadata.gz: e4f14e3ad89b25b2fdd5f3cc9683b7397a4a71cda7d7f31a9a12bf4bdd081333
4
+ data.tar.gz: eedcb639f3053397b70fddff1853c49d5313e0146d9139a44dba5129d1863b75
5
5
  SHA512:
6
- metadata.gz: db56747981445261a4964339ba06c666e0664944691369484959ef7e269641b5ae97583380edaee53bd1ab66d37013b1bf9f644ba0e5665bd79b15c051565468
7
- data.tar.gz: f54bcac9413aaf2fefa6eed5973aae54fbea31112a4f4b9c6e49fea3d69cacfe27298b80335ae93aa9c6a6c36bc13a429697dd91aad9c7c1dec3a2e9a623a79f
6
+ metadata.gz: 1e7d88a65263dd63d77dd2fcdc39510fec92b32fb20ace949182a02a55cfb4ed34771439fb6e62200bbfb3aafb1ea546c37ee903a18f0fd7a94531f261a1678c
7
+ data.tar.gz: 710b42dff5bb08f06668078f5a73756b7dd705c4d3e9bf05d3f5d98c9ddab13e34332ae5e06e01936d8f256e7ad626b24be3a0d6276c41155b7a0dc9645881df
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.56.0 (2026-08-07)
4
+
5
+ Full Changelog: [v0.55.0...v0.56.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.55.0...v0.56.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([56f203f](https://github.com/GetSafetyKit/safetykit-ruby/commit/56f203f076e1ca7e68776fc18543d100462963a0))
10
+
3
11
  ## 0.55.0 (2026-08-06)
4
12
 
5
13
  Full Changelog: [v0.54.0...v0.55.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.54.0...v0.55.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "safetykit", "~> 0.55.0"
20
+ gem "safetykit", "~> 0.56.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -12,6 +12,11 @@ module SafetyKit
12
12
  # both, and receive per-policy results in the response. Requests have a maximum
13
13
  # size of 6MB.
14
14
  #
15
+ # Errors: 400 for an invalid body or images, with the failing field in the
16
+ # message. 401 for a missing or invalid API key. 413 for requests over 6MB. 503
17
+ # when classification is temporarily unavailable, in which case the request was
18
+ # not processed and is safe to retry.
19
+ #
15
20
  # @overload create(user_id:, content_id: nil, images: nil, metadata: nil, text: nil, request_options: {})
16
21
  #
17
22
  # @param user_id [String] Your stable identifier for the user this content belongs to.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.55.0"
4
+ VERSION = "0.56.0"
5
5
  end
@@ -8,6 +8,11 @@ module SafetyKit
8
8
  # Classify a piece of content synchronously. Send user-authored text, images, or
9
9
  # both, and receive per-policy results in the response. Requests have a maximum
10
10
  # size of 6MB.
11
+ #
12
+ # Errors: 400 for an invalid body or images, with the failing field in the
13
+ # message. 401 for a missing or invalid API key. 413 for requests over 6MB. 503
14
+ # when classification is temporarily unavailable, in which case the request was
15
+ # not processed and is safe to retry.
11
16
  sig do
12
17
  params(
13
18
  user_id: String,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safetykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.55.0
4
+ version: 0.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Safetykit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-06 00:00:00.000000000 Z
11
+ date: 2026-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi