-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72da7ba
commit fdd46b6
Showing
1 changed file
with
22 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |