Skip to content

Commit

Permalink
Rails 7.2 support (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
jturkel authored Aug 29, 2024
1 parent bcb1df3 commit eb0869c
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 22 deletions.
22 changes: 14 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ version: 2.1
jobs:
lint:
docker:
- image: cimg/ruby:3.0.6
- image: cimg/ruby:3.0.7
environment:
BUNDLE_GEMFILE: gemfiles/rails_6.1.gemfile
working_directory: ~/delayed_job_groups
steps:
- checkout
- restore_cache:
keys:
- v1-gems-ruby-3.0.6-{{ checksum "delayed_job_groups.gemspec" }}-{{ checksum "Gemfile" }}
- v1-gems-ruby-3.0.6-
- v1-gems-ruby-3.0.7-{{ checksum "delayed_job_groups.gemspec" }}-{{ checksum "gemfiles/rails_6.1.gemfile" }}
- v1-gems-ruby-3.0.7-
- run:
name: Install Gems
command: |
Expand All @@ -18,7 +20,7 @@ jobs:
bundle clean
fi
- save_cache:
key: v1-gems-ruby-3.0.6-{{ checksum "delayed_job_groups.gemspec" }}-{{ checksum "Gemfile" }}
key: v1-gems-ruby-3.0.7-{{ checksum "delayed_job_groups.gemspec" }}-{{ checksum "gemfiles/rails_6.1.gemfile" }}
paths:
- "vendor/bundle"
- "gemfiles/vendor/bundle"
Expand Down Expand Up @@ -72,8 +74,12 @@ workflows:
- gemfiles/rails_6.1.gemfile
- gemfiles/rails_7.0.gemfile
- gemfiles/rails_7.1.gemfile
- gemfiles/rails_7.2.gemfile
ruby_version:
- 3.0.6
- 3.1.4
- 3.2.2
- 3.3.0
- 3.0.7
- 3.1.6
- 3.2.5
- 3.3.4
exclude:
- gemfile: gemfiles/rails_7.2.gemfile
ruby_version: 3.0.7
19 changes: 13 additions & 6 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# frozen_string_literal: true

appraise 'rails-6.1' do
gem 'activerecord', '~> 6.1.5'
gem 'activesupport', '~> 6.1.5'
gem 'activerecord', '~> 6.1.7'
gem 'activesupport', '~> 6.1.7'
gem 'sqlite3', '~> 1.7'
end

appraise 'rails-7.0' do
gem 'activerecord', '~> 7.0.2'
gem 'activesupport', '~> 7.0.2'
gem 'activerecord', '~> 7.0.8'
gem 'activesupport', '~> 7.0.8'
gem 'sqlite3', '~> 1.7'
end

appraise 'rails-7.1' do
gem 'activerecord', '~> 7.1.1'
gem 'activesupport', '~> 7.1.1'
gem 'activerecord', '~> 7.1.4'
gem 'activesupport', '~> 7.1.4'
end

appraise 'rails-7.2' do
gem 'activerecord', '~> 7.2.1'
gem 'activesupport', '~> 7.2.1'
end
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.11.0
- Add support for Rails 7.2.
-
## 0.10.1
- Fix Rails 7.1 deprecation warnings

Expand Down
2 changes: 1 addition & 1 deletion delayed_job_groups.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 3.0'

spec.add_dependency 'activerecord', '>= 6.1', '< 7.2'
spec.add_dependency 'activerecord', '>= 6.1', '< 8.0'
spec.add_dependency 'delayed_job', '>= 4.1'
spec.add_dependency 'delayed_job_active_record', '>= 4.1.8'

Expand Down
5 changes: 3 additions & 2 deletions gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

source "https://rubygems.org"

gem "activerecord", "~> 6.1.5"
gem "activesupport", "~> 6.1.5"
gem "activerecord", "~> 6.1.7"
gem "activesupport", "~> 6.1.7"
gem "sqlite3", "~> 1.7"

gemspec path: "../"
5 changes: 3 additions & 2 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

source "https://rubygems.org"

gem "activerecord", "~> 7.0.2"
gem "activesupport", "~> 7.0.2"
gem "activerecord", "~> 7.0.8"
gem "activesupport", "~> 7.0.8"
gem "sqlite3", "~> 1.7"

gemspec path: "../"
4 changes: 2 additions & 2 deletions gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gem "activerecord", "~> 7.1.1"
gem "activesupport", "~> 7.1.1"
gem "activerecord", "~> 7.1.4"
gem "activesupport", "~> 7.1.4"

gemspec path: "../"
8 changes: 8 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 7.2.1"
gem "activesupport", "~> 7.2.1"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/delayed/job_groups/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Delayed
module JobGroups
VERSION = '0.10.1'
VERSION = '0.11.0'
end
end

0 comments on commit eb0869c

Please sign in to comment.