From 3696346159d079fd69a832e1ca4410bbf46ed50c Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 2 Jan 2026 21:42:46 +0100 Subject: [PATCH 1/3] Allow Ruby 4.0 --- solidus_auth_devise.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solidus_auth_devise.gemspec b/solidus_auth_devise.gemspec index 09c8a717..926c7ab9 100644 --- a/solidus_auth_devise.gemspec +++ b/solidus_auth_devise.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |spec| spec.metadata["source_code_uri"] = "https://github.com/solidusio/solidus_auth_devise" spec.metadata["changelog_uri"] = "https://github.com/solidusio/solidus_auth_devise/releases" - spec.required_ruby_version = Gem::Requirement.new(">= 2.5", "< 4") + spec.required_ruby_version = Gem::Requirement.new(">= 2.5", "< 5") # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. From f4816a1c47b810daccbf3f0ab38288c8b8c768c3 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 2 Jan 2026 21:42:57 +0100 Subject: [PATCH 2/3] CI: Test latest Ruby versions --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 61d087d6..0c96e40c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,3 +18,5 @@ permissions: jobs: Test: uses: solidusio/test-solidus-extension/.github/workflows/test.yml@v1 + with: + ruby_versions: "['3.4', '4.0']" From 7c66bec432a9b64dbaadb05a9e89c835feb3e4b0 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Sat, 3 Jan 2026 00:25:51 +0100 Subject: [PATCH 3/3] chore: Add benchmark gem locally Not part of Ruby 4.0 anymore. Necessary for github_changelog_generator --- Gemfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index b6ae6ad6..3bc89949 100644 --- a/Gemfile +++ b/Gemfile @@ -54,3 +54,8 @@ send(:eval_gemfile, "Gemfile-local") if File.exist? "Gemfile-local" # Pin state_machines gem "state_machines", "= 0.6.0" + +if RUBY_VERSION >= "4.0" + # Necessary for github_changelog_generator + gem "benchmark", "~> 0.5.0" +end