diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 315f7d30b..7657c56b7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.26" + ".": "0.1.0-alpha.27" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ade1347a..0beac9df1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.0-alpha.27 (2025-05-23) + +Full Changelog: [v0.1.0-alpha.26...v0.1.0-alpha.27](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.26...v0.1.0-alpha.27) + +### Bug Fixes + +* prevent rubocop from mangling `===` to `is_a?` check ([b0fc6ac](https://github.com/Increase/increase-ruby/commit/b0fc6ac4326dc7a7ab598af3652be29e357590df)) + ## 0.1.0-alpha.26 (2025-05-22) Full Changelog: [v0.1.0-alpha.25...v0.1.0-alpha.26](https://github.com/Increase/increase-ruby/compare/v0.1.0-alpha.25...v0.1.0-alpha.26) diff --git a/Gemfile.lock b/Gemfile.lock index 454834809..6ac4dfc51 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (0.1.0.pre.alpha.26) + increase (0.1.0.pre.alpha.27) connection_pool GEM diff --git a/README.md b/README.md index e9b6a6ae8..faabc74c6 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 "increase", "~> 0.1.0.pre.alpha.26" +gem "increase", "~> 0.1.0.pre.alpha.27" ``` diff --git a/lib/increase/internal/util.rb b/lib/increase/internal/util.rb index fb1196886..144f791a2 100644 --- a/lib/increase/internal/util.rb +++ b/lib/increase/internal/util.rb @@ -600,11 +600,13 @@ class << self # # @return [Object] def encode_content(headers, body) + # rubocop:disable Style/CaseEquality + # rubocop:disable Layout/LineLength content_type = headers["content-type"] case [content_type, body] in [Increase::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }] [headers, JSON.generate(body)] - in [Increase::Internal::Util::JSONL_CONTENT, Enumerable] unless body.is_a?(Increase::Internal::Type::FileInput) + in [Increase::Internal::Util::JSONL_CONTENT, Enumerable] unless Increase::Internal::Type::FileInput === body [headers, body.lazy.map { JSON.generate(_1) }] in [%r{^multipart/form-data}, Hash | Increase::Internal::Type::FileInput] boundary, strio = encode_multipart_streaming(body) @@ -619,6 +621,8 @@ def encode_content(headers, body) else [headers, body] end + # rubocop:enable Layout/LineLength + # rubocop:enable Style/CaseEquality end # @api private diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 3e775b64c..b8eedc8cf 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "0.1.0.pre.alpha.26" + VERSION = "0.1.0.pre.alpha.27" end