From 839972f298997e2f8c25f35735b9b7be7e32349a Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2026 16:57:03 +0000 Subject: [PATCH 1/3] fix: restore Ruby >= 3.1 support by widening openfeature-sdk dependency The openfeature-sdk ~> 0.6.0 dependency requires Ruby >= 3.4, which broke compatibility with Ruby 3.1-3.3. Widen the dependency to ~> 0.4 so Bundler can resolve to openfeature-sdk 0.5.x on Ruby 3.1-3.3 and 0.6.x on Ruby 3.4+. The provider API surface (ResolutionDetails, Reason, ErrorCode, ProviderMetadata) is unchanged across these versions. Also adds Ruby 3.1 back to the CI matrix. Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> --- .github/workflows/ci.yml | 1 + launchdarkly-openfeature-server-sdk.gemspec | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d7a5aa..988991e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: fail-fast: false matrix: ruby-version: + - '3.1' - '3.4' - jruby-10.0 diff --git a/launchdarkly-openfeature-server-sdk.gemspec b/launchdarkly-openfeature-server-sdk.gemspec index d329cf8..8672048 100644 --- a/launchdarkly-openfeature-server-sdk.gemspec +++ b/launchdarkly-openfeature-server-sdk.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.summary = "LaunchDarkly OpenFeature Server SDK" spec.description = "A LaunchDarkly provider for use with the OpenFeature SDK" spec.homepage = "https://github.com/launchdarkly/openfeature-ruby-server" - spec.required_ruby_version = ">= 3.4" + spec.required_ruby_version = ">= 3.1" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/launchdarkly/openfeature-ruby-server" @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_runtime_dependency "launchdarkly-server-sdk", "~> 8.4" - spec.add_runtime_dependency "openfeature-sdk", "~> 0.6.0" + spec.add_runtime_dependency "openfeature-sdk", "~> 0.4" # For more information and examples about making a new gem, check out our # guide at: https://bundler.io/guides/creating_gem.html From 7422c76bb0548d131ba31ab287bfc58711decc63 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2026 18:04:09 +0000 Subject: [PATCH 2/3] docs: update README to reflect Ruby 3.4+ requirement The openfeature-sdk ~> 0.6.0 dependency requires Ruby >= 3.4. Update the README to match the gemspec requirement. Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> --- .github/workflows/ci.yml | 1 - README.md | 2 +- launchdarkly-openfeature-server-sdk.gemspec | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 988991e..3d7a5aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,6 @@ jobs: fail-fast: false matrix: ruby-version: - - '3.1' - '3.4' - jruby-10.0 diff --git a/README.md b/README.md index 47ddf5c..7671ff8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This provider is designed primarily for use in multi-user systems such as web se ## Supported Ruby versions -This version of the LaunchDarkly provider works with Ruby 3.1 and above. +This version of the LaunchDarkly provider works with Ruby 3.4 and above. ## Getting started diff --git a/launchdarkly-openfeature-server-sdk.gemspec b/launchdarkly-openfeature-server-sdk.gemspec index 8672048..d329cf8 100644 --- a/launchdarkly-openfeature-server-sdk.gemspec +++ b/launchdarkly-openfeature-server-sdk.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.summary = "LaunchDarkly OpenFeature Server SDK" spec.description = "A LaunchDarkly provider for use with the OpenFeature SDK" spec.homepage = "https://github.com/launchdarkly/openfeature-ruby-server" - spec.required_ruby_version = ">= 3.1" + spec.required_ruby_version = ">= 3.4" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/launchdarkly/openfeature-ruby-server" @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_runtime_dependency "launchdarkly-server-sdk", "~> 8.4" - spec.add_runtime_dependency "openfeature-sdk", "~> 0.4" + spec.add_runtime_dependency "openfeature-sdk", "~> 0.6.0" # For more information and examples about making a new gem, check out our # guide at: https://bundler.io/guides/creating_gem.html From 53daf5eede8d01f02f9191fc98368cb8f50a7c9e Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2026 18:12:38 +0000 Subject: [PATCH 3/3] ci: update Ruby version from 3.1 to 3.4 in release and publish workflows The release-please, manual-publish, and manual-publish-docs workflows still referenced Ruby 3.1, which is incompatible with openfeature-sdk ~> 0.6.0 (requires Ruby >= 3.4). Co-Authored-By: rlamb@launchdarkly.com <4955475+kinyoklion@users.noreply.github.com> --- .github/workflows/manual-publish-docs.yml | 2 +- .github/workflows/manual-publish.yml | 2 +- .github/workflows/release-please.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual-publish-docs.yml b/.github/workflows/manual-publish-docs.yml index 6b1c587..5d20066 100644 --- a/.github/workflows/manual-publish-docs.yml +++ b/.github/workflows/manual-publish-docs.yml @@ -13,7 +13,7 @@ jobs: - uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1.299.0 with: - ruby-version: 3.1 + ruby-version: 3.4 - uses: ./.github/actions/build-docs diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index 76a610d..193a0f4 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -28,7 +28,7 @@ jobs: name: Build and Test uses: ./.github/actions/ci with: - ruby-version: 3.1 + ruby-version: 3.4 - id: publish name: Publish Package diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 79e45e6..692c14d 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -32,7 +32,7 @@ jobs: - uses: ./.github/actions/ci if: ${{ steps.release.outputs.releases_created == 'true' }} with: - ruby-version: 3.1 + ruby-version: 3.4 - uses: ./.github/actions/build-docs if: ${{ steps.release.outputs.releases_created == 'true' }}