Skip to content

Commit 5fe2566

Browse files
authored
Merge pull request #277 from orbcorp/release-please--branches--main--changes--next
release: 1.2.2
2 parents fe05686 + 1af0c45 commit 5fe2566

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/orb-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/orb-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.2.1"
2+
".": "1.2.2"
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.2.2 (2025-06-30)
4+
5+
Full Changelog: [v1.2.1...v1.2.2](https://github.com/orbcorp/orb-ruby/compare/v1.2.1...v1.2.2)
6+
7+
### Chores
8+
9+
* **ci:** only run for pushes and fork pull requests ([c6f7b50](https://github.com/orbcorp/orb-ruby/commit/c6f7b5036f4a214647af2fa2854d2a6eaf52c128))
10+
* **internal:** allow streams to also be unwrapped on a per-row basis ([d713b5f](https://github.com/orbcorp/orb-ruby/commit/d713b5f3442bb9842f109ae0cb76e70fdc52506c))
11+
* **internal:** version bump ([0b13270](https://github.com/orbcorp/orb-ruby/commit/0b132708d6e1294f44e026b249846721e08de2af))
12+
313
## 1.2.1 (2025-06-26)
414

515
Full Changelog: [v1.2.0...v1.2.1](https://github.com/orbcorp/orb-ruby/compare/v1.2.0...v1.2.1)

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-
orb-billing (1.2.0)
14+
orb-billing (1.2.1)
1515
connection_pool
1616

1717
GEM

README.md

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

1717
```ruby
18-
gem "orb-billing", "~> 1.2.1"
18+
gem "orb-billing", "~> 1.2.2"
1919
```
2020

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

lib/orb/internal/transport/base_client.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ def request(req)
468468
self.class.validate!(req)
469469
model = req.fetch(:model) { Orb::Internal::Type::Unknown }
470470
opts = req[:options].to_h
471+
unwrap = req[:unwrap]
471472
Orb::RequestOptions.validate!(opts)
472473
request = build_request(req.except(:options), opts)
473474
url = request.fetch(:url)
@@ -484,11 +485,18 @@ def request(req)
484485
decoded = Orb::Internal::Util.decode_content(response, stream: stream)
485486
case req
486487
in {stream: Class => st}
487-
st.new(model: model, url: url, status: status, response: response, stream: decoded)
488+
st.new(
489+
model: model,
490+
url: url,
491+
status: status,
492+
response: response,
493+
unwrap: unwrap,
494+
stream: decoded
495+
)
488496
in {page: Class => page}
489497
page.new(client: self, req: req, headers: response, page_data: decoded)
490498
else
491-
unwrapped = Orb::Internal::Util.dig(decoded, req[:unwrap])
499+
unwrapped = Orb::Internal::Util.dig(decoded, unwrap)
492500
Orb::Internal::Type::Converter.coerce(model, unwrapped)
493501
end
494502
end

lib/orb/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 Orb
4-
VERSION = "1.2.1"
4+
VERSION = "1.2.2"
55
end

0 commit comments

Comments
 (0)