From becced147845137db45edaf9e11bf7874dd1e48a Mon Sep 17 00:00:00 2001 From: Rustam Sharshenov Date: Tue, 29 Oct 2024 13:49:39 +0000 Subject: [PATCH] Support ActiveJob 8.0 --- .github/workflows/main.yml | 11 +++++++++++ Appraisals | 4 ++++ CHANGELOG.md | 4 ++++ activejob-uniqueness.gemspec | 2 +- gemfiles/activejob_8.0.x.gemfile | 7 +++++++ 5 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 gemfiles/activejob_8.0.x.gemfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c50b2b..d9a4b5c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,6 +34,7 @@ jobs: - gemfiles/activejob_7.0.x.gemfile - gemfiles/activejob_7.1.x.gemfile - gemfiles/activejob_7.2.x.gemfile + - gemfiles/activejob_8.0.x.gemfile - gemfiles/sidekiq_4.x.gemfile - gemfiles/sidekiq_5.x.gemfile - gemfiles/sidekiq_6.x.gemfile @@ -45,6 +46,8 @@ jobs: gemfile: gemfiles/activejob_7.1.x.gemfile - ruby: 2.5.9 gemfile: gemfiles/activejob_7.2.x.gemfile + - ruby: 2.5.9 + gemfile: gemfiles/activejob_8.0.x.gemfile - ruby: 2.5.9 gemfile: gemfiles/sidekiq_6.x.gemfile - ruby: 2.5.9 @@ -55,6 +58,8 @@ jobs: gemfile: gemfiles/activejob_7.1.x.gemfile - ruby: 2.6.10 gemfile: gemfiles/activejob_7.2.x.gemfile + - ruby: 2.6.10 + gemfile: gemfiles/activejob_8.0.x.gemfile - ruby: 2.6.10 gemfile: gemfiles/sidekiq_6.x.gemfile - ruby: 2.6.10 @@ -63,6 +68,8 @@ jobs: gemfile: gemfiles/activejob_4.2.x.gemfile - ruby: 2.7.7 gemfile: gemfiles/activejob_7.2.x.gemfile + - ruby: 2.7.7 + gemfile: gemfiles/activejob_8.0.x.gemfile - ruby: 2.7.7 gemfile: gemfiles/sidekiq_4.x.gemfile - ruby: 3.0.5 @@ -71,6 +78,8 @@ jobs: gemfile: gemfiles/activejob_5.2.x.gemfile - ruby: 3.0.5 gemfile: gemfiles/activejob_7.2.x.gemfile + - ruby: 3.0.5 + gemfile: gemfiles/activejob_8.0.x.gemfile - ruby: 3.0.5 gemfile: gemfiles/sidekiq_4.x.gemfile - ruby: 3.0.5 @@ -81,6 +90,8 @@ jobs: gemfile: gemfiles/activejob_5.2.x.gemfile - ruby: 3.1.3 gemfile: gemfiles/activejob_6.0.x.gemfile + - ruby: 3.1.3 + gemfile: gemfiles/activejob_8.0.x.gemfile - ruby: 3.1.3 gemfile: gemfiles/sidekiq_4.x.gemfile - ruby: 3.1.3 diff --git a/Appraisals b/Appraisals index e75f051..da90931 100644 --- a/Appraisals +++ b/Appraisals @@ -28,6 +28,10 @@ appraise 'activejob-7.2.x' do gem 'activejob', '~> 7.2' end +appraise 'activejob-8.0.x' do + gem 'activejob', '>= 8.0.0.rc1', '< 8.1' +end + appraise 'sidekiq-4.x' do gem 'sidekiq', '~> 4.2' gem 'activejob', '~> 5.2' diff --git a/CHANGELOG.md b/CHANGELOG.md index b4ee1da..47da71e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased](https://github.com/veeqo/activejob-uniqueness/compare/v0.3.2...HEAD) +### Added + +- [#86](https://github.com/veeqo/activejob-uniqueness/pull/86) Add Rails 8.0 rc1 support by[@sharshenov](https://github.com/sharshenov) + ## [0.3.2](https://github.com/veeqo/activejob-uniqueness/compare/v0.3.1...v0.3.2) - 2024-08-16 ### Added diff --git a/activejob-uniqueness.gemspec b/activejob-uniqueness.gemspec index 82c251c..6e1c35a 100644 --- a/activejob-uniqueness.gemspec +++ b/activejob-uniqueness.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.5' - spec.add_dependency 'activejob', '>= 4.2', '< 7.3' + spec.add_dependency 'activejob', '>= 4.2', '< 8.1' spec.add_dependency 'redlock', '>= 2.0', '< 3' spec.add_development_dependency 'appraisal', '~> 2.3.0' diff --git a/gemfiles/activejob_8.0.x.gemfile b/gemfiles/activejob_8.0.x.gemfile new file mode 100644 index 0000000..42b4fb6 --- /dev/null +++ b/gemfiles/activejob_8.0.x.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activejob", ">= 8.0.0.rc1", "< 8.1" + +gemspec path: "../"