From 466bfb3698fc43b5a5e5faec6f1f7189a9c9cd4b Mon Sep 17 00:00:00 2001 From: Luciano Maiwald Date: Wed, 27 Mar 2024 10:31:46 +0100 Subject: [PATCH] Relax rails version constraint to include 7, add appraisals --- .github/workflows/test_and_lint.yml | 5 +++++ Appraisals | 8 ++++++++ README.md | 2 +- gemfiles/rails_7.0.gemfile | 17 +++++++++++++++++ gemfiles/rails_7.1.gemfile | 17 +++++++++++++++++ permanent_records.gemspec | 4 ++-- 6 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 gemfiles/rails_7.0.gemfile create mode 100644 gemfiles/rails_7.1.gemfile diff --git a/.github/workflows/test_and_lint.yml b/.github/workflows/test_and_lint.yml index 3d4a0bd..7379fc7 100644 --- a/.github/workflows/test_and_lint.yml +++ b/.github/workflows/test_and_lint.yml @@ -12,15 +12,20 @@ jobs: - 2.7.8 - 3.0.6 - 3.1.4 + - 3.2.3 appraisal: - rails-5.2 - rails-6.0 - rails-6.1 + - rails-7.0 + - rails-7.1 exclude: - ruby: 3.0.6 appraisal: rails-5.2 - ruby: 3.1.4 appraisal: rails-5.2 + - ruby: 3.2.3 + appraisal: rails-5.2 steps: - name: Install system dependencies run: sudo apt-get install -y libsqlite3-dev diff --git a/Appraisals b/Appraisals index cb851bb..7bf145f 100644 --- a/Appraisals +++ b/Appraisals @@ -11,3 +11,11 @@ end appraise 'rails-6.1' do gem 'rails', '6.1.7.7' end + +appraise 'rails-7.0' do + gem 'rails', '7.0.8.1' +end + +appraise 'rails-7.1' do + gem 'rails', '7.1.3.2' +end diff --git a/README.md b/README.md index 78b909f..ec7082f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# PermanentRecords (Rails 5.2, 6.0, 6.1) +# PermanentRecords [http://github.com/JackDanger/permanent_records/](http://github.com/JackDanger/permanent_records/) diff --git a/gemfiles/rails_7.0.gemfile b/gemfiles/rails_7.0.gemfile new file mode 100644 index 0000000..b9eaf42 --- /dev/null +++ b/gemfiles/rails_7.0.gemfile @@ -0,0 +1,17 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "database_cleaner", ">= 1.5.1" +gem "pry-byebug" +gem "rake" +gem "rspec", ">= 3.5.0" +gem "rubocop" +gem "rubocop-performance" +gem "rubocop-rake" +gem "rubocop-rspec" +gem "sqlite3" +gem "rails", "7.0.8.1" + +gemspec path: "../" diff --git a/gemfiles/rails_7.1.gemfile b/gemfiles/rails_7.1.gemfile new file mode 100644 index 0000000..4e64224 --- /dev/null +++ b/gemfiles/rails_7.1.gemfile @@ -0,0 +1,17 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal" +gem "database_cleaner", ">= 1.5.1" +gem "pry-byebug" +gem "rake" +gem "rspec", ">= 3.5.0" +gem "rubocop" +gem "rubocop-performance" +gem "rubocop-rake" +gem "rubocop-rspec" +gem "sqlite3" +gem "rails", "7.1.3.2" + +gemspec path: "../" diff --git a/permanent_records.gemspec b/permanent_records.gemspec index 5d0f004..98bd47e 100644 --- a/permanent_records.gemspec +++ b/permanent_records.gemspec @@ -23,6 +23,6 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.7.8' - s.add_runtime_dependency 'activerecord', ['>= 5.2', '< 7'] - s.add_runtime_dependency 'activesupport', ['>= 5.2', '< 7'] + s.add_runtime_dependency 'activerecord', '>= 5.2' + s.add_runtime_dependency 'activesupport', '>= 5.2' end