userplex 0.5.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: 7ee0aca7256c78b7a28f7c4412e04b9e6b85b348c8f3a8daf339542a1af438e0
4
- data.tar.gz: 0be918b8e525d4a469f7a63a9e65d25b099a4c9e2bdfaeba0cb6d1ab655d6d24
3
+ metadata.gz: bff32ef0e64d770c22f38d8398326d02f8f26ef9a4fb32ee194ded3c69a6d0cf
4
+ data.tar.gz: d49b49155d49c5866b416248060a1eb467a21a9664d90cf872465045ac7f3b4f
5
5
  SHA512:
6
- metadata.gz: c57bb3276dd125585396354370449d33cd4b9197823e8a2ff767fc44d22ce077385e413dbc13f404f9045fb29fe2da8b6113426e7de504f2528e71c55604dd3d
7
- data.tar.gz: 5e8bf1a3a79a56f6cc4cf93d15e401857d2a5a889f4b8a6b7a405848cfe4fd92ef1ccfde685eef6934817ebbf094e8f68943111fc6253bd9de8ba9b027225729
6
+ metadata.gz: 85b18927e17088fe578a2f48d37074163dd045f82e4c5d1f4e679cdbac0d671a49b469bb40161b7c641e50caa4f7c25ea18b1edbabc76697e294966c702b84f7
7
+ data.tar.gz: 80c8b12d6fe80a78633ed422951305af347ddef3848321d23f5946fa526a8feee34d55abe8cd15dea697cfdfa649c39452570936548c7a396eb6108bfc6438ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1 (2025-12-17)
4
+
5
+ Full Changelog: [v0.6.0...v0.6.1](https://github.com/dqnamo/userplex-ruby/compare/v0.6.0...v0.6.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * calling `break` out of streams should be instantaneous ([f74edb2](https://github.com/dqnamo/userplex-ruby/commit/f74edb20ed15700ce068783537151d3f9350d3e3))
10
+
11
+ ## 0.6.0 (2025-12-13)
12
+
13
+ Full Changelog: [v0.5.0...v0.6.0](https://github.com/dqnamo/userplex-ruby/compare/v0.5.0...v0.6.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** manual updates ([3d15220](https://github.com/dqnamo/userplex-ruby/commit/3d1522099c36bcbaeebd49d5441d4f2deaf4fca6))
18
+
3
19
  ## 0.5.0 (2025-12-13)
4
20
 
5
21
  Full Changelog: [v0.4.0...v0.5.0](https://github.com/dqnamo/userplex-ruby/compare/v0.4.0...v0.5.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 "userplex", "~> 0.5.0"
18
+ gem "userplex", "~> 0.6.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -57,7 +57,7 @@ module Userplex
57
57
  initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
58
58
  max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY
59
59
  )
60
- base_url ||= "https://userplex.app"
60
+ base_url ||= "https://api.userplex.app"
61
61
 
62
62
  if api_key.nil?
63
63
  raise ArgumentError.new("api_key is required, and can be set via environ: \"USERPLEX_API_KEY\"")
@@ -153,17 +153,19 @@ module Userplex
153
153
  end
154
154
 
155
155
  self.class.calibrate_socket_timeout(conn, deadline)
156
- conn.request(req) do |rsp|
157
- y << [req, rsp]
158
- break if finished
159
-
160
- rsp.read_body do |bytes|
161
- y << bytes.force_encoding(Encoding::BINARY)
162
- break if finished
163
-
164
- self.class.calibrate_socket_timeout(conn, deadline)
156
+ ::Kernel.catch(:jump) do
157
+ conn.request(req) do |rsp|
158
+ y << [req, rsp]
159
+ ::Kernel.throw(:jump) if finished
160
+
161
+ rsp.read_body do |bytes|
162
+ y << bytes.force_encoding(Encoding::BINARY)
163
+ ::Kernel.throw(:jump) if finished
164
+
165
+ self.class.calibrate_socket_timeout(conn, deadline)
166
+ end
167
+ eof = true
165
168
  end
166
- eof = true
167
169
  end
168
170
  end
169
171
  ensure
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Userplex
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.1"
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.5.0
4
+ version: 0.6.1
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-13 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool