From bbbac9ede7ec74b3afdc7786fda4d1577c1cf4a8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 06:31:15 +0000 Subject: [PATCH 1/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 33679484..c36cce30 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 30 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-5f69b2b288261c7adfd9acb065dce897caf8782aff1687efe38ba52541ef7b96.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-dee931967ba2ef46e7c8172181c5e92a5555eb0e39ac972540c2c7f9afa5a4f3.yml openapi_spec_hash: b03acca245aef78353d3b7a6a4a62eb2 -config_hash: c28ddf5b7754155603d9fd1c5fcaeeff +config_hash: 90ead07431e6975682fbca7c92b7e14d From ef179100360a4cd91c4d028cd645e9a64163b504 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2026 06:31:52 +0000 Subject: [PATCH 2/4] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c36cce30..a3a2c778 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 30 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-dee931967ba2ef46e7c8172181c5e92a5555eb0e39ac972540c2c7f9afa5a4f3.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-49611a380a238e29ad714c2f6d66a35ada42e3931d2aad2839afd1f13b585de1.yml openapi_spec_hash: b03acca245aef78353d3b7a6a4a62eb2 -config_hash: 90ead07431e6975682fbca7c92b7e14d +config_hash: ff7ff57d4c7f9c3f7a4f9bae39aa00e3 From cda4fbdc4803761c42392d3d270645943de81560 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 02:14:56 +0000 Subject: [PATCH 3/4] fix(client): send content-type header for requests with an omitted optional body --- lib/onebusaway_sdk/internal/transport/base_client.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/onebusaway_sdk/internal/transport/base_client.rb b/lib/onebusaway_sdk/internal/transport/base_client.rb index 8b15a7b5..30d885e7 100644 --- a/lib/onebusaway_sdk/internal/transport/base_client.rb +++ b/lib/onebusaway_sdk/internal/transport/base_client.rb @@ -309,7 +309,10 @@ def initialize( OnebusawaySDK::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact) end - headers.delete("content-type") if body.nil? + # Generated methods always pass `req[:body]` for operations that define a + # request body, so only elide the content-type header when the operation + # has no body at all, not when an optional body param was omitted. + headers.delete("content-type") if body.nil? && !req.key?(:body) url = OnebusawaySDK::Internal::Util.join_parsed_uri( @base_url_components, From 71a64ff8c00ac81ad4d16e675068e2589daed67f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 02:15:26 +0000 Subject: [PATCH 4/4] release: 1.9.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/onebusaway_sdk/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c3c95522..2cd8f9bb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.9.0" + ".": "1.9.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e3e14e2..10379f97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.9.1 (2026-06-17) + +Full Changelog: [v1.9.0...v1.9.1](https://github.com/OneBusAway/ruby-sdk/compare/v1.9.0...v1.9.1) + +### Bug Fixes + +* **client:** send content-type header for requests with an omitted optional body ([cda4fbd](https://github.com/OneBusAway/ruby-sdk/commit/cda4fbdc4803761c42392d3d270645943de81560)) + ## 1.9.0 (2026-06-01) Full Changelog: [v1.8.0...v1.9.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.8.0...v1.9.0) diff --git a/Gemfile.lock b/Gemfile.lock index ecb70b6e..38cf25b3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - onebusaway-sdk (1.9.0) + onebusaway-sdk (1.9.1) cgi connection_pool diff --git a/README.md b/README.md index 8b71e240..58f6f4da 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "onebusaway-sdk", "~> 1.9.0" +gem "onebusaway-sdk", "~> 1.9.1" ``` diff --git a/lib/onebusaway_sdk/version.rb b/lib/onebusaway_sdk/version.rb index db9b34e5..e327c9ca 100644 --- a/lib/onebusaway_sdk/version.rb +++ b/lib/onebusaway_sdk/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module OnebusawaySDK - VERSION = "1.9.0" + VERSION = "1.9.1" end