From f333529f7051661402a4341fa541d054bfb61dd7 Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Sun, 8 Sep 2024 12:30:23 +0300 Subject: [PATCH 1/2] Require MRI >= 2.7 --- .github/workflows/ci.yml | 8 +------- .rubocop.yml | 2 +- rubocop-thread_safety.gemspec | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de4ac23..693fdc3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,19 +23,13 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", ruby-head, jruby-9.2, jruby-9.3] + ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", ruby-head, jruby-9.3, jruby-9.4] rubocop_version: ["0.92", "1.20", "1.66"] exclude: - - ruby: 2.5 - rubocop_version: "1.66" - - ruby: 2.6 - rubocop_version: "1.66" - ruby: ruby-head rubocop_version: "0.92" - ruby: ruby-head rubocop_version: "1.20" - - ruby: jruby-9.2 - rubocop_version: "1.66" - ruby: jruby-9.3 rubocop_version: "1.66" diff --git a/.rubocop.yml b/.rubocop.yml index 51ec0be..cfbdb29 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,7 +5,7 @@ require: AllCops: DisplayCopNames: true - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.7 Lint/RaiseException: Enabled: true diff --git a/rubocop-thread_safety.gemspec b/rubocop-thread_safety.gemspec index a645dd4..3dc2572 100644 --- a/rubocop-thread_safety.gemspec +++ b/rubocop-thread_safety.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.5.0' + spec.required_ruby_version = '>= 2.7.0' spec.add_runtime_dependency 'rubocop', '>= 0.92.0' From c37ee6511cdf20f2e4f963fbc6eaf0d5a7526ea0 Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Sun, 8 Sep 2024 12:32:39 +0300 Subject: [PATCH 2/2] Drop JRuby 9.3 support --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 693fdc3..e112739 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,15 +23,13 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", ruby-head, jruby-9.3, jruby-9.4] + ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", ruby-head, jruby-9.4] rubocop_version: ["0.92", "1.20", "1.66"] exclude: - ruby: ruby-head rubocop_version: "0.92" - ruby: ruby-head rubocop_version: "1.20" - - ruby: jruby-9.3 - rubocop_version: "1.66" env: BUNDLE_GEMFILE: "gemfiles/rubocop_${{ matrix.rubocop_version }}.gemfile"