Skip to content

Commit 4ab99ff

Browse files
authored
Test against Rails v8.0 (#133)
1 parent c1390d8 commit 4ab99ff

12 files changed

+144
-14
lines changed

.github/workflows/workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
--health-retries 3
3535
strategy:
3636
matrix:
37-
ruby: ["3.1", "3.2", "3.3"]
38-
gemfile: ["activerecord_6.1", "activerecord_7.0", "activerecord_7.1", "activerecord_7.2"]
37+
ruby: ["3.2", "3.3"]
38+
gemfile: ["activerecord_6.1", "activerecord_7.0", "activerecord_7.1", "activerecord_7.2", "activerecord_8.0"]
3939
env:
4040
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
4141
steps:
42-
- uses: actions/checkout@v1
42+
- uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 1
4545
- uses: ruby/setup-ruby@v1

Appraisals

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,19 @@ appraise "activerecord-7.2" do
3131
gem "racc", '~> 1.7.3', platforms: [:ruby_33]
3232
end
3333

34+
appraise "activerecord-8.0" do
35+
gem "activerecord", "~> 8.0.0"
36+
gem "mysql2", "~> 0.5"
37+
gem "pg", ">= 0.18", "< 2.0"
38+
gem "sqlite3", "~> 2.1.0"
39+
gem "racc", '~> 1.7.3', platforms: [:ruby_33]
40+
end
41+
3442
appraise "activerecord-edge" do
3543
gem "arel", github: "rails/arel"
3644
gem "activerecord", github: "rails/rails", :branch => "main"
3745
gem "mysql2", "~> 0.5"
3846
gem "pg", ">= 0.18", "< 2.0"
39-
gem "sqlite3", "~> 1.4.0"
47+
gem "sqlite3", "~> 2.1.0"
4048
gem "racc", '~> 1.7.3', platforms: [:ruby_33]
4149
end

database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test:
55
mysql2: &mysql2_defaults
66
<<: *defaults
77
username: root
8-
prepared_statements: true
8+
prepared_statements: false # See https://github.com/rails/rails/issues/53673
99
postgresql: &postgres_defaults
1010
<<: *defaults
1111
min_messages: error

gemfiles/activerecord_6.1.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
hairtrigger (1.2.0)
5-
activerecord (>= 6.0, < 8)
5+
activerecord (>= 6.0, < 9)
66
ruby2ruby (~> 2.4)
77
ruby_parser (~> 3.10)
88

gemfiles/activerecord_7.0.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
hairtrigger (1.2.0)
5-
activerecord (>= 6.0, < 8)
5+
activerecord (>= 6.0, < 9)
66
ruby2ruby (~> 2.4)
77
ruby_parser (~> 3.10)
88

gemfiles/activerecord_7.1.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
hairtrigger (1.2.0)
5-
activerecord (>= 6.0, < 8)
5+
activerecord (>= 6.0, < 9)
66
ruby2ruby (~> 2.4)
77
ruby_parser (~> 3.10)
88

gemfiles/activerecord_7.2.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: ..
33
specs:
44
hairtrigger (1.2.0)
5-
activerecord (>= 6.0, < 8)
5+
activerecord (>= 6.0, < 9)
66
ruby2ruby (~> 2.4)
77
ruby_parser (~> 3.10)
88

gemfiles/activerecord_8.0.gemfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "racc", "~> 1.7.3", platforms: [:ruby_33]
6+
gem "activerecord", "~> 8.0.0"
7+
gem "mysql2", "~> 0.5"
8+
gem "pg", ">= 0.18", "< 2.0"
9+
gem "sqlite3", "~> 2.1.0"
10+
11+
group :development do
12+
gem "appraisal"
13+
gem "byebug"
14+
end
15+
16+
group :test do
17+
gem "rake", "~> 13.0.6"
18+
gem "rspec", "~> 3.12.0"
19+
end
20+
21+
gemspec path: "../"
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
hairtrigger (1.2.0)
5+
activerecord (>= 6.0, < 9)
6+
ruby2ruby (~> 2.4)
7+
ruby_parser (~> 3.10)
8+
9+
GEM
10+
remote: https://rubygems.org/
11+
specs:
12+
activemodel (8.0.0)
13+
activesupport (= 8.0.0)
14+
activerecord (8.0.0)
15+
activemodel (= 8.0.0)
16+
activesupport (= 8.0.0)
17+
timeout (>= 0.4.0)
18+
activesupport (8.0.0)
19+
base64
20+
benchmark (>= 0.3)
21+
bigdecimal
22+
concurrent-ruby (~> 1.0, >= 1.3.1)
23+
connection_pool (>= 2.2.5)
24+
drb
25+
i18n (>= 1.6, < 2)
26+
logger (>= 1.4.2)
27+
minitest (>= 5.1)
28+
securerandom (>= 0.3)
29+
tzinfo (~> 2.0, >= 2.0.5)
30+
uri (>= 0.13.1)
31+
appraisal (2.5.0)
32+
bundler
33+
rake
34+
thor (>= 0.14.0)
35+
base64 (0.2.0)
36+
benchmark (0.4.0)
37+
bigdecimal (3.1.8)
38+
byebug (11.1.3)
39+
concurrent-ruby (1.3.4)
40+
connection_pool (2.4.1)
41+
diff-lcs (1.5.1)
42+
drb (2.2.1)
43+
i18n (1.14.6)
44+
concurrent-ruby (~> 1.0)
45+
logger (1.6.1)
46+
mini_portile2 (2.8.8)
47+
minitest (5.25.1)
48+
mysql2 (0.5.6)
49+
pg (1.5.9)
50+
racc (1.7.3)
51+
rake (13.0.6)
52+
rspec (3.12.0)
53+
rspec-core (~> 3.12.0)
54+
rspec-expectations (~> 3.12.0)
55+
rspec-mocks (~> 3.12.0)
56+
rspec-core (3.12.3)
57+
rspec-support (~> 3.12.0)
58+
rspec-expectations (3.12.4)
59+
diff-lcs (>= 1.2.0, < 2.0)
60+
rspec-support (~> 3.12.0)
61+
rspec-mocks (3.12.7)
62+
diff-lcs (>= 1.2.0, < 2.0)
63+
rspec-support (~> 3.12.0)
64+
rspec-support (3.12.2)
65+
ruby2ruby (2.5.1)
66+
ruby_parser (~> 3.1)
67+
sexp_processor (~> 4.6)
68+
ruby_parser (3.21.1)
69+
racc (~> 1.5)
70+
sexp_processor (~> 4.16)
71+
securerandom (0.3.2)
72+
sexp_processor (4.17.3)
73+
sqlite3 (2.1.1)
74+
mini_portile2 (~> 2.8.0)
75+
sqlite3 (2.1.1-x86_64-linux-gnu)
76+
thor (1.3.2)
77+
timeout (0.4.2)
78+
tzinfo (2.0.6)
79+
concurrent-ruby (~> 1.0)
80+
uri (1.0.2)
81+
82+
PLATFORMS
83+
ruby
84+
x86_64-linux
85+
86+
DEPENDENCIES
87+
activerecord (~> 8.0.0)
88+
appraisal
89+
byebug
90+
hairtrigger!
91+
mysql2 (~> 0.5)
92+
pg (>= 0.18, < 2.0)
93+
racc (~> 1.7.3)
94+
rake (~> 13.0.6)
95+
rspec (~> 3.12.0)
96+
sqlite3 (~> 2.1.0)
97+
98+
BUNDLED WITH
99+
2.5.22

gemfiles/activerecord_edge.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gem "arel", github: "rails/arel"
77
gem "activerecord", github: "rails/rails", branch: "main"
88
gem "mysql2", "~> 0.5"
99
gem "pg", ">= 0.18", "< 2.0"
10-
gem "sqlite3", "~> 1.4.0"
10+
gem "sqlite3", "~> 2.1.0"
1111

1212
group :development do
1313
gem "appraisal"

0 commit comments

Comments
 (0)