From 3260c917c1e4f2d3686f3487256c358699998f74 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Jun 2025 22:38:30 +0000 Subject: [PATCH 1/4] chore(ci): only run for pushes and fork pull requests --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a8507963..cfdad185d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 From 3ba4c594dcc329f221acff4a1fb13f682eb6b37c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Jun 2025 23:50:08 +0000 Subject: [PATCH 2/4] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 246713324..107106630 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 From dacddf00f49e317641f0b4a855d32f00cf4b6aed Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 16:14:13 +0000 Subject: [PATCH 3/4] chore(internal): allow streams to also be unwrapped on a per-row basis --- lib/increase/internal/transport/base_client.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/increase/internal/transport/base_client.rb b/lib/increase/internal/transport/base_client.rb index c21e25eb6..dfb167f77 100644 --- a/lib/increase/internal/transport/base_client.rb +++ b/lib/increase/internal/transport/base_client.rb @@ -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) @@ -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 From fb450df3522e13568a4c87e1655be493f95d1229 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 16:14:36 +0000 Subject: [PATCH 4/4] release: 1.5.3 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4130df050..54c714b1d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.5.2" + ".": "1.5.3" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a5311509..41b0715a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index c026e619a..f585a8d35 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.5.2) + increase (1.5.3) connection_pool GEM diff --git a/README.md b/README.md index 0e3630587..5d43cb27a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.5.2" +gem "increase", "~> 1.5.3" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index b95fb8693..d30ee6ab3 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.5.2" + VERSION = "1.5.3" end