From a5da687b30d25f77113ed60efa6cc2f8009f77c9 Mon Sep 17 00:00:00 2001 From: Andrii Yaremchuk Date: Fri, 26 Jan 2024 15:55:28 +0200 Subject: [PATCH] Allows rails 7 with minor versions --- .github/workflows/ruby.yml | 2 +- Appraisals | 6 ++++++ crypt_keeper.gemspec | 4 ++-- gemfiles/activerecord_7_1.gemfile | 9 +++++++++ lib/crypt_keeper/version.rb | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 gemfiles/activerecord_7_1.gemfile diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index a437088..af5236c 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: ruby-version: [ '2.7', '3.0', '3.1'] - rails: ['5_0', '5_1', '5_2', '6_0', '6_1', '7_0'] + rails: ['5_0', '5_1', '5_2', '6_0', '6_1', '7_0', '7_1'] exclude: # exclude unsupported ruby versions: https://github.com/rails/rails/issues/40938 - ruby-version: '3.0' diff --git a/Appraisals b/Appraisals index aff8851..1fbe806 100644 --- a/Appraisals +++ b/Appraisals @@ -40,3 +40,9 @@ appraise "activerecord_7_0" do gem "activesupport", "~> 7.0.0" gem "pg", "~> 1.1" end + +appraise "activerecord_7_1" do + gem "activerecord", "~> 7.1.0" + gem "activesupport", "~> 7.1.0" + gem "pg", "~> 1.1" +end diff --git a/crypt_keeper.gemspec b/crypt_keeper.gemspec index c742ebd..1ad2b9b 100644 --- a/crypt_keeper.gemspec +++ b/crypt_keeper.gemspec @@ -18,8 +18,8 @@ Gem::Specification.new do |gem| gem.post_install_message = "WARNING: CryptKeeper 2.0 contains breaking changes and may require you to reencrypt your data! Please view the README at https://github.com/jmazzi/crypt_keeper for more information." - gem.add_runtime_dependency 'activerecord', '>= 4.2', '~> 7.0.0' - gem.add_runtime_dependency 'activesupport', '>= 4.2', '~> 7.0.0' + gem.add_runtime_dependency 'activerecord', '>= 4.2', '< 8' + gem.add_runtime_dependency 'activesupport', '>= 4.2', '< 8' gem.add_development_dependency 'rspec', '~> 3.5.0' gem.add_development_dependency 'guard', '~> 2.6.1' diff --git a/gemfiles/activerecord_7_1.gemfile b/gemfiles/activerecord_7_1.gemfile new file mode 100644 index 0000000..663bb1e --- /dev/null +++ b/gemfiles/activerecord_7_1.gemfile @@ -0,0 +1,9 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activerecord", "~> 7.1.0" +gem "activesupport", "~> 7.1.0" +gem "pg", "~> 1.1" + +gemspec :path => "../" diff --git a/lib/crypt_keeper/version.rb b/lib/crypt_keeper/version.rb index 90fd711..4d7709e 100644 --- a/lib/crypt_keeper/version.rb +++ b/lib/crypt_keeper/version.rb @@ -1,3 +1,3 @@ module CryptKeeper - VERSION = "2.3.0" + VERSION = "2.3.1" end