Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added support for rails 8 #305

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: "../"