diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b23f23d..d139eec 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.10.5" + ".": "0.10.6" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e29396..09b15ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.10.6 (2026-02-07) + +Full Changelog: [v0.10.5...v0.10.6](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.10.5...v0.10.6) + +### Bug Fixes + +* **client:** loosen json header parsing ([65e7b42](https://github.com/openlayer-ai/openlayer-ruby/commit/65e7b425df42b9c0a50bae22c71de4d2fad4a51a)) + ## 0.10.5 (2026-02-04) Full Changelog: [v0.10.4...v0.10.5](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.10.4...v0.10.5) diff --git a/Gemfile.lock b/Gemfile.lock index ecf859e..3d09063 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - openlayer (0.10.5) + openlayer (0.10.6) cgi connection_pool diff --git a/README.md b/README.md index eec3c2e..77543d0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "openlayer", "~> 0.10.5" +gem "openlayer", "~> 0.10.6" ``` diff --git a/lib/openlayer/internal/util.rb b/lib/openlayer/internal/util.rb index b57a2fc..44e3213 100644 --- a/lib/openlayer/internal/util.rb +++ b/lib/openlayer/internal/util.rb @@ -485,7 +485,7 @@ def writable_enum(&blk) end # @type [Regexp] - JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)} + JSON_CONTENT = %r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)} # @type [Regexp] JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)} diff --git a/lib/openlayer/version.rb b/lib/openlayer/version.rb index d1f54dc..03a48be 100644 --- a/lib/openlayer/version.rb +++ b/lib/openlayer/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Openlayer - VERSION = "0.10.5" + VERSION = "0.10.6" end diff --git a/rbi/openlayer/internal/util.rbi b/rbi/openlayer/internal/util.rbi index b8b6198..e44397b 100644 --- a/rbi/openlayer/internal/util.rbi +++ b/rbi/openlayer/internal/util.rbi @@ -296,7 +296,7 @@ module Openlayer end JSON_CONTENT = - T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp) + T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp) JSONL_CONTENT = T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp) diff --git a/test/openlayer/internal/util_test.rb b/test/openlayer/internal/util_test.rb index 6c99d2f..b71a7b6 100644 --- a/test/openlayer/internal/util_test.rb +++ b/test/openlayer/internal/util_test.rb @@ -171,6 +171,8 @@ def test_json_content cases = { "application/json" => true, "application/jsonl" => false, + "application/arbitrary+json" => true, + "application/ARBITRARY+json" => true, "application/vnd.github.v3+json" => true, "application/vnd.api+json" => true }