altertable-lakehouse 0.5.0 → 0.5.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: 18b992ed254a6445172a0b19f560afbb7380da7109a0c15fcc24dd8cccdca195
4
- data.tar.gz: 25ebe5ea1a4e570ad391af48df2bc5a43d87dd46570f702888aefd12be8f9597
3
+ metadata.gz: 5a603bff18558e212586e0bb27016f56c832266d7dedce34ee0a7cf5a6b820a5
4
+ data.tar.gz: 4203dd0b9b090439722b8f51c8ad931048689e37ab1078738b541b0644f07427
5
5
  SHA512:
6
- metadata.gz: b08a506dcf3292f1f85400149fb40ea4c9a59183c51157c752039467415bc8fa982c8a298fbef1e7cc7f12e12b1a8a2cbde9736633531495004c8a9b3999a20b
7
- data.tar.gz: bd4fcde8127c172009aee8d146eed5601156dc8a9d3206ee9c38c317afa9597d68c113183b6f9fdb44296ab0d4202bb99b690cf30bb9c76bb91f9fde498dfe48
6
+ metadata.gz: 48b6b338259bdfa8ef5b65f967b76ec8ef79b48bba966eff4cd32c123c16ad94c7e3bb90d30ea09325d9b96f4313ea193f5e9bf639207f1969d0f640e869f44a
7
+ data.tar.gz: 3459d13102d1a68eb09aaa8cdb969d0bb0ec7157061ceb83873eea9af545e0414f4702939d693eb32bcbe8a7c4208379041cb971b02de261f735801851304895
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.5.0"
2
+ ".": "0.5.1"
3
3
  }
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.5.1](https://github.com/altertable-ai/altertable-lakehouse-ruby/compare/altertable-lakehouse/v0.5.0...altertable-lakehouse/v0.5.1) (2026-05-29)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **array payload:** ensure array payload are also converted to JSON ([#39](https://github.com/altertable-ai/altertable-lakehouse-ruby/issues/39)) ([0d01361](https://github.com/altertable-ai/altertable-lakehouse-ruby/commit/0d013615f44104890f482c20da9316b9f8a7fee4))
11
+
5
12
  ## [0.5.0](https://github.com/altertable-ai/altertable-lakehouse-ruby/compare/altertable-lakehouse/v0.4.2...altertable-lakehouse/v0.5.0) (2026-05-28)
6
13
 
7
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- altertable-lakehouse (0.5.0)
4
+ altertable-lakehouse (0.5.1)
5
5
  base64
6
6
 
7
7
  GEM
@@ -185,13 +185,22 @@ module Altertable
185
185
  def request(method, path, body: nil, query: nil, headers: {})
186
186
  resp = @adapter.send(
187
187
  method, path,
188
- body: body.is_a?(Hash) ? body.to_json : body,
188
+ body: encode_request_body(body),
189
189
  params: query || {},
190
190
  headers: headers
191
191
  )
192
192
  handle_response(resp)
193
193
  end
194
194
 
195
+ def encode_request_body(body)
196
+ case body
197
+ when Hash, Array
198
+ body.to_json
199
+ else
200
+ body
201
+ end
202
+ end
203
+
195
204
  def handle_stream_response(resp, buffer, yielder)
196
205
  case resp.status
197
206
  when 400
@@ -1,5 +1,5 @@
1
1
  module Altertable
2
2
  module Lakehouse
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: altertable-lakehouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Altertable AI