moderation_api 2.5.0 → 2.5.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: 4da2393a0dc444367f36cd6636553143d6f86bb08e64c30a05c3855373105390
4
- data.tar.gz: 030303362113354f37346217060b7853dabe827d03de86fe3b8c7a5c1d041cb7
3
+ metadata.gz: bc21236a17680a833904f10a3ce717553c2d20b8d0111422b3dc2a1fb0dd8348
4
+ data.tar.gz: 194dc638d5f654b59cd88cfadad0be48c932b7b0c85f70ee7e04671129c95a97
5
5
  SHA512:
6
- metadata.gz: 401af59bb36f9a7fb382ea217a0d32adaf42a920cc12257c0ee1c363f6be0afe152bbee19139d823a80df3c8c44935b2c7618c992cbf06508e31a490ea1f7882
7
- data.tar.gz: b687d3f5d2097143a50fafc0cdcaba8d1fa49943404509dc07add034afe00d8054df67b446e7d40956d4bf47c9d10c18a2da0ae6a6ae00d2184316658d02941b
6
+ metadata.gz: c13bc0da993fd3ffceef6ac54bf394e491098f83a81974fd6e7658efbbb18b254bd3f856dec6b6f92a1eafd11660b6588578b6c077a71ec1ae4fb860d5d9d634
7
+ data.tar.gz: 5693e07c9185da8ddc0e1c4403c7bd5f5230c26e812a5923b562a9adf3c1a7e7b35dc10d3acd7df37fae4520f6c9e6d67a6d0176be16db62b3541089db91ebd1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.5.1 (2026-02-03)
4
+
5
+ Full Changelog: [v2.5.0...v2.5.1](https://github.com/moderation-api/sdk-ruby/compare/v2.5.0...v2.5.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client:** always add content-length to post body, even when empty ([22201f0](https://github.com/moderation-api/sdk-ruby/commit/22201f0900c1c285c0900dec155b5e0718ccc035))
10
+
3
11
  ## 2.5.0 (2026-01-28)
4
12
 
5
13
  Full Changelog: [v2.4.0...v2.5.0](https://github.com/moderation-api/sdk-ruby/compare/v2.4.0...v2.5.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.5.0"
18
+ gem "moderation_api", "~> 2.5.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -75,7 +75,7 @@ module ModerationAPI
75
75
 
76
76
  case body
77
77
  in nil
78
- nil
78
+ req["content-length"] ||= 0 unless req["transfer-encoding"]
79
79
  in String
80
80
  req["content-length"] ||= body.bytesize.to_s unless req["transfer-encoding"]
81
81
  req.body_stream = ModerationAPI::Internal::Util::ReadIOAdapter.new(body, &blk)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModerationAPI
4
- VERSION = "2.5.0"
4
+ VERSION = "2.5.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.5.0
4
+ version: 2.5.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-01-28 00:00:00.000000000 Z
11
+ date: 2026-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi