Skip to content

Commit 6d996bb

Browse files
Merge pull request #565 from OneBusAway/release-please--branches--main--changes--next
release: 1.0.10
2 parents c99cdb6 + 2cdfce6 commit 6d996bb

File tree

7 files changed

+26
-6
lines changed

7 files changed

+26
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
timeout-minutes: 10
1818
name: lint
1919
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2021

2122
steps:
2223
- uses: actions/checkout@v4
@@ -33,6 +34,7 @@ jobs:
3334
timeout-minutes: 10
3435
name: test
3536
runs-on: ${{ github.repository == 'stainless-sdks/open-transit-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
37+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
3638
steps:
3739
- uses: actions/checkout@v4
3840
- name: Set up Ruby

.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.0.9"
2+
".": "1.0.10"
33
}

CHANGELOG.md

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

3+
## 1.0.10 (2025-07-01)
4+
5+
Full Changelog: [v1.0.9...v1.0.10](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.9...v1.0.10)
6+
7+
### Chores
8+
9+
* **ci:** only run for pushes and fork pull requests ([64a0591](https://github.com/OneBusAway/ruby-sdk/commit/64a0591f91cc98b55b583d81727ae067c0c1d1c2))
10+
* **internal:** allow streams to also be unwrapped on a per-row basis ([2710480](https://github.com/OneBusAway/ruby-sdk/commit/27104809a931e4c3e99cb3cc5949c531816e5b87))
11+
* **internal:** version bump ([a8f4163](https://github.com/OneBusAway/ruby-sdk/commit/a8f416393445b3b824740a5159b5c35aa455048e))
12+
313
## 1.0.9 (2025-06-27)
414

515
Full Changelog: [v1.0.8...v1.0.9](https://github.com/OneBusAway/ruby-sdk/compare/v1.0.8...v1.0.9)

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.0.8)
14+
onebusaway-sdk (1.0.9)
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.0.9"
20+
gem "onebusaway-sdk", "~> 1.0.10"
2121
```
2222

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

lib/onebusaway_sdk/internal/transport/base_client.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ def request(req)
481481
self.class.validate!(req)
482482
model = req.fetch(:model) { OnebusawaySDK::Internal::Type::Unknown }
483483
opts = req[:options].to_h
484+
unwrap = req[:unwrap]
484485
OnebusawaySDK::RequestOptions.validate!(opts)
485486
request = build_request(req.except(:options), opts)
486487
url = request.fetch(:url)
@@ -497,11 +498,18 @@ def request(req)
497498
decoded = OnebusawaySDK::Internal::Util.decode_content(response, stream: stream)
498499
case req
499500
in {stream: Class => st}
500-
st.new(model: model, url: url, status: status, response: response, stream: decoded)
501+
st.new(
502+
model: model,
503+
url: url,
504+
status: status,
505+
response: response,
506+
unwrap: unwrap,
507+
stream: decoded
508+
)
501509
in {page: Class => page}
502510
page.new(client: self, req: req, headers: response, page_data: decoded)
503511
else
504-
unwrapped = OnebusawaySDK::Internal::Util.dig(decoded, req[:unwrap])
512+
unwrapped = OnebusawaySDK::Internal::Util.dig(decoded, unwrap)
505513
OnebusawaySDK::Internal::Type::Converter.coerce(model, unwrapped)
506514
end
507515
end

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

0 commit comments

Comments
 (0)