Skip to content

Commit af432f4

Browse files
committed
Add Rails 8.1 in CI
1 parent 5d5428b commit af432f4

5 files changed

Lines changed: 45 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- rails_7_1
4242
- rails_7_2
4343
- rails_8_0
44+
- rails_8_1
4445
rubygems:
4546
- default
4647
bundler:
@@ -60,6 +61,22 @@ jobs:
6061
- "4.0"
6162
exclude:
6263

64+
# Rails 8.1 requires Ruby 3.2 and above
65+
- gemfile: rails_8_1
66+
ruby: "2.3"
67+
- gemfile: rails_8_1
68+
ruby: "2.4"
69+
- gemfile: rails_8_1
70+
ruby: "2.5"
71+
- gemfile: rails_8_1
72+
ruby: "2.6"
73+
- gemfile: rails_8_1
74+
ruby: "2.7"
75+
- gemfile: rails_8_1
76+
ruby: "3.0"
77+
- gemfile: rails_8_1
78+
ruby: "3.1"
79+
6380
# Rails 8.0 requires Ruby 3.2 and above
6481
- gemfile: rails_8_0
6582
ruby: "2.3"

Appraisals

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ appraise 'rails-6-1' do
4141
gem 'mutex_m'
4242
gem 'base64'
4343
gem 'bigdecimal'
44+
45+
# Since Ruby 4.0 benchmark becomes a bundled gem and should be added into gemspec/Gemfile files
46+
gem "benchmark"
4447
end
4548

4649
appraise 'rails-7-0' do
@@ -78,3 +81,12 @@ appraise 'rails-8-0' do
7881
gem 'base64'
7982
gem 'bigdecimal'
8083
end
84+
85+
appraise 'rails-8-1' do
86+
gem 'activemodel', '~> 8.1.0'
87+
88+
# Since Ruby 3.4 these dependencies are bundled gems so should be specified explicitly.
89+
gem 'mutex_m'
90+
gem 'base64'
91+
gem 'bigdecimal'
92+
end

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Dynamoid supports Ruby >= 2.3 and Rails >= 4.2.
133133

134134
Its compatibility is tested against following Ruby versions: 2.3, 2.4,
135135
2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, and 4.0, JRuby 9.4.x and against Rails versions: 4.2, 5.0, 5.1,
136-
5.2, 6.0, 6.1, 7.0, 7.1, 7.2, and 8.0.
136+
5.2, 6.0, 6.1, 7.0, 7.1, 7.2, 8.0, and 8.1.
137137

138138
## Setup
139139

gemfiles/rails_6_1.gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
source 'https://rubygems.org'
66

77
gem 'activemodel', '~> 6.1.0'
8+
gem 'mutex_m'
89
gem 'base64'
910
gem 'bigdecimal'
10-
gem 'mutex_m'
11-
gem 'pry-byebug', platforms: :ruby
11+
gem 'benchmark'
1212

1313
gemspec path: '../'

gemfiles/rails_8_1.gemfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# frozen_string_literal: true
2+
3+
# This file was generated by Appraisal
4+
5+
source 'https://rubygems.org'
6+
7+
gem 'activemodel', '~> 8.1.0'
8+
gem 'base64'
9+
gem 'bigdecimal'
10+
gem 'mutex_m'
11+
gem 'pry-byebug', platforms: :ruby
12+
13+
gemspec path: '../'

0 commit comments

Comments
 (0)