dataleon 0.1.0.pre.alpha.10 → 0.1.0.pre.alpha.11

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: a2795d85c7303758b4e1d12cec0605a0063f19b2879ef69d75c422f6b56d43cf
4
- data.tar.gz: b9b388c3cfa76978879e48cd6232ed31215ea089720c20176b594d93e094d24f
3
+ metadata.gz: 284a9ff93cf36f6a31a1358e9409a2217b5914d87139abc4334f4ce4acac07b3
4
+ data.tar.gz: 960e27dd8b781129c7ebdce503af285dac4245faf44f7b10c6d86f107d57d560
5
5
  SHA512:
6
- metadata.gz: 2c98d4cd07d3634aee0a82e1b06c2446c597ca31b464c9f0226a270f2ed4a34903acb6b2dc4f2b80bf4c62c333831d55582968fc0cc787511721cc10334ab574
7
- data.tar.gz: a2c53170a2d87b5ef3d3fa3024ff5915d5c91d60246a1211f84aad48f470b7c93b24d2304afbf74b8b3d15cf5e29aa10993e3ed028fa7282fa4d798a864f92a4
6
+ metadata.gz: b52acf35b619c8e0928f84ac2c87f810906e59fd337c5a84c93099f580ca819c4514912dd248ad4a0c341faeb12a3ea3b795842c8a0d9b777aeec3074f7a00e2
7
+ data.tar.gz: 195ee1226d321009647085d6ed72d03c6682009086fed922a6474cb809d1b1c46e1d80c14b3f306b651e3c8b30b3782ca6b0071a742b4054444f049f11bc6e26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.11 (2025-12-19)
4
+
5
+ Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/dataleonlabs/dataleon-ruby/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)
6
+
7
+ ### Bug Fixes
8
+
9
+ * issue where json.parse errors when receiving HTTP 204 with nobody ([2bb84e5](https://github.com/dataleonlabs/dataleon-ruby/commit/2bb84e59e28fb9af2bbbde1fa782a46125598c8e))
10
+
3
11
  ## 0.1.0-alpha.10 (2025-12-17)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/dataleonlabs/dataleon-ruby/compare/v0.1.0-alpha.9...v0.1.0-alpha.10)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "dataleon", "~> 0.1.0.pre.alpha.10"
20
+ gem "dataleon", "~> 0.1.0.pre.alpha.11"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -657,7 +657,8 @@ module Dataleon
657
657
  def decode_content(headers, stream:, suppress_error: false)
658
658
  case (content_type = headers["content-type"])
659
659
  in Dataleon::Internal::Util::JSON_CONTENT
660
- json = stream.to_a.join
660
+ return nil if (json = stream.to_a.join).empty?
661
+
661
662
  begin
662
663
  JSON.parse(json, symbolize_names: true)
663
664
  rescue JSON::ParserError => e
@@ -667,7 +668,11 @@ module Dataleon
667
668
  in Dataleon::Internal::Util::JSONL_CONTENT
668
669
  lines = decode_lines(stream)
669
670
  chain_fused(lines) do |y|
670
- lines.each { y << JSON.parse(_1, symbolize_names: true) }
671
+ lines.each do
672
+ next if _1.empty?
673
+
674
+ y << JSON.parse(_1, symbolize_names: true)
675
+ end
671
676
  end
672
677
  in %r{^text/event-stream}
673
678
  lines = decode_lines(stream)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dataleon
4
- VERSION = "0.1.0.pre.alpha.10"
4
+ VERSION = "0.1.0.pre.alpha.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dataleon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.10
4
+ version: 0.1.0.pre.alpha.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dataleon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-17 00:00:00.000000000 Z
11
+ date: 2025-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool