From 2036ed2ebe2e9d4c77001d7523d7cde800c76ac8 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 8 Dec 2025 07:28:17 -0800 Subject: [PATCH 1/2] Update guard from Ruby 3.5 -> 4 Ruby 4.0.0-preview2 was released, so the extra defined? checks can be removed as well. --- lib/set.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/set.rb b/lib/set.rb index 295750f..ad04b85 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -1,11 +1,6 @@ # frozen_string_literal: true -if RUBY_VERSION >= '3.5' - if defined?(Set) && defined?(Set.[]) && Set.method(:[]).source_location.nil? - # Remove defined? ... conditional after Ruby 3.5.0-preview2 - return - end -end +return if RUBY_VERSION >= '4' # :markup: markdown # From 87b9315be5f544e28e51723a5d02b2822ebe613d Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 8 Dec 2025 07:32:49 -0800 Subject: [PATCH 2/2] Hard code ruby versions to test on Not sure if there is a better way to drop testing on ruby-head. --- .github/workflows/test.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e55565..77b640e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,18 +3,11 @@ name: test on: [push, pull_request] jobs: - ruby-versions: - uses: ruby/actions/.github/workflows/ruby_versions.yml@master - with: - engine: cruby - min_version: 3.0 - build: - needs: ruby-versions name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: - ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + ruby: ["3.0", 3.1, 3.2, 3.3, 3.4] os: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: