moderation_api 2.17.0 → 2.17.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: 8d06166f679bb017ff6a3277860f748562e5e88bbe4657f501d07503285ec05a
4
- data.tar.gz: d5696f29a66d95cc37dc48f5093142ab769a33274c820ef1c071c8d3f339e2fe
3
+ metadata.gz: 7ee37a4543f7677e008592f1f3057179576b16e8094952e691cb994016c45900
4
+ data.tar.gz: ed3ed0f245d52ca87a16a7285f8996b16af07e29ad54e646cf73130082c693a7
5
5
  SHA512:
6
- metadata.gz: ed85222e962a4798a3345e456ac17c1e39c3d1e8ddf1e6e3bbdb7b8bb63e1d8ada7449c3fdde6318fe6a69dc1691f0e19322d41a8bbaa01df10c3099f94b5912
7
- data.tar.gz: d16b9f5f991583b2a96e1015b3ea1d39e894238939ff020857166c3ce52d0614fdf1b699aff9013aee194cec29dae8a1cbeb57597b91ef6ccd600f29b838bb9d
6
+ metadata.gz: 728e49f20b92bb7be75ca53d6590aafcc035395b168c427ddc930d3c81defaa1e7c467b7bfe07fbdeff890373899dbf66a8cfbd257de23e5f005f4fca6e3e4a2
7
+ data.tar.gz: 281558ed8d1dfff1d17827902fe699a61766ab333b1254d763f37c131cd583d81f44705ccf270cb9426cdb42cdf87e575c16595632a9b6e854fbcc6b7f5ff359
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.17.1 (2026-05-14)
4
+
5
+ Full Changelog: [v2.17.0...v2.17.1](https://github.com/moderation-api/sdk-ruby/compare/v2.17.0...v2.17.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client:** elide content type header on requests without body ([c1a43a0](https://github.com/moderation-api/sdk-ruby/commit/c1a43a0212bdaf1c7f81e2c56c961e49e4830e61))
10
+
3
11
  ## 2.17.0 (2026-05-08)
4
12
 
5
13
  Full Changelog: [v2.16.0...v2.17.0](https://github.com/moderation-api/sdk-ruby/compare/v2.16.0...v2.17.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.17.0"
18
+ gem "moderation_api", "~> 2.17.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -306,6 +306,8 @@ module ModerationAPI
306
306
  ModerationAPI::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
307
307
  end
308
308
 
309
+ headers.delete("content-type") if body.nil?
310
+
309
311
  url = ModerationAPI::Internal::Util.join_parsed_uri(
310
312
  @base_url_components,
311
313
  {**req, path: path, query: query}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerationAPI
4
- VERSION = "2.17.0"
4
+ VERSION = "2.17.1"
5
5
  end
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.17.0
4
+ version: 2.17.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-05-08 00:00:00.000000000 Z
11
+ date: 2026-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi