From 1b88387533f77b2e8e3f3096e39d92c4eb5b56b9 Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Sun, 9 Mar 2025 11:14:18 -0700 Subject: [PATCH] restore ruby 3.1 which is needed for jruby --- .github/workflows/test.yml | 4 ++-- .rubocop.yml | 2 +- parallel_tests.gemspec | 2 +- spec/rails_spec.rb | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 153beafd..0991d909 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,11 +12,11 @@ jobs: strategy: fail-fast: false # run all tests so we see which gem/ruby combinations break matrix: - ruby: ['3.2', '3.3', '3.4', head, jruby-head] + ruby: ['3.1', '3.2', '3.3', '3.4', head, jruby-head] os: [ubuntu-latest, windows-latest] task: [spec] include: - - ruby: '3.2' # lowest supported version, same as gemspec and .rubocop.yml + - ruby: '3.1' # lowest supported version, same as gemspec and .rubocop.yml os: ubuntu-latest task: rubocop steps: diff --git a/.rubocop.yml b/.rubocop.yml index a6bc51bd..6317a4bd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,6 +1,6 @@ AllCops: NewCops: enable - TargetRubyVersion: 3.2 + TargetRubyVersion: 3.1 SuggestExtensions: false Exclude: - '**/vendor/bundle/**/*' diff --git a/parallel_tests.gemspec b/parallel_tests.gemspec index c7afc644..fb4e0dfb 100644 --- a/parallel_tests.gemspec +++ b/parallel_tests.gemspec @@ -20,5 +20,5 @@ Gem::Specification.new name, ParallelTests::VERSION do |s| s.license = "MIT" s.executables = ["parallel_spinach", "parallel_cucumber", "parallel_rspec", "parallel_test"] s.add_dependency "parallel" - s.required_ruby_version = '>= 3.2.0' + s.required_ruby_version = '>= 3.1.0' end diff --git a/spec/rails_spec.rb b/spec/rails_spec.rb index f8ddfba7..e8c84eaa 100644 --- a/spec/rails_spec.rb +++ b/spec/rails_spec.rb @@ -15,6 +15,7 @@ def run(command, options = {}) rails = File.basename(folder) it "can create and run #{rails}" do + skip 'ruby 3.1 is not supported by rails 72' if RUBY_VERSION < "3.2.0" && rails == "rails72" skip 'rails fixtures are not set up for java' if RUBY_PLATFORM == "java" Dir.chdir("spec/fixtures/#{rails}") do