userplex 0.6.1 → 0.6.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: bff32ef0e64d770c22f38d8398326d02f8f26ef9a4fb32ee194ded3c69a6d0cf
4
- data.tar.gz: d49b49155d49c5866b416248060a1eb467a21a9664d90cf872465045ac7f3b4f
3
+ metadata.gz: de0bca2a6c4fec9a5cc772c460cdfb90e3c4d7d58bcff3ec3846d20fc79021ce
4
+ data.tar.gz: 77c4a34082f9da6a2793b1366ee58eb4eff70f299d2497f929b53036ea89a05d
5
5
  SHA512:
6
- metadata.gz: 85b18927e17088fe578a2f48d37074163dd045f82e4c5d1f4e679cdbac0d671a49b469bb40161b7c641e50caa4f7c25ea18b1edbabc76697e294966c702b84f7
7
- data.tar.gz: 80c8b12d6fe80a78633ed422951305af347ddef3848321d23f5946fa526a8feee34d55abe8cd15dea697cfdfa649c39452570936548c7a396eb6108bfc6438ef
6
+ metadata.gz: 74f19cbd27ffb1613af4d352e771dfd7aa9482585268358c5d5267b5fe3549ac4cd1fcf5e4135b97940b85d577248069cee6a8694ff030d682107773758d2610
7
+ data.tar.gz: 03333ed8adf56ba213059546f6f91f9085d3b46350e5f3c115eb6e121160ae6c0f9a472a171bae8efa64fff11dea61232b3b4c337bd3882d140aa45c60e67c5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.2 (2025-12-19)
4
+
5
+ Full Changelog: [v0.6.1...v0.6.2](https://github.com/dqnamo/userplex-ruby/compare/v0.6.1...v0.6.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * issue where json.parse errors when receiving HTTP 204 with nobody ([a4b0ce0](https://github.com/dqnamo/userplex-ruby/commit/a4b0ce01f81053fb2b03348ead1ef686fe2c53b1))
10
+
3
11
  ## 0.6.1 (2025-12-17)
4
12
 
5
13
  Full Changelog: [v0.6.0...v0.6.1](https://github.com/dqnamo/userplex-ruby/compare/v0.6.0...v0.6.1)
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 "userplex", "~> 0.6.1"
18
+ gem "userplex", "~> 0.6.2"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -657,7 +657,8 @@ module Userplex
657
657
  def decode_content(headers, stream:, suppress_error: false)
658
658
  case (content_type = headers["content-type"])
659
659
  in Userplex::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 Userplex
667
668
  in Userplex::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 Userplex
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: userplex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Userplex
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