From 2645f194ea4bd8b9172242473cffe8304b56e1fa Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Fri, 9 Oct 2026 20:33:15 +0200 Subject: [PATCH 1/2] Test with Rails 8.0 and 8.1 in CI --- .github/workflows/ruby.yml | 2 ++ Appraisals | 8 ++++++++ gemfiles/rails_80.gemfile | 25 +++++++++++++++++++++++++ gemfiles/rails_81.gemfile | 25 +++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 gemfiles/rails_80.gemfile create mode 100644 gemfiles/rails_81.gemfile diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 2d54517..0341183 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -31,6 +31,8 @@ jobs: gemfile: - rails_71 - rails_72 + - rails_80 + - rails_81 env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile diff --git a/Appraisals b/Appraisals index 86ef6c5..419ccb6 100644 --- a/Appraisals +++ b/Appraisals @@ -16,3 +16,11 @@ end appraise "rails_72" do gem "rails", "~> 7.2.0" end + +appraise "rails_80" do + gem "rails", "~> 8.0.0" +end + +appraise "rails_81" do + gem "rails", "~> 8.1.0" +end diff --git a/gemfiles/rails_80.gemfile b/gemfiles/rails_80.gemfile new file mode 100644 index 0000000..db3060f --- /dev/null +++ b/gemfiles/rails_80.gemfile @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "publify_core", git: "https://github.com/publify/publify_core.git" +gem "rails", "~> 8.0.0" + +group :development, :test do + gem "appraisal", "~> 2.3" + gem "rake-manifest", "~> 0.2.0" + gem "rspec-rails", "~> 7.1" + gem "rubocop", "~> 1.91" + gem "rubocop-capybara", "~> 3.0" + gem "rubocop-factory_bot", "~> 2.28" + gem "rubocop-performance", "~> 1.26" + gem "rubocop-rails", "~> 2.36" + gem "rubocop-rspec", "~> 3.10" + gem "rubocop-rspec_rails", "~> 2.32" + gem "simplecov", "~> 1.2" + gem "sqlite3", "~> 2.9" +end + +gemspec path: "../" diff --git a/gemfiles/rails_81.gemfile b/gemfiles/rails_81.gemfile new file mode 100644 index 0000000..dae7614 --- /dev/null +++ b/gemfiles/rails_81.gemfile @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "publify_core", git: "https://github.com/publify/publify_core.git" +gem "rails", "~> 8.1.0" + +group :development, :test do + gem "appraisal", "~> 2.3" + gem "rake-manifest", "~> 0.2.0" + gem "rspec-rails", "~> 7.1" + gem "rubocop", "~> 1.91" + gem "rubocop-capybara", "~> 3.0" + gem "rubocop-factory_bot", "~> 2.28" + gem "rubocop-performance", "~> 1.26" + gem "rubocop-rails", "~> 2.36" + gem "rubocop-rspec", "~> 3.10" + gem "rubocop-rspec_rails", "~> 2.32" + gem "simplecov", "~> 1.2" + gem "sqlite3", "~> 2.9" +end + +gemspec path: "../" From b0ae99a3bbec7960fed41e7e74e11ab642e8e457 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Fri, 9 Oct 2026 20:34:11 +0200 Subject: [PATCH 2/2] Handle deprecations - Remove loading of deprecated statistics.rake - Remove fixture_path setting. This has been deprecated in favour of fixture_paths, but we don't use fixtures in this project --- Rakefile | 1 - spec/rails_helper.rb | 3 --- 2 files changed, 4 deletions(-) diff --git a/Rakefile b/Rakefile index 33a7f23..745024e 100644 --- a/Rakefile +++ b/Rakefile @@ -9,7 +9,6 @@ end APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__) load "rails/tasks/engine.rake" -load "rails/tasks/statistics.rake" load "lib/tasks/appraisal.rake" Bundler::GemHelper.install_tasks diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index d831857..05127ac 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -29,9 +29,6 @@ ActiveRecord::Migration.maintain_test_schema! RSpec.configure do |config| - # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = Rails.root.join "/spec/fixtures" - # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false # instead of true.