Skip to content

Commit b626875

Browse files
committed
Cleanup Appraisals file
1 parent 9efeebd commit b626875

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

Appraisals

+22-25
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
11
# frozen_string_literal: true
22

3-
RAILS_VERSIONS = %w[
4-
7.0.8
5-
7.1.3
6-
7.2.0
7-
].freeze
3+
appraise 'activerecord_7.0.8' do
4+
gem 'activerecord', '7.0.8'
85

9-
RAILS_VERSIONS.each do |version|
10-
appraise "activerecord_#{version}" do
11-
gem 'activerecord', version
12-
13-
case version
14-
when "7.0.8"
15-
# Fix: LoadError: cannot load such file -- base64
16-
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do
17-
gem "base64"
18-
gem "bigdecimal"
19-
gem "mutex_m"
20-
gem "drb"
21-
gem "logger"
22-
end
6+
# Fix: LoadError: cannot load such file -- base64
7+
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do
8+
gem 'base64'
9+
gem 'bigdecimal'
10+
gem 'mutex_m'
11+
gem 'drb'
12+
gem 'logger'
13+
end
14+
end
2315

24-
when "7.1.3"
25-
# 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.
26-
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") }' do
27-
gem "logger"
28-
end
29-
end
16+
appraise 'activerecord_7.1.3' do
17+
gem 'activerecord', '7.1.3'
3018

19+
# Fix:
20+
# warning: logger was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0.
21+
# Add logger to your Gemfile or gemspec.
22+
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") }' do
23+
gem 'logger'
3124
end
3225
end
26+
27+
appraise 'activerecord_7.2.0' do
28+
gem 'activerecord', '7.2.0'
29+
end

0 commit comments

Comments
 (0)