Skip to content

Commit a41fbd6

Browse files
Merge pull request #591 from OneBusAway/release-please--branches--main--changes--next
release: 1.2.5
2 parents c4d2392 + 91aaa08 commit a41fbd6

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
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.4"
2+
".": "1.2.5"
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.5 (2025-12-19)
4+
5+
Full Changelog: [v1.2.4...v1.2.5](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.4...v1.2.5)
6+
7+
### Bug Fixes
8+
9+
* issue where json.parse errors when receiving HTTP 204 with nobody ([862df13](https://github.com/OneBusAway/ruby-sdk/commit/862df13cf5d8d75baa25299a1ca160f4e3c436a5))
10+
311
## 1.2.4 (2025-12-17)
412

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

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.4)
14+
onebusaway-sdk (1.2.5)
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.4"
20+
gem "onebusaway-sdk", "~> 1.2.5"
2121
```
2222

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

lib/onebusaway_sdk/internal/util.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,8 @@ def force_charset!(content_type, text:)
657657
def decode_content(headers, stream:, suppress_error: false)
658658
case (content_type = headers["content-type"])
659659
in OnebusawaySDK::Internal::Util::JSON_CONTENT
660-
json = stream.to_a.join
660+
return nil if (json = stream.to_a.join).empty?
661+
661662
begin
662663
JSON.parse(json, symbolize_names: true)
663664
rescue JSON::ParserError => e
@@ -667,7 +668,11 @@ def decode_content(headers, stream:, suppress_error: false)
667668
in OnebusawaySDK::Internal::Util::JSONL_CONTENT
668669
lines = decode_lines(stream)
669670
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
671676
end
672677
in %r{^text/event-stream}
673678
lines = decode_lines(stream)

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.4"
4+
VERSION = "1.2.5"
55
end

0 commit comments

Comments
 (0)