amocrm 0.6.0 → 0.6.1

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: 9a71d810c5ee0f4accfa61d6f925744f7564ddf2e86f3b84a00a29bff529bd3e
4
- data.tar.gz: 207bd4a58ffbc551c9936380e8b139392dbe4e442bff8185d4ca3ed23fb605a1
3
+ metadata.gz: ab60c6cc7e180e60a6a693b625d24edd355d927c7bf959d220ecfbfa56c6ac30
4
+ data.tar.gz: 306e0435e62a0c30d0f84a9b0f32f2d9265eb9925edd37d567cbf32a90e5d45a
5
5
  SHA512:
6
- metadata.gz: 060caa4e4c2fb2b878fe5c2e81e7e7d9083462236f2574fefff6df7327550f3faacd69faa409bf0444d69f2c7e7bf158941da0e30ba48b1ec1839927d1602464
7
- data.tar.gz: 452203e68cf7177a56a4ad5659c4e2be29cd16c332b18128bc2e95e82a5254a0e638366bcaa7527a10592d9ed45528369e4fd30f97195abc9ffa3219efd579e9
6
+ metadata.gz: c286c539958ee5c9ec4eeee1aee933a783a0a7fa6b1a62f1d15a30d92a627f625ef2c25b125f22abe6dca68f3e4ae73d582a93aba59e4f298cc1e046393bd455
7
+ data.tar.gz: 4aab1d7dba0ee76dbca0ca60be8abfef20240c9e300ec19d2afeeb5fbdf7bdef123d3a006a400d1f36963141b62bf1b60c7f87847678ffb18ae561f82ac34adb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1 (2026-06-17)
4
+
5
+ Full Changelog: [v0.6.0...v0.6.1](https://github.com/Hexlet/amocrm-ruby/compare/v0.6.0...v0.6.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client:** elide content type header on requests without body ([c5d17f3](https://github.com/Hexlet/amocrm-ruby/commit/c5d17f30eca70a68ca3df7dd38bd38137d59ec0a))
10
+ * **client:** send content-type header for requests with an omitted optional body ([496a14f](https://github.com/Hexlet/amocrm-ruby/commit/496a14f1acec3e6d3f150ec83ebab8141acf670a))
11
+
3
12
  ## 0.6.0 (2026-04-30)
4
13
 
5
14
  Full Changelog: [v0.5.4...v0.6.0](https://github.com/Hexlet/amocrm-ruby/compare/v0.5.4...v0.6.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.6.0"
18
+ gem "amocrm", "~> 0.6.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -306,6 +306,11 @@ module Amocrm
306
306
  Amocrm::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
307
307
  end
308
308
 
309
+ # Generated methods always pass `req[:body]` for operations that define a
310
+ # request body, so only elide the content-type header when the operation
311
+ # has no body at all, not when an optional body param was omitted.
312
+ headers.delete("content-type") if body.nil? && !req.key?(:body)
313
+
309
314
  url = Amocrm::Internal::Util.join_parsed_uri(
310
315
  @base_url_components,
311
316
  {**req, path: path, query: query}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Amocrm
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amocrm
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-30 00:00:00.000000000 Z
11
+ date: 2026-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi