onebusaway-sdk 1.2.3 → 1.2.4

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: 2073d2afe32897d3a1d958047484525ff02f808397613ad8dfab5ba476e15875
4
- data.tar.gz: 15045b31563d1a504d4b7ddabea99fd114d3c622320e10172bc1c2c41c22df75
3
+ metadata.gz: 541e52034b258d21478940c296cb1e3d412139fef84cadb12eac52eed4dc1235
4
+ data.tar.gz: d6eb235b3c2bf4b100e31294edfe925b0f1abbb1944198dd93bb780a7285ad99
5
5
  SHA512:
6
- metadata.gz: 98c03b359c0313bb1735ee30005e1718be18efe4d3026dcab0ef55c52b4582fb6a695be36dff1731ee64a496dd2ebcacc418ad2aaf6037b970889eb330473ddc
7
- data.tar.gz: 11fa9a29ec6899caac670aa2d317e0332bcd2b4d1711fcc7b5d0d159b5514223cc258017b517923b6838995a2db83394686605a7e7183f2e4a589865f9ddb250
6
+ metadata.gz: 2e514e8165542d5a34da8f5d54d9a5f4b3b330a9b63adc778a4cd41091c6f95b1d4c2dbd683a4250776eafabb6388b55488750a6701e189229152b9edc135d97
7
+ data.tar.gz: ea2fbc35308e81089425b876e895e48f2d98a1bee786d1ae3ce2894de1c308f30a8d2c1843a646473c3165795c620c71a0ae7c7d6acf1c4be72ac20e0e5086d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.4 (2025-12-17)
4
+
5
+ Full Changelog: [v1.2.3...v1.2.4](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.3...v1.2.4)
6
+
7
+ ### Bug Fixes
8
+
9
+ * calling `break` out of streams should be instantaneous ([649a4ca](https://github.com/OneBusAway/ruby-sdk/commit/649a4ca8c13aa15c28e5e41a9b1ae33cf63562b6))
10
+
3
11
  ## 1.2.3 (2025-11-21)
4
12
 
5
13
  Full Changelog: [v1.2.2...v1.2.3](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.2...v1.2.3)
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 "onebusaway-sdk", "~> 1.2.3"
20
+ gem "onebusaway-sdk", "~> 1.2.4"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -153,17 +153,19 @@ module OnebusawaySDK
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 OnebusawaySDK
4
- VERSION = "1.2.3"
4
+ VERSION = "1.2.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebusaway-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onebusaway SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-21 00:00:00.000000000 Z
11
+ date: 2025-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool