From 745f822e875e45287038ded4e75b39633d734650 Mon Sep 17 00:00:00 2001 From: Bastian Blank Date: Fri, 6 Feb 2026 07:35:53 +0100 Subject: [PATCH] Add partial Ruby 4.0 support --- .github/workflows/ci.yml | 4 ++++ safemode.gemspec | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45e2ac8..241acde 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,10 @@ jobs: - "2.7" - "3.0" - "3.1" + - "3.2" + - "3.3" + - "3.4" + - "4.0" steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 diff --git a/safemode.gemspec b/safemode.gemspec index 31a7116..57f51df 100644 --- a/safemode.gemspec +++ b/safemode.gemspec @@ -52,7 +52,7 @@ Gem::Specification.new do |s| "test/test_safemode_parser.rb" ] - s.required_ruby_version = ">= 2.7", "< 3.2" + s.required_ruby_version = ">= 2.7", "< 4.1" s.add_runtime_dependency "ruby2ruby", ">= 2.4.0" s.add_runtime_dependency "ruby_parser", ">= 3.10.1"