From 1666b3f5e3ee41687df66399857c55b891e2dbad Mon Sep 17 00:00:00 2001 From: Fernando Menolli Date: Fri, 21 Jun 2024 16:23:56 -0300 Subject: [PATCH 1/2] added support to rails 8.0 --- .github/workflows/ci.yml | 3 +++ Appraisals | 7 +++++++ audited.gemspec | 6 +++--- gemfiles/rails80.gemfile | 10 ++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 gemfiles/rails80.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 892ca86a..bc52386f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: - rails61 - rails70 - rails71 + - rails80 db: [POSTGRES, MYSQL, SQLITE] exclude: # MySQL has issues on Ruby 2.3 @@ -78,6 +79,8 @@ jobs: ruby: 2.5 - appraisal: rails71 ruby: 2.6 + - appraisal: rails80 + ruby: 2.6 services: postgres: diff --git a/Appraisals b/Appraisals index e724b7b4..7cfda3f7 100644 --- a/Appraisals +++ b/Appraisals @@ -55,3 +55,10 @@ appraise "rails71" do gem "pg", ">= 1.1" gem "sqlite3", ">= 1.4" end + +appraise "rails80" do + gem "rails", ">= 7.1.0.beta1", "< 8.0" + gem "mysql2", ">= 0.4.4" + gem "pg", ">= 1.1" + gem "sqlite3", ">= 1.4" +end diff --git a/audited.gemspec b/audited.gemspec index 1f52c860..bc1b17ff 100644 --- a/audited.gemspec +++ b/audited.gemspec @@ -16,11 +16,11 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.3.0" - gem.add_dependency "activerecord", ">= 5.2", "< 7.2" - gem.add_dependency "activesupport", ">= 5.2", "< 7.2" + gem.add_dependency "activerecord", ">= 5.2", "< 8.0" + gem.add_dependency "activesupport", ">= 5.2", "< 8.0" gem.add_development_dependency "appraisal" - gem.add_development_dependency "rails", ">= 5.2", "< 7.2" + gem.add_development_dependency "rails", ">= 5.2", "< 8.0" gem.add_development_dependency "rspec-rails" gem.add_development_dependency "standard" gem.add_development_dependency "single_cov" diff --git a/gemfiles/rails80.gemfile b/gemfiles/rails80.gemfile new file mode 100644 index 00000000..0a86ef23 --- /dev/null +++ b/gemfiles/rails80.gemfile @@ -0,0 +1,10 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rails", ">= 7.1.0.beta1", "< 8.0" +gem "mysql2", ">= 0.4.4" +gem "pg", ">= 1.1" +gem "sqlite3", ">= 1.4" + +gemspec name: "audited", path: "../" From 471de35e0fa57b5edb4af23e142715c0be6c0cd8 Mon Sep 17 00:00:00 2001 From: Fernando Menolli Date: Fri, 21 Jun 2024 16:33:19 -0300 Subject: [PATCH 2/2] correct version --- Appraisals | 2 +- audited.gemspec | 6 +++--- gemfiles/rails80.gemfile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Appraisals b/Appraisals index 7cfda3f7..4035e37c 100644 --- a/Appraisals +++ b/Appraisals @@ -57,7 +57,7 @@ appraise "rails71" do end appraise "rails80" do - gem "rails", ">= 7.1.0.beta1", "< 8.0" + gem "rails", ">= 7.1.0.beta1", "< 8.1" gem "mysql2", ">= 0.4.4" gem "pg", ">= 1.1" gem "sqlite3", ">= 1.4" diff --git a/audited.gemspec b/audited.gemspec index bc1b17ff..8257f8b2 100644 --- a/audited.gemspec +++ b/audited.gemspec @@ -16,11 +16,11 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.3.0" - gem.add_dependency "activerecord", ">= 5.2", "< 8.0" - gem.add_dependency "activesupport", ">= 5.2", "< 8.0" + gem.add_dependency "activerecord", ">= 5.2", "< 8.1" + gem.add_dependency "activesupport", ">= 5.2", "< 8.1" gem.add_development_dependency "appraisal" - gem.add_development_dependency "rails", ">= 5.2", "< 8.0" + gem.add_development_dependency "rails", ">= 5.2", "< 8.1" gem.add_development_dependency "rspec-rails" gem.add_development_dependency "standard" gem.add_development_dependency "single_cov" diff --git a/gemfiles/rails80.gemfile b/gemfiles/rails80.gemfile index 0a86ef23..8da34e57 100644 --- a/gemfiles/rails80.gemfile +++ b/gemfiles/rails80.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "rails", ">= 7.1.0.beta1", "< 8.0" +gem "rails", ">= 7.1.0.beta1", "< 8.1" gem "mysql2", ">= 0.4.4" gem "pg", ">= 1.1" gem "sqlite3", ">= 1.4"