moderation_api 2.6.0 → 2.6.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: eadc4d2079d3017de1173fb3f2a476d4e5d464714320a2c14ef963c66bea1488
4
- data.tar.gz: fa7ceff538ac65f7de91b5ea0f67a01e0c2f5180c34d093350de685c12789c77
3
+ metadata.gz: ff604e3336aa1a1647d34e44dc4882d29e085728dc24b366f75ddd73e2127a7d
4
+ data.tar.gz: 7aa454e649479c02aa6ccd060fed482b3c9dfe18536a2aa4f4152ec58fe6fe38
5
5
  SHA512:
6
- metadata.gz: b5d6eb01d7471d87b5e153fcc8abdd914771cc17bb5f25715db1aa0b5df7d12ae11c0bca62f77783782f87a72a3095d42cd8ed49cbb8dd42c8561e8bf2e73181
7
- data.tar.gz: 6c177a6dec9bc3c231c84547399a415830971560fe6fd71620cb8bcf592dcf441ab453e7d7a130f24ea862b1ef2f54a9ca0fa92d60b43bf3f08aa8d5b30ec70a
6
+ metadata.gz: 0e69d7cbae2c2fec62591b3f7e8f53e3a7f3de1bdc705297c6e054c4a33f7455b545faee977d40967e77b654aa57259e22bc4ff86c748e5d244daab8820e0223
7
+ data.tar.gz: 4e93df7176d6cac9f1a7327fdc3aa058723b8e25971b88abb7cb7be2aa7f315f2b1eb55da3ce4a8f619cc6ce55d03cda2e8217f2e21a826cc18b99843d16f756
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.6.1 (2026-02-07)
4
+
5
+ Full Changelog: [v2.6.0...v2.6.1](https://github.com/moderation-api/sdk-ruby/compare/v2.6.0...v2.6.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client:** loosen json header parsing ([58cc470](https://github.com/moderation-api/sdk-ruby/commit/58cc470e748a3b3ff04775cf68ef46e27df719a0))
10
+
3
11
  ## 2.6.0 (2026-02-06)
4
12
 
5
13
  Full Changelog: [v2.5.1...v2.6.0](https://github.com/moderation-api/sdk-ruby/compare/v2.5.1...v2.6.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "moderation_api", "~> 2.6.0"
18
+ gem "moderation_api", "~> 2.6.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -485,7 +485,7 @@ module ModerationAPI
485
485
  end
486
486
 
487
487
  # @type [Regexp]
488
- JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}
488
+ JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}
489
489
  # @type [Regexp]
490
490
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
491
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerationAPI
4
- VERSION = "2.6.0"
4
+ VERSION = "2.6.1"
5
5
  end
@@ -296,7 +296,7 @@ module ModerationAPI
296
296
  end
297
297
 
298
298
  JSON_CONTENT =
299
- T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp)
299
+ T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
300
300
  JSONL_CONTENT =
301
301
  T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
302
302
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moderation_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moderation API
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-06 00:00:00.000000000 Z
11
+ date: 2026-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi