From 410796cfb2319f19e6f4c35d18044009ff950d57 Mon Sep 17 00:00:00 2001 From: Lucas Caton Date: Sat, 10 Aug 2024 11:52:38 +1000 Subject: [PATCH] Test against Rails 7.2 --- .github/workflows/ci.yml | 1 + Appraisals | 2 +- gemfiles/rails_7.2.gemfile | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 gemfiles/rails_7.2.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fdba64..5863194 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,7 @@ jobs: - gemfiles/rails_6.1.gemfile - gemfiles/rails_7.0.gemfile - gemfiles/rails_7.1.gemfile + - gemfiles/rails_7.2.gemfile env: BUNDLE_GEMFILE: "${{ matrix.gemfile }}" diff --git a/Appraisals b/Appraisals index 43ac1e1..0082da9 100644 --- a/Appraisals +++ b/Appraisals @@ -4,7 +4,7 @@ require 'json' rails_versions = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versions/rails.json'))) .group_by { |version| version['number'] }.keys.grep_v(/rc|racecar|beta|pre/) -%w[6.0 6.1 7.0 7.1].each do |rails_version| +%w[6.0 6.1 7.0 7.1 7.2].each do |rails_version| appraise "rails_#{rails_version}" do current_version = rails_versions .select { |key| key.match(/\A#{rails_version}/) } diff --git a/gemfiles/rails_7.2.gemfile b/gemfiles/rails_7.2.gemfile new file mode 100644 index 0000000..5f72aaf --- /dev/null +++ b/gemfiles/rails_7.2.gemfile @@ -0,0 +1,9 @@ +# This file was generated by Appraisal + +source 'https://rubygems.org' + +gem 'activerecord', '~> 7.2.0' +gem 'activesupport', '~> 7.2.0' +gem 'sqlite3', '< 2' + +gemspec path: '../'