From 264cba1ca9fc4c6c6ce2819d316224171ea23502 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Fri, 8 Nov 2024 00:29:48 +0100 Subject: [PATCH] Improve Appraisal config --- .github/workflows/ci.yml | 6 +++--- Appraisals | 12 ++++++------ gemfiles/{rails_7.0.8.gemfile => rails_7.0.gemfile} | 2 +- gemfiles/{rails_7.1.3.gemfile => rails_7.1.gemfile} | 2 +- gemfiles/{rails_7.2.0.gemfile => rails_7.2.gemfile} | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) rename gemfiles/{rails_7.0.8.gemfile => rails_7.0.gemfile} (95%) rename gemfiles/{rails_7.1.3.gemfile => rails_7.1.gemfile} (94%) rename gemfiles/{rails_7.2.0.gemfile => rails_7.2.gemfile} (93%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6f50a7..7b5f0a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,9 +55,9 @@ jobs: - '3.1' - 'head' rails: - - rails_7.2.0 - - rails_7.1.3 - - rails_7.0.8 + - rails_7.2 + - rails_7.1 + - rails_7.0 env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile diff --git a/Appraisals b/Appraisals index ec5aaf9..e1fe53a 100644 --- a/Appraisals +++ b/Appraisals @@ -1,7 +1,7 @@ # frozen_string_literal: true -appraise 'rails_7.0.8' do - gem 'rails', '7.0.8' +appraise 'rails_7.0' do + gem 'rails', '~> 7.0.0' # Fix: LoadError: cannot load such file -- base64 install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do @@ -13,8 +13,8 @@ appraise 'rails_7.0.8' do end end -appraise 'rails_7.1.3' do - gem 'rails', '7.1.3' +appraise 'rails_7.1' do + gem 'rails', '~> 7.1.0' # Fix: # warning: logger was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0. @@ -24,6 +24,6 @@ appraise 'rails_7.1.3' do end end -appraise 'rails_7.2.0' do - gem 'rails', '7.2.0' +appraise 'rails_7.2' do + gem 'rails', '~> 7.2.0' end diff --git a/gemfiles/rails_7.0.8.gemfile b/gemfiles/rails_7.0.gemfile similarity index 95% rename from gemfiles/rails_7.0.8.gemfile rename to gemfiles/rails_7.0.gemfile index c144967..a3ecf15 100644 --- a/gemfiles/rails_7.0.8.gemfile +++ b/gemfiles/rails_7.0.gemfile @@ -12,7 +12,7 @@ gem "rubocop-rspec" gem "rubocop-rspec_rails" gem "ruby-lsp" gem "simplecov" -gem "rails", "7.0.8" +gem "rails", "~> 7.0.0" install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") } do gem "base64" diff --git a/gemfiles/rails_7.1.3.gemfile b/gemfiles/rails_7.1.gemfile similarity index 94% rename from gemfiles/rails_7.1.3.gemfile rename to gemfiles/rails_7.1.gemfile index 436db5d..6944a65 100644 --- a/gemfiles/rails_7.1.3.gemfile +++ b/gemfiles/rails_7.1.gemfile @@ -12,7 +12,7 @@ gem "rubocop-rspec" gem "rubocop-rspec_rails" gem "ruby-lsp" gem "simplecov" -gem "rails", "7.1.3" +gem "rails", "~> 7.1.0" install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") } do gem "logger" diff --git a/gemfiles/rails_7.2.0.gemfile b/gemfiles/rails_7.2.gemfile similarity index 93% rename from gemfiles/rails_7.2.0.gemfile rename to gemfiles/rails_7.2.gemfile index 354c54f..c0ae62d 100644 --- a/gemfiles/rails_7.2.0.gemfile +++ b/gemfiles/rails_7.2.gemfile @@ -12,6 +12,6 @@ gem "rubocop-rspec" gem "rubocop-rspec_rails" gem "ruby-lsp" gem "simplecov" -gem "rails", "7.2.0" +gem "rails", "~> 7.2.0" gemspec path: "../"