amocrm 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de81b8e9eea16505e62605261294414cfeaa34a64c106fb7b32e8ed7440c86f7
4
- data.tar.gz: 1e3c5480c2421d6fd2a64b1cd86c961bd483ecb7b7d958f4b8a41d676d195467
3
+ metadata.gz: cfef5e79dcdf0b387cb55e51c8aa72af1482503df4ac088bd02a2cf3714adf66
4
+ data.tar.gz: '09f72bffa2406af1cb560be1c0a01d157bf110bc72adf4eb507f66450cd17ec6'
5
5
  SHA512:
6
- metadata.gz: d93f496737acc252f1abc66a149628830023bade36389bf68c93cb6523ecc4e95c72912c33314365bf200376256bcbdf99e6db2a160a9b9ea62da223c38d5918
7
- data.tar.gz: caed3f26edffb1727290ca3421975633a424b1872e865934e819871c6087eb77dd2ceb3d5ddae4155ee77cbd1b9cd00b77b66196e2f0206e8b2fcde2ced8a588
6
+ metadata.gz: c1778d45d3212d8dccf9c972b69e46af80cb95d99c03752d31a259c4c19bee47e38da967afadffec58b484de0e63bf471a454c4d0c9ff43487583ce0610d5c69
7
+ data.tar.gz: f48f6549f3a156b3775aa3b65244e94a10ca978e22dc3a5028bf9bc40bac6074c38b81c10247f36712b570d29e11ba4d6ff43e16c7aac6cd41521d521e35eb95
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.2 (2026-02-07)
4
+
5
+ Full Changelog: [v0.5.1...v0.5.2](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.1...v0.5.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client:** loosen json header parsing ([b2969f0](https://github.com/Hexlet/amocrm-ruby/commit/b2969f03cdd70e6690cb1b6767c8a7b453da4d49))
10
+
11
+ ## 0.5.1 (2026-02-06)
12
+
13
+ Full Changelog: [v0.5.0...v0.5.1](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.0...v0.5.1)
14
+
3
15
  ## 0.5.0 (2026-02-06)
4
16
 
5
17
  Full Changelog: [v0.4.0...v0.5.0](https://github.com/Hexlet/amocrm-ruby/compare/v0.4.0...v0.5.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "amocrm", "~> 0.5.0"
18
+ gem "amocrm", "~> 0.5.2"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -272,7 +272,9 @@ module Amocrm
272
272
  #
273
273
  # @return [Hash{String=>Array<String>}]
274
274
  def decode_query(query)
275
- CGI.parse(query.to_s)
275
+ URI.decode_www_form(query.to_s).each_with_object(Hash.new { _1[_2] = [] }) do |(key, value), acc|
276
+ acc[key] << value
277
+ end
276
278
  end
277
279
 
278
280
  # @api private
@@ -485,7 +487,7 @@ module Amocrm
485
487
  end
486
488
 
487
489
  # @type [Regexp]
488
- JSON_CONTENT = %r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}
490
+ JSON_CONTENT = %r{^application/(?:[a-z0-9.-]+\+)?json(?!l)}
489
491
  # @type [Regexp]
490
492
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
493
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Amocrm
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.2"
5
5
  end
@@ -296,7 +296,7 @@ module Amocrm
296
296
  end
297
297
 
298
298
  JSON_CONTENT =
299
- T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp)
299
+ T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
300
300
  JSONL_CONTENT =
301
301
  T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
302
302
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amocrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amocrm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-06 00:00:00.000000000 Z
11
+ date: 2026-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi