From ebbe992e7a4eb984b9b5fd9d90a33f8d048a4415 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Mon, 10 Oct 2022 11:17:13 +0200 Subject: [PATCH] Reduce version compatibility to Ruby < 3 Ruby 3 has changed keyword argument handling and safemode doesn't deal with that correctly. That means it's broken in various cases. --- .github/workflows/ci.yml | 2 -- safemode.gemspec | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45e2ac8..253af17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,6 @@ jobs: matrix: ruby: - "2.7" - - "3.0" - - "3.1" steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 diff --git a/safemode.gemspec b/safemode.gemspec index 1b868f7..650652c 100644 --- a/safemode.gemspec +++ b/safemode.gemspec @@ -53,7 +53,7 @@ Gem::Specification.new do |s| "test/test_safemode_parser.rb" ] - s.required_ruby_version = ">= 2.7", "< 4" + s.required_ruby_version = ">= 2.7", "< 3" s.add_runtime_dependency "ruby2ruby", ">= 2.4.0" s.add_runtime_dependency "ruby_parser", ">= 3.10.1"