From b595553a94651f4d950b6ca0f89613b8f179948f Mon Sep 17 00:00:00 2001 From: Mike Griffin Date: Mon, 9 Jun 2025 10:38:22 +0100 Subject: [PATCH 1/3] Bump Ruby and Rails versions that tests run against Ruby 3.0 and 3.1 are EOL. 3.2 is still receiving security updates. https://www.ruby-lang.org/en/downloads/branches/ Rails have a new maintenance policy (https://rubyonrails.org/maintenance) and 7.0 went out of support in April --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a53594..741fbfd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,8 +24,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.0', '3.1', '3.2', '3.3'] - rails-version: ['6.1.7', '7.0.8', '7.1.3'] + ruby-version: ['3.2', '3.3', '3.4'] + rails-version: ['7.1.5', '7.2.2', '8.0.2'] env: RAILS_VERSION: ${{ matrix.rails-version }} steps: From 3d31cd07a50a6bdf943da7531a36eeb669ae1e2f Mon Sep 17 00:00:00 2001 From: Mike Griffin Date: Tue, 10 Jun 2025 10:18:51 +0100 Subject: [PATCH 2/3] Specify a minimum Ruby version and bump min Rails version --- github-ds.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/github-ds.gemspec b/github-ds.gemspec index 8d50436..848d5f7 100644 --- a/github-ds.gemspec +++ b/github-ds.gemspec @@ -14,6 +14,8 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/github/github-ds" spec.license = "MIT" + spec.required_ruby_version = '>= 3.2' + # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' # to allow pushing to a single host or delete this section to allow pushing to any host. if spec.respond_to?(:metadata) @@ -30,7 +32,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "activerecord", ">= 3.2" + spec.add_dependency "activerecord", ">= 7.1.5" spec.add_development_dependency "bundler", ">= 1.14" spec.add_development_dependency "rake" From 1f003f59e82d886f7033394932b7f5124f500692 Mon Sep 17 00:00:00 2001 From: Mike Griffin Date: Wed, 11 Jun 2025 11:08:35 +0100 Subject: [PATCH 3/3] Use double quotes instead of single quotes Co-authored-by: Joel Hawksley --- github-ds.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-ds.gemspec b/github-ds.gemspec index 848d5f7..2538aac 100644 --- a/github-ds.gemspec +++ b/github-ds.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/github/github-ds" spec.license = "MIT" - spec.required_ruby_version = '>= 3.2' + spec.required_ruby_version = ">= 3.2" # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host' # to allow pushing to a single host or delete this section to allow pushing to any host.