Skip to content

Commit c4d2392

Browse files
Merge pull request #590 from OneBusAway/release-please--branches--main--changes--next
release: 1.2.4
2 parents c98b901 + ad5e360 commit c4d2392

File tree

6 files changed

+24
-14
lines changed

6 files changed

+24
-14
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.2.3"
2+
".": "1.2.4"
33
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

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+
311
## 1.2.3 (2025-11-21)
412

513
Full Changelog: [v1.2.2...v1.2.3](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.2...v1.2.3)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
onebusaway-sdk (1.2.3)
14+
onebusaway-sdk (1.2.4)
1515
connection_pool
1616

1717
GEM

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "onebusaway-sdk", "~> 1.2.3"
20+
gem "onebusaway-sdk", "~> 1.2.4"
2121
```
2222

2323
<!-- x-release-please-end -->

lib/onebusaway_sdk/internal/transport/pooled_net_requester.rb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,19 @@ def execute(request)
153153
end
154154

155155
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
165168
end
166-
eof = true
167169
end
168170
end
169171
ensure

lib/onebusaway_sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module OnebusawaySDK
4-
VERSION = "1.2.3"
4+
VERSION = "1.2.4"
55
end

0 commit comments

Comments
 (0)