Skip to content

Commit

Permalink
added support for rails 8
Browse files Browse the repository at this point in the history
  • Loading branch information
psaha84 committed Dec 23, 2024
1 parent ec5a9bc commit c3a2e73
Show file tree
Hide file tree
Showing 14 changed files with 196 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/rspec_mysql_8_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- 7_0
- 7_1
- 7_2
- 8_0
# - master # versions failing
exclude:
- ruby_version: jruby
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rspec_pg_14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- 7_0
- 7_1
- 7_2
- 8_0
# - master # versions failing
exclude:
- ruby_version: jruby
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rspec_pg_15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- 7_0
- 7_1
- 7_2
- 8_0
# - master # versions failing
exclude:
- ruby_version: jruby
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rspec_pg_16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- 7_0
- 7_1
- 7_2
- 8_0
# - master # versions failing
exclude:
- ruby_version: jruby
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rspec_pg_17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- 7_0
- 7_1
- 7_2
- 8_0
# - master # versions failing
exclude:
- ruby_version: jruby
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rspec_sqlite_3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- 7_0
- 7_1
- 7_2
- 8_0
# - master # versions failing
exclude:
- ruby_version: jruby
Expand Down
42 changes: 42 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,48 @@ appraise 'rails-7-2-jdbc-sqlite3' do
end
end

appraise 'rails-8-0-postgresql' do
gem 'rails', '~> 8.0.0'
gem 'pg', '~> 1.5'
end

appraise 'rails-8-0-mysql' do
gem 'rails', '~> 8.0.0'
gem 'mysql2', '~> 0.5'
end

appraise 'rails-8-0-sqlite3' do
gem 'rails', '~> 8.0.0'
gem 'sqlite3', '~> 2.1'
end

appraise 'rails-8-0-jdbc-postgresql' do
gem 'rails', '~> 8.0.0'
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 70.0'
gem 'activerecord-jdbcpostgresql-adapter', '~> 70.0'
gem 'jdbc-postgres'
end
end

appraise 'rails-8-0-jdbc-mysql' do
gem 'rails', '~> 8.0.0'
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 70.0'
gem 'activerecord-jdbcmysql-adapter', '~> 70.0'
gem 'jdbc-mysql'
end
end

appraise 'rails-8-0-jdbc-sqlite3' do
gem 'rails', '~> 8.0.0'
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 70.0'
gem 'activerecord-jdbcsqlite3-adapter', '~> 70.0'
gem 'jdbc-sqlite3'
end
end

# Install Rails from the main branch are failing
# appraise 'rails-master' do
# gem 'rails', git: 'https://github.com/rails/rails.git'
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def my_config
end

def migrate
if ActiveRecord.version.release < Gem::Version.new('7.1')
if ActiveRecord.version.release < Gem::Version.new('8.1')
ActiveRecord::MigrationContext.new('spec/dummy/db/migrate', ActiveRecord::SchemaMigration).migrate
else
ActiveRecord::MigrationContext.new('spec/dummy/db/migrate').migrate
Expand Down
27 changes: 27 additions & 0 deletions gemfiles/rails_8_0_jdbc_mysql.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal", "~> 2.3"
gem "bundler", "< 3.0"
gem "pry", "~> 0.13"
gem "rake", "< 14.0"
gem "rspec", "~> 3.10"
gem "rspec_junit_formatter", "~> 0.4"
gem "rspec-rails", ">= 6.1.0", "< 8.1"
gem "rubocop", "~> 1.12"
gem "rubocop-performance", "~> 1.10"
gem "rubocop-rails", "~> 2.10"
gem "rubocop-rake", "~> 0.5"
gem "rubocop-rspec", "~> 3.1"
gem "rubocop-thread_safety", "~> 0.4"
gem "simplecov", require: false
gem "rails", "~> 8.0.0"

platforms :jruby do
gem "activerecord-jdbc-adapter", "~> 70.0"
gem "activerecord-jdbcmysql-adapter", "~> 70.0"
gem "jdbc-mysql"
end

gemspec path: "../"
27 changes: 27 additions & 0 deletions gemfiles/rails_8_0_jdbc_postgresql.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal", "~> 2.3"
gem "bundler", "< 3.0"
gem "pry", "~> 0.13"
gem "rake", "< 14.0"
gem "rspec", "~> 3.10"
gem "rspec_junit_formatter", "~> 0.4"
gem "rspec-rails", ">= 6.1.0", "< 8.1"
gem "rubocop", "~> 1.12"
gem "rubocop-performance", "~> 1.10"
gem "rubocop-rails", "~> 2.10"
gem "rubocop-rake", "~> 0.5"
gem "rubocop-rspec", "~> 3.1"
gem "rubocop-thread_safety", "~> 0.4"
gem "simplecov", require: false
gem "rails", "~> 8.0.0"

platforms :jruby do
gem "activerecord-jdbc-adapter", "~> 70.0"
gem "activerecord-jdbcpostgresql-adapter", "~> 70.0"
gem "jdbc-postgres"
end

gemspec path: "../"
27 changes: 27 additions & 0 deletions gemfiles/rails_8_0_jdbc_sqlite3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal", "~> 2.3"
gem "bundler", "< 3.0"
gem "pry", "~> 0.13"
gem "rake", "< 14.0"
gem "rspec", "~> 3.10"
gem "rspec_junit_formatter", "~> 0.4"
gem "rspec-rails", ">= 6.1.0", "< 8.1"
gem "rubocop", "~> 1.12"
gem "rubocop-performance", "~> 1.10"
gem "rubocop-rails", "~> 2.10"
gem "rubocop-rake", "~> 0.5"
gem "rubocop-rspec", "~> 3.1"
gem "rubocop-thread_safety", "~> 0.4"
gem "simplecov", require: false
gem "rails", "~> 8.0.0"

platforms :jruby do
gem "activerecord-jdbc-adapter", "~> 70.0"
gem "activerecord-jdbcsqlite3-adapter", "~> 70.0"
gem "jdbc-sqlite3"
end

gemspec path: "../"
22 changes: 22 additions & 0 deletions gemfiles/rails_8_0_mysql.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal", "~> 2.3"
gem "bundler", "< 3.0"
gem "pry", "~> 0.13"
gem "rake", "< 14.0"
gem "rspec", "~> 3.10"
gem "rspec_junit_formatter", "~> 0.4"
gem "rspec-rails", ">= 6.1.0", "< 8.1"
gem "rubocop", "~> 1.12"
gem "rubocop-performance", "~> 1.10"
gem "rubocop-rails", "~> 2.10"
gem "rubocop-rake", "~> 0.5"
gem "rubocop-rspec", "~> 3.1"
gem "rubocop-thread_safety", "~> 0.4"
gem "simplecov", require: false
gem "rails", "~> 8.0.0"
gem "mysql2", "~> 0.5"

gemspec path: "../"
22 changes: 22 additions & 0 deletions gemfiles/rails_8_0_postgresql.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal", "~> 2.3"
gem "bundler", "< 3.0"
gem "pry", "~> 0.13"
gem "rake", "< 14.0"
gem "rspec", "~> 3.10"
gem "rspec_junit_formatter", "~> 0.4"
gem "rspec-rails", ">= 6.1.0", "< 8.1"
gem "rubocop", "~> 1.12"
gem "rubocop-performance", "~> 1.10"
gem "rubocop-rails", "~> 2.10"
gem "rubocop-rake", "~> 0.5"
gem "rubocop-rspec", "~> 3.1"
gem "rubocop-thread_safety", "~> 0.4"
gem "simplecov", require: false
gem "rails", "~> 8.0.0"
gem "pg", "~> 1.5"

gemspec path: "../"
22 changes: 22 additions & 0 deletions gemfiles/rails_8_0_sqlite3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal", "~> 2.3"
gem "bundler", "< 3.0"
gem "pry", "~> 0.13"
gem "rake", "< 14.0"
gem "rspec", "~> 3.10"
gem "rspec_junit_formatter", "~> 0.4"
gem "rspec-rails", ">= 6.1.0", "< 8.1"
gem "rubocop", "~> 1.12"
gem "rubocop-performance", "~> 1.10"
gem "rubocop-rails", "~> 2.10"
gem "rubocop-rake", "~> 0.5"
gem "rubocop-rspec", "~> 3.1"
gem "rubocop-thread_safety", "~> 0.4"
gem "simplecov", require: false
gem "rails", "~> 8.0.0"
gem "sqlite3", "~> 2.1"

gemspec path: "../"

0 comments on commit c3a2e73

Please sign in to comment.