diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d04f223..383dd5a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.5.1" + ".": "0.5.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c676000..3daea5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.5.2 (2026-02-07) + +Full Changelog: [v0.5.1...v0.5.2](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.1...v0.5.2) + +### Bug Fixes + +* **client:** loosen json header parsing ([b2969f0](https://github.com/Hexlet/amocrm-ruby/commit/b2969f03cdd70e6690cb1b6767c8a7b453da4d49)) + ## 0.5.1 (2026-02-06) Full Changelog: [v0.5.0...v0.5.1](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.0...v0.5.1) diff --git a/Gemfile.lock b/Gemfile.lock index 0d80ad0..ba99692 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - amocrm (0.5.1) + amocrm (0.5.2) cgi connection_pool diff --git a/README.md b/README.md index 484a206..a212c07 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 "amocrm", "~> 0.5.1" +gem "amocrm", "~> 0.5.2" ``` diff --git a/lib/amocrm/version.rb b/lib/amocrm/version.rb index 470a092..0278c4f 100644 --- a/lib/amocrm/version.rb +++ b/lib/amocrm/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Amocrm - VERSION = "0.5.1" + VERSION = "0.5.2" end diff --git a/rbi/amocrm/internal/util.rbi b/rbi/amocrm/internal/util.rbi index 812cdd9..e637542 100644 --- a/rbi/amocrm/internal/util.rbi +++ b/rbi/amocrm/internal/util.rbi @@ -296,7 +296,7 @@ module Amocrm 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)