From 7dd05f0c0399ac31f3f4d9450146d55d7501d1a2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2026 15:39:37 +0000 Subject: [PATCH 1/2] fix(client): send content-type header for requests with an omitted optional body --- lib/imagekitio/internal/transport/base_client.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/imagekitio/internal/transport/base_client.rb b/lib/imagekitio/internal/transport/base_client.rb index f6c722b..509622e 100644 --- a/lib/imagekitio/internal/transport/base_client.rb +++ b/lib/imagekitio/internal/transport/base_client.rb @@ -306,7 +306,10 @@ def initialize( Imagekitio::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 = Imagekitio::Internal::Util.join_parsed_uri( @base_url_components, From b5db0ade6e6f6328fc03bff99107abdd5f7eceb2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 11:45:23 +0000 Subject: [PATCH 2/2] release: 4.7.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 18 ++++++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/imagekitio/version.rb | 2 +- 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1269f90..1eec10e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.6.0" + ".": "4.7.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d7e11c..1fab6b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 4.7.0 (2026-06-18) + +Full Changelog: [v4.6.0...v4.7.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.6.0...v4.7.0) + +### Features + +* **origins:** add useIAMRole for IAM role authentication ([c38cc1b](https://github.com/imagekit-developer/imagekit-ruby/commit/c38cc1bea8028c2c10ae543e027dc71a63170222)) + + +### Bug Fixes + +* **client:** send content-type header for requests with an omitted optional body ([7dd05f0](https://github.com/imagekit-developer/imagekit-ruby/commit/7dd05f0c0399ac31f3f4d9450146d55d7501d1a2)) + + +### Documentation + +* update default value in description for intensity in colorize transformation ([7b128c5](https://github.com/imagekit-developer/imagekit-ruby/commit/7b128c59d1da7435e6137ebad7a60251e941defa)) + ## [4.6.0](https://github.com/imagekit-developer/imagekit-ruby/compare/v4.5.1...v4.6.0) (2026-06-03) diff --git a/Gemfile.lock b/Gemfile.lock index fdbab26..5a44bbc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - imagekitio (4.5.1) + imagekitio (4.7.0) cgi connection_pool standardwebhooks diff --git a/README.md b/README.md index 48c86da..b8cbdf0 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "imagekitio", "~> 4.6.0" +gem "imagekitio", "~> 4.7.0" ``` diff --git a/lib/imagekitio/version.rb b/lib/imagekitio/version.rb index ed8ae2f..dfef486 100644 --- a/lib/imagekitio/version.rb +++ b/lib/imagekitio/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Imagekitio - VERSION = "4.6.0" + VERSION = "4.7.0" end