Skip to content

Commit

Permalink
Cleanup Appraisals file
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Sep 6, 2024
1 parent 889fbcb commit cae94ff
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cae94ff

Please sign in to comment.