From d527cce5ba9ca4a3a69dde49a4bc40ff2937b556 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 02:14:00 +0000 Subject: [PATCH 1/2] fix(client): send content-type header for requests with an omitted optional body --- lib/yoomoney/internal/transport/base_client.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/yoomoney/internal/transport/base_client.rb b/lib/yoomoney/internal/transport/base_client.rb index f8b2a16..6afbc0a 100644 --- a/lib/yoomoney/internal/transport/base_client.rb +++ b/lib/yoomoney/internal/transport/base_client.rb @@ -306,7 +306,10 @@ def initialize( Yoomoney::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) end - headers.delete("content-type") if body.nil? + # Generated methods always pass `req[:body]` for operations that define a + # request body, so only elide the content-type header when the operation + # has no body at all, not when an optional body param was omitted. + headers.delete("content-type") if body.nil? && !req.key?(:body) url = Yoomoney::Internal::Util.join_parsed_uri( @base_url_components, From 9381834587c4068271349bd48a7b3100979dfe31 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 02:14:24 +0000 Subject: [PATCH 2/2] release: 0.5.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/yoomoney/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2aca35a..d04f223 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.5.0" + ".": "0.5.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0251e54..a85668f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.5.1 (2026-06-23) + +Full Changelog: [v0.5.0...v0.5.1](https://github.com/Hexlet/yoomoney-ruby/compare/v0.5.0...v0.5.1) + +### Bug Fixes + +* **client:** send content-type header for requests with an omitted optional body ([d527cce](https://github.com/Hexlet/yoomoney-ruby/commit/d527cce5ba9ca4a3a69dde49a4bc40ff2937b556)) + ## 0.5.0 (2026-05-14) Full Changelog: [v0.4.1...v0.5.0](https://github.com/Hexlet/yoomoney-ruby/compare/v0.4.1...v0.5.0) diff --git a/Gemfile.lock b/Gemfile.lock index 11399f8..ba31be0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - yoomoney (0.5.0) + yoomoney (0.5.1) cgi connection_pool diff --git a/README.md b/README.md index 344a35b..835aa98 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "yoomoney", "~> 0.5.0" +gem "yoomoney", "~> 0.5.1" ``` diff --git a/lib/yoomoney/version.rb b/lib/yoomoney/version.rb index e2191c0..e870894 100644 --- a/lib/yoomoney/version.rb +++ b/lib/yoomoney/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Yoomoney - VERSION = "0.5.0" + VERSION = "0.5.1" end