Skip to content

Commit

Permalink
Test against Rails v8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leoarnold committed Nov 19, 2024
1 parent 13eceb9 commit 2038732
Show file tree
Hide file tree
Showing 12 changed files with 144 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
--health-retries 3
strategy:
matrix:
ruby: ["3.1", "3.2", "3.3"]
gemfile: ["activerecord_6.1", "activerecord_7.0", "activerecord_7.1", "activerecord_7.2"]
ruby: ["3.2", "3.3"]
gemfile: ["activerecord_6.1", "activerecord_7.0", "activerecord_7.1", "activerecord_7.2", "activerecord_8.0"]
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: ruby/setup-ruby@v1
Expand Down
10 changes: 9 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,19 @@ appraise "activerecord-7.2" do
gem "racc", '~> 1.7.3', platforms: [:ruby_33]
end

appraise "activerecord-8.0" do
gem "activerecord", "~> 8.0.0"
gem "mysql2", "~> 0.5"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 2.1.0"
gem "racc", '~> 1.7.3', platforms: [:ruby_33]
end

appraise "activerecord-edge" do
gem "arel", github: "rails/arel"
gem "activerecord", github: "rails/rails", :branch => "main"
gem "mysql2", "~> 0.5"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.4.0"
gem "sqlite3", "~> 2.1.0"
gem "racc", '~> 1.7.3', platforms: [:ruby_33]
end
2 changes: 1 addition & 1 deletion database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test:
mysql2: &mysql2_defaults
<<: *defaults
username: root
prepared_statements: true
prepared_statements: false # See https://github.com/rails/rails/issues/53673
postgresql: &postgres_defaults
<<: *defaults
min_messages: error
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_6.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
hairtrigger (1.2.0)
activerecord (>= 6.0, < 8)
activerecord (>= 6.0, < 9)
ruby2ruby (~> 2.4)
ruby_parser (~> 3.10)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
hairtrigger (1.2.0)
activerecord (>= 6.0, < 8)
activerecord (>= 6.0, < 9)
ruby2ruby (~> 2.4)
ruby_parser (~> 3.10)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
hairtrigger (1.2.0)
activerecord (>= 6.0, < 8)
activerecord (>= 6.0, < 9)
ruby2ruby (~> 2.4)
ruby_parser (~> 3.10)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7.2.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: ..
specs:
hairtrigger (1.2.0)
activerecord (>= 6.0, < 8)
activerecord (>= 6.0, < 9)
ruby2ruby (~> 2.4)
ruby_parser (~> 3.10)

Expand Down
21 changes: 21 additions & 0 deletions gemfiles/activerecord_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "racc", "~> 1.7.3", platforms: [:ruby_33]
gem "activerecord", "~> 8.0.0"
gem "mysql2", "~> 0.5"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 2.1.0"

group :development do
gem "appraisal"
gem "byebug"
end

group :test do
gem "rake", "~> 13.0.6"
gem "rspec", "~> 3.12.0"
end

gemspec path: "../"
99 changes: 99 additions & 0 deletions gemfiles/activerecord_8.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
PATH
remote: ..
specs:
hairtrigger (1.2.0)
activerecord (>= 6.0, < 9)
ruby2ruby (~> 2.4)
ruby_parser (~> 3.10)

GEM
remote: https://rubygems.org/
specs:
activemodel (8.0.0)
activesupport (= 8.0.0)
activerecord (8.0.0)
activemodel (= 8.0.0)
activesupport (= 8.0.0)
timeout (>= 0.4.0)
activesupport (8.0.0)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.8)
byebug (11.1.3)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
diff-lcs (1.5.1)
drb (2.2.1)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
logger (1.6.1)
mini_portile2 (2.8.8)
minitest (5.25.1)
mysql2 (0.5.6)
pg (1.5.9)
racc (1.7.3)
rake (13.0.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.3)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.7)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.2)
ruby2ruby (2.5.1)
ruby_parser (~> 3.1)
sexp_processor (~> 4.6)
ruby_parser (3.21.1)
racc (~> 1.5)
sexp_processor (~> 4.16)
securerandom (0.3.2)
sexp_processor (4.17.3)
sqlite3 (2.1.1)
mini_portile2 (~> 2.8.0)
sqlite3 (2.1.1-x86_64-linux-gnu)
thor (1.3.2)
timeout (0.4.2)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (1.0.2)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
activerecord (~> 8.0.0)
appraisal
byebug
hairtrigger!
mysql2 (~> 0.5)
pg (>= 0.18, < 2.0)
racc (~> 1.7.3)
rake (~> 13.0.6)
rspec (~> 3.12.0)
sqlite3 (~> 2.1.0)

BUNDLED WITH
2.5.22
2 changes: 1 addition & 1 deletion gemfiles/activerecord_edge.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem "arel", github: "rails/arel"
gem "activerecord", github: "rails/rails", branch: "main"
gem "mysql2", "~> 0.5"
gem "pg", ">= 0.18", "< 2.0"
gem "sqlite3", "~> 1.4.0"
gem "sqlite3", "~> 2.1.0"

group :development do
gem "appraisal"
Expand Down
8 changes: 5 additions & 3 deletions gemfiles/activerecord_edge.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ PATH
remote: ..
specs:
hairtrigger (1.2.0)
activerecord (>= 6.0, < 8)
activerecord (>= 6.0, < 9)
ruby2ruby (~> 2.4)
ruby_parser (~> 3.10)

Expand All @@ -51,6 +51,7 @@ GEM
ruby2_keywords
i18n (1.14.1)
concurrent-ruby (~> 1.0)
mini_portile2 (2.8.8)
minitest (5.20.0)
mysql2 (0.5.5)
pg (1.5.4)
Expand All @@ -76,7 +77,8 @@ GEM
ruby_parser (3.20.3)
sexp_processor (~> 4.16)
sexp_processor (4.17.0)
sqlite3 (1.4.4)
sqlite3 (2.1.1)
mini_portile2 (~> 2.8.0)
thor (1.3.0)
timeout (0.4.1)
tzinfo (2.0.6)
Expand All @@ -97,7 +99,7 @@ DEPENDENCIES
racc (~> 1.7.3)
rake (~> 13.0.6)
rspec (~> 3.12.0)
sqlite3 (~> 1.4.0)
sqlite3 (~> 2.1.0)

BUNDLED WITH
2.5.3
2 changes: 1 addition & 1 deletion hairtrigger.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|

s.files = %w(LICENSE.txt Rakefile README.md) + Dir['lib/**/*.rb'] + Dir['lib/**/*.rake']

s.add_dependency 'activerecord', '>= 6.0', '< 8'
s.add_dependency 'activerecord', '>= 6.0', '< 9'
s.add_dependency 'ruby_parser', '~> 3.10'
s.add_dependency 'ruby2ruby', '~> 2.4'
end

0 comments on commit 2038732

Please sign in to comment.