From 0861769d4f2bb8c7ba7834f93c32bbd860a15f86 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 13:26:08 +0000 Subject: [PATCH 1/6] chore(internal): tweak CI branches --- .github/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81cea37..2af27aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,14 @@ name: CI on: push: - branches-ignore: - - 'generated' - - 'codegen/**' - - 'integrated/**' - - 'stl-preview-head/**' - - 'stl-preview-base/**' + branches: + - '**' + - '!integrated/**' + - '!stl-preview-head/**' + - '!stl-preview-base/**' + - '!generated' + - '!codegen/**' + - 'codegen/stl/**' pull_request: branches-ignore: - 'stl-preview-head/**' From 434aeac20ad4f77c9dbaafd6bcfffa05d43a4219 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 16:30:18 +0000 Subject: [PATCH 2/6] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 288e44b..3a6a221 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 27 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-ad93e48ef2ee1066fe81553c7ac1f3be24037c6e1976778acb8b13baedbe5821.yml -openapi_spec_hash: 06e01ccb380f068bff3a571b58089a94 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-815dce43cbb14e41f094bdbca84682c0b379dcfd02b7e8800f9d8b45c00a76fd.yml +openapi_spec_hash: ab7d073e793fe5a556e64d39963aea93 config_hash: 6b825a08e19dfb747c5dc1766502b789 From af42c22c331deba0b668e4c79835aeeec6107555 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 24 Mar 2026 05:06:02 +0000 Subject: [PATCH 3/6] chore(internal): update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3d26cee..fc9eb28 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .idea/ .ignore .prism.log +.stdy.log .ruby-lsp/ .yardoc/ bin/tapioca From 083b65b9c992229d3fe0b881c79e0fc73b0a36ec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 03:27:38 +0000 Subject: [PATCH 4/6] chore(ci): skip lint on metadata-only changes Note that we still want to run tests, as these depend on the metadata. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2af27aa..234d0c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,8 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/moderation-api-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: |- github.repository == 'stainless-sdks/moderation-api-ruby' && - (github.event_name == 'push' || github.event.pull_request.head.repo.fork) + (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && + (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - uses: actions/checkout@v6 - name: Set up Ruby From f710332a0f8927edd71caa91c855a1cca2710a8d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 06:36:58 +0000 Subject: [PATCH 5/6] fix(internal): correct multipart form field name encoding --- lib/moderation_api/internal/util.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/moderation_api/internal/util.rb b/lib/moderation_api/internal/util.rb index 12ceba1..dee3edd 100644 --- a/lib/moderation_api/internal/util.rb +++ b/lib/moderation_api/internal/util.rb @@ -571,8 +571,7 @@ def encode_query_params(query) y << "Content-Disposition: form-data" unless key.nil? - name = ERB::Util.url_encode(key.to_s) - y << "; name=\"#{name}\"" + y << "; name=\"#{key}\"" end case val From 1d96181843d3cf80b3e77072619e74b0823d876c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 06:37:14 +0000 Subject: [PATCH 6/6] release: 2.10.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 15 +++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/moderation_api/version.rb | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 21f6056..d362570 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.10.0" + ".": "2.10.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 85f739f..ccbb7da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 2.10.1 (2026-03-27) + +Full Changelog: [v2.10.0...v2.10.1](https://github.com/moderation-api/sdk-ruby/compare/v2.10.0...v2.10.1) + +### Bug Fixes + +* **internal:** correct multipart form field name encoding ([f710332](https://github.com/moderation-api/sdk-ruby/commit/f710332a0f8927edd71caa91c855a1cca2710a8d)) + + +### Chores + +* **ci:** skip lint on metadata-only changes ([083b65b](https://github.com/moderation-api/sdk-ruby/commit/083b65b9c992229d3fe0b881c79e0fc73b0a36ec)) +* **internal:** tweak CI branches ([0861769](https://github.com/moderation-api/sdk-ruby/commit/0861769d4f2bb8c7ba7834f93c32bbd860a15f86)) +* **internal:** update gitignore ([af42c22](https://github.com/moderation-api/sdk-ruby/commit/af42c22c331deba0b668e4c79835aeeec6107555)) + ## 2.10.0 (2026-03-16) Full Changelog: [v2.9.0...v2.10.0](https://github.com/moderation-api/sdk-ruby/compare/v2.9.0...v2.10.0) diff --git a/Gemfile.lock b/Gemfile.lock index dba5b97..460fe66 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - moderation_api (2.10.0) + moderation_api (2.10.1) cgi connection_pool diff --git a/README.md b/README.md index 2fb929e..6982c00 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 "moderation_api", "~> 2.10.0" +gem "moderation_api", "~> 2.10.1" ``` diff --git a/lib/moderation_api/version.rb b/lib/moderation_api/version.rb index 91b4caa..19aff7f 100644 --- a/lib/moderation_api/version.rb +++ b/lib/moderation_api/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ModerationAPI - VERSION = "2.10.0" + VERSION = "2.10.1" end