diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6bc1697d..8d0a1162 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.5.3" + ".": "0.5.4" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d2bf9c6..9b78baa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.5.4 (2025-05-23) + +Full Changelog: [v0.5.3...v0.5.4](https://github.com/orbcorp/orb-ruby/compare/v0.5.3...v0.5.4) + +### Bug Fixes + +* prevent rubocop from mangling `===` to `is_a?` check ([dcff731](https://github.com/orbcorp/orb-ruby/commit/dcff7318aec9cfaa21b7a82849d9df89d82e3ecb)) + + +### Chores + +* **internal:** version bump ([853de30](https://github.com/orbcorp/orb-ruby/commit/853de30e4985aea443239b02ad9ce92ae6ff6ce9)) + ## 0.5.3 (2025-05-22) Full Changelog: [v0.5.2...v0.5.3](https://github.com/orbcorp/orb-ruby/compare/v0.5.2...v0.5.3) diff --git a/Gemfile.lock b/Gemfile.lock index d8f19fa7..fe49f726 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb-billing (0.5.2) + orb-billing (0.5.3) connection_pool GEM diff --git a/README.md b/README.md index e235109a..dad92239 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 "orb-billing", "~> 0.5.3" +gem "orb-billing", "~> 0.5.4" ``` diff --git a/lib/orb/internal/util.rb b/lib/orb/internal/util.rb index 8ff2850e..ab76247f 100644 --- a/lib/orb/internal/util.rb +++ b/lib/orb/internal/util.rb @@ -600,11 +600,12 @@ class << self # # @return [Object] def encode_content(headers, body) + # rubocop:disable Style/CaseEquality content_type = headers["content-type"] case [content_type, body] in [Orb::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }] [headers, JSON.generate(body)] - in [Orb::Internal::Util::JSONL_CONTENT, Enumerable] unless body.is_a?(Orb::Internal::Type::FileInput) + in [Orb::Internal::Util::JSONL_CONTENT, Enumerable] unless Orb::Internal::Type::FileInput === body [headers, body.lazy.map { JSON.generate(_1) }] in [%r{^multipart/form-data}, Hash | Orb::Internal::Type::FileInput] boundary, strio = encode_multipart_streaming(body) @@ -619,6 +620,7 @@ def encode_content(headers, body) else [headers, body] end + # rubocop:enable Style/CaseEquality end # @api private diff --git a/lib/orb/version.rb b/lib/orb/version.rb index e1f0d11e..5fc34898 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "0.5.3" + VERSION = "0.5.4" end