diff --git a/Appraisals b/Appraisals index 68b2914..a8bb70f 100644 --- a/Appraisals +++ b/Appraisals @@ -1,34 +1,29 @@ # frozen_string_literal: true -RAILS_VERSIONS = %w[ - 7.0.8 - 7.1.3 - 7.2.0 -].freeze +appraise "rails_7.0.8" do + gem "rails", "7.0.8" -RAILS_VERSIONS.each do |version| - appraise "rails_#{version}" do - gem "rails", version - - case version - when "7.0.8" - # Fix: LoadError: cannot load such file -- base64 - install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do - gem "base64" - gem "bigdecimal" - gem "mutex_m" - gem "drb" - gem "logger" - end + # Fix: LoadError: cannot load such file -- base64 + install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do + gem "base64" + gem "bigdecimal" + gem "mutex_m" + gem "drb" + gem "logger" + end +end - when "7.1.3" - # Fix: - # warning: logger was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0 - # Add logger to your Gemfile or gemspec. - install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") }' do - gem "logger" - end - end +appraise "rails_7.1.3" do + gem "rails", "7.1.3" + # Fix: + # warning: logger was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0. + # Add logger to your Gemfile or gemspec. + install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") }' do + gem "logger" end end + +appraise "rails_7.2.0" do + gem "rails", "7.2.0" +end