Skip to content

Commit b886469

Browse files
release: 0.1.0-alpha.22 (#153)
* chore(internal): version bump * chore(internal): allow streams to also be unwrapped on a per-row basis * release: 0.1.0-alpha.22 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 835b31b commit b886469

File tree

6 files changed

+23
-6
lines changed

6 files changed

+23
-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-
".": "0.1.0-alpha.21"
2+
".": "0.1.0-alpha.22"
33
}

CHANGELOG.md

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

3+
## 0.1.0-alpha.22 (2025-06-30)
4+
5+
Full Changelog: [v0.1.0-alpha.21...v0.1.0-alpha.22](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.21...v0.1.0-alpha.22)
6+
7+
### Chores
8+
9+
* **internal:** allow streams to also be unwrapped on a per-row basis ([4146224](https://github.com/Finch-API/finch-api-ruby/commit/41462243c425627d1bcd8473c3fd7bea38edb3cd))
10+
* **internal:** version bump ([89516f1](https://github.com/Finch-API/finch-api-ruby/commit/89516f1e431dc0a56f324fd3c72b1c2e4c240d05))
11+
312
## 0.1.0-alpha.21 (2025-06-27)
413

514
Full Changelog: [v0.1.0-alpha.20...v0.1.0-alpha.21](https://github.com/Finch-API/finch-api-ruby/compare/v0.1.0-alpha.20...v0.1.0-alpha.21)

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-
finch-api (0.1.0.pre.alpha.20)
14+
finch-api (0.1.0.pre.alpha.21)
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 "finch-api", "~> 0.1.0.pre.alpha.21"
20+
gem "finch-api", "~> 0.1.0.pre.alpha.22"
2121
```
2222

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

lib/finch_api/internal/transport/base_client.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def request(req)
471471
self.class.validate!(req)
472472
model = req.fetch(:model) { FinchAPI::Internal::Type::Unknown }
473473
opts = req[:options].to_h
474+
unwrap = req[:unwrap]
474475
FinchAPI::RequestOptions.validate!(opts)
475476
request = build_request(req.except(:options), opts)
476477
url = request.fetch(:url)
@@ -487,11 +488,18 @@ def request(req)
487488
decoded = FinchAPI::Internal::Util.decode_content(response, stream: stream)
488489
case req
489490
in {stream: Class => st}
490-
st.new(model: model, url: url, status: status, response: response, stream: decoded)
491+
st.new(
492+
model: model,
493+
url: url,
494+
status: status,
495+
response: response,
496+
unwrap: unwrap,
497+
stream: decoded
498+
)
491499
in {page: Class => page}
492500
page.new(client: self, req: req, headers: response, page_data: decoded)
493501
else
494-
unwrapped = FinchAPI::Internal::Util.dig(decoded, req[:unwrap])
502+
unwrapped = FinchAPI::Internal::Util.dig(decoded, unwrap)
495503
FinchAPI::Internal::Type::Converter.coerce(model, unwrapped)
496504
end
497505
end

lib/finch_api/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 FinchAPI
4-
VERSION = "0.1.0.pre.alpha.21"
4+
VERSION = "0.1.0.pre.alpha.22"
55
end

0 commit comments

Comments
 (0)