Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/increase-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4
Expand All @@ -33,6 +34,7 @@ jobs:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/increase-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.5.2"
".": "1.5.3"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a027ea8bf72e85055306ceaf380c0311b8ed5e6e83962de0ccf48f62c85403fc.yml
openapi_spec_hash: 5a69ed697dee32af7deae0c6ebf27377
openapi_spec_hash: 4e35ead65a06ac0783945b2b213ce83c
config_hash: 97774f946585cecb19181a1817870d0b
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.5.3 (2025-06-30)

Full Changelog: [v1.5.2...v1.5.3](https://github.com/Increase/increase-ruby/compare/v1.5.2...v1.5.3)

### Chores

* **ci:** only run for pushes and fork pull requests ([3260c91](https://github.com/Increase/increase-ruby/commit/3260c917c1e4f2d3686f3487256c358699998f74))
* **internal:** allow streams to also be unwrapped on a per-row basis ([dacddf0](https://github.com/Increase/increase-ruby/commit/dacddf00f49e317641f0b4a855d32f00cf4b6aed))

## 1.5.2 (2025-06-27)

Full Changelog: [v1.5.1...v1.5.2](https://github.com/Increase/increase-ruby/compare/v1.5.1...v1.5.2)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
increase (1.5.2)
increase (1.5.3)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "increase", "~> 1.5.2"
gem "increase", "~> 1.5.3"
```

<!-- x-release-please-end -->
Expand Down
12 changes: 10 additions & 2 deletions lib/increase/internal/transport/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ def request(req)
self.class.validate!(req)
model = req.fetch(:model) { Increase::Internal::Type::Unknown }
opts = req[:options].to_h
unwrap = req[:unwrap]
Increase::RequestOptions.validate!(opts)
request = build_request(req.except(:options), opts)
url = request.fetch(:url)
Expand All @@ -487,11 +488,18 @@ def request(req)
decoded = Increase::Internal::Util.decode_content(response, stream: stream)
case req
in {stream: Class => st}
st.new(model: model, url: url, status: status, response: response, stream: decoded)
st.new(
model: model,
url: url,
status: status,
response: response,
unwrap: unwrap,
stream: decoded
)
in {page: Class => page}
page.new(client: self, req: req, headers: response, page_data: decoded)
else
unwrapped = Increase::Internal::Util.dig(decoded, req[:unwrap])
unwrapped = Increase::Internal::Util.dig(decoded, unwrap)
Increase::Internal::Type::Converter.coerce(model, unwrapped)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "1.5.2"
VERSION = "1.5.3"
end