From b3286f6ffc539989617b0a3b594d079ba5cae4b9 Mon Sep 17 00:00:00 2001 From: jmeridth Date: Mon, 18 Mar 2024 16:05:12 -0500 Subject: [PATCH] chore: drop support for ruby 2.7 - [x] update all files related to the new version minimum (3.0) Signed-off-by: jmeridth --- .github/workflows/test.yaml | 5 +++-- SECURITY.md | 4 ++-- handcuffs.gemspec | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5db1768..93eabdd 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,11 +10,12 @@ jobs: test: strategy: matrix: - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3'] + os: ['ubuntu-latest'] + ruby: ['3.0', '3.1', '3.2', '3.3'] postgres: ['16-bullseye', '15-bullseye', '14-bullseye', '13-bullseye', '12-bullseye'] name: Ruby ${{ matrix.ruby }} - PostgreSQL ${{ matrix.postgres }} # https://docs.github.com/en/actions/learn-github-actions/expressions#example - runs-on: ${{ matrix.ruby == '2.7' && 'ubuntu-20.04' || 'ubuntu-latest' }} + runs-on: ${{ matrix.os }} services: postgres: image: postgres:${{ matrix.postgres }} diff --git a/SECURITY.md b/SECURITY.md index a5d91a6..473e2c6 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,11 +6,11 @@ Ruby versions that are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | -| <=2.6 | :x: | -| 2.7 | :white_check_mark: | +| <=2.7 | :x: | | 3.0 | :white_check_mark: | | 3.1 | :white_check_mark: | | 3.2 | :white_check_mark: | +| 3.3 | :white_check_mark: | ## Reporting a Vulnerability diff --git a/handcuffs.gemspec b/handcuffs.gemspec index 3ed4f3c..f81a59c 100644 --- a/handcuffs.gemspec +++ b/handcuffs.gemspec @@ -13,6 +13,7 @@ Gem::Specification.new do |spec| spec.description = %q{Allows you to define a phase on Active Record migrations and provides rake tasks for running only migrations tagged with a certain phase} spec.homepage = "https://github.com/procore-oss/handcuffs/" spec.license = "MIT" + spec.required_ruby_version = Gem::Requirement.new('>= 3.0') # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or # delete this section to allow pushing this gem to any host.