Skip to content

Commit b6838e1

Browse files
committed
Improve Appraisal config
1 parent c7605c3 commit b6838e1

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
- '3.1'
5656
- 'head'
5757
rails:
58-
- activerecord_7.2.0
59-
- activerecord_7.1.3
60-
- activerecord_7.0.8
58+
- activerecord_7.2
59+
- activerecord_7.1
60+
- activerecord_7.0
6161

6262
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
6363
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile

Appraisals

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

3-
appraise 'activerecord_7.0.8' do
4-
gem 'activerecord', '7.0.8'
3+
appraise 'activerecord_7.0' do
4+
gem 'activerecord', '~> 7.0.0'
55

66
# Fix: LoadError: cannot load such file -- base64
77
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do
@@ -13,8 +13,8 @@ appraise 'activerecord_7.0.8' do
1313
end
1414
end
1515

16-
appraise 'activerecord_7.1.3' do
17-
gem 'activerecord', '7.1.3'
16+
appraise 'activerecord_7.1' do
17+
gem 'activerecord', '~> 7.1.0'
1818

1919
# Fix:
2020
# 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 'activerecord_7.1.3' do
2424
end
2525
end
2626

27-
appraise 'activerecord_7.2.0' do
28-
gem 'activerecord', '7.2.0'
27+
appraise 'activerecord_7.2' do
28+
gem 'activerecord', '~> 7.2.0'
2929
end

gemfiles/activerecord_7.0.8.gemfile gemfiles/activerecord_7.0.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gem "rubocop"
1111
gem "rubocop-rake"
1212
gem "rubocop-rspec"
1313
gem "simplecov"
14-
gem "activerecord", "7.0.8"
14+
gem "activerecord", "~> 7.0.0"
1515

1616
install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") } do
1717
gem "base64"

gemfiles/activerecord_7.1.3.gemfile gemfiles/activerecord_7.1.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gem "rubocop"
1111
gem "rubocop-rake"
1212
gem "rubocop-rspec"
1313
gem "simplecov"
14-
gem "activerecord", "7.1.3"
14+
gem "activerecord", "~> 7.1.0"
1515

1616
install_if -> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") } do
1717
gem "logger"

gemfiles/activerecord_7.2.0.gemfile gemfiles/activerecord_7.2.gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ gem "rubocop"
1111
gem "rubocop-rake"
1212
gem "rubocop-rspec"
1313
gem "simplecov"
14-
gem "activerecord", "7.2.0"
14+
gem "activerecord", "~> 7.2.0"
1515

1616
gemspec path: "../"

0 commit comments

Comments
 (0)