method-ruby 0.2.0 → 0.2.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: 399b7e03e93e38c3b645759fd5eca89fb98c7c78d5c2b8dd9cbba0218fea9a21
4
- data.tar.gz: 5302dcb927add9ba469ff8aa90b17c99eb8f17310f7a16225ad2186ecf3a5a89
3
+ metadata.gz: 8b9d519f69c09942e49a7fcb629dedc274791b2c0e2bcbee6ed8120df18b81a8
4
+ data.tar.gz: 5c7fb487cbe80a21564bdda872bb46a3f6fae432a3b78c99f8cd00f018833d2b
5
5
  SHA512:
6
- metadata.gz: d9d671ad07904e424f55967709b2a989e54aec161c82df67ff870b4f863340e9b79c651afc59655c0fb7f65a6db48d8d0950001e17b9ee71790c4d156e18dfba
7
- data.tar.gz: 476edbe3170972e42bd022061d77e6327998115c5016edabe98581eaf0c21e50797c400f27f86c9da8e12b8c51ddce99249c47200c9b2113abd1c061d9905711
6
+ metadata.gz: d712efc74e4b21a8da2625c354238ad25d1857faaf705430b6ab4d426da2c2b52f592ff33d2ed0fd9fa1cfd1730d1e8d0204faf0b84742b1801d84399ae5e9f8
7
+ data.tar.gz: b360342a25264e5c2d745ff7425271d388451a304692b9b842ca974ba87c1a45f4105975204d4e707f42502f8967a050aedb3a50455574fd51cb960e193cd724
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 (2026-05-14)
4
+
5
+ Full Changelog: [v0.2.0...v0.2.1](https://github.com/MethodFi/method-ruby/compare/v0.2.0...v0.2.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **client:** elide content type header on requests without body ([ef9b0f8](https://github.com/MethodFi/method-ruby/commit/ef9b0f8fd16d52422dd4c39d39aec462fd643f3f))
10
+
3
11
  ## 0.2.0 (2026-05-13)
4
12
 
5
13
  Full Changelog: [v0.1.0...v0.2.0](https://github.com/MethodFi/method-ruby/compare/v0.1.0...v0.2.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "method-ruby", "~> 0.2.0"
29
+ gem "method-ruby", "~> 0.2.1"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -325,6 +325,8 @@ module MethodRuby
325
325
  MethodRuby::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
326
326
  end
327
327
 
328
+ headers.delete("content-type") if body.nil?
329
+
328
330
  url = MethodRuby::Internal::Util.join_parsed_uri(
329
331
  @base_url_components,
330
332
  {**req, path: path, query: query}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MethodRuby
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: method-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Method
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-13 00:00:00.000000000 Z
11
+ date: 2026-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi