forked from bensheldon/good_job
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Rails 7.1 to test matrix (bensheldon#1105)
- Loading branch information
1 parent
61746c0
commit 413c2c6
Showing
4 changed files
with
171 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "activerecord-jdbcpostgresql-adapter", platforms: [:jruby] | ||
gem "appraisal" | ||
gem "matrix" | ||
gem "nokogiri" | ||
gem "pg", platforms: [:mri, :mingw, :x64_mingw] | ||
gem "rack", "~> 2.2" | ||
gem "rails", "~> 7.1.0" | ||
gem "capybara", "~> 3.36" | ||
gem "selenium-webdriver", "~> 4.0" | ||
|
||
platforms :ruby do | ||
gem "dotenv" | ||
gem "foreman" | ||
gem "gem-release" | ||
gem "github_changelog_generator", require: false | ||
gem "net-imap", require: false | ||
gem "net-pop", require: false | ||
gem "net-smtp", require: false | ||
|
||
group :debug do | ||
gem "activerecord-explain-analyze", require: false | ||
gem "pry-byebug" | ||
gem "rack-mini-profiler" | ||
gem "rbtrace" | ||
gem "stackprof" | ||
end | ||
|
||
group :lint do | ||
gem "easy_translate" | ||
gem "erb_lint" | ||
gem "i18n-tasks" | ||
gem "mdl" | ||
gem "rubocop" | ||
gem "rubocop-performance" | ||
gem "rubocop-rails" | ||
gem "rubocop-rspec" | ||
gem "sorbet" | ||
gem "sorbet-runtime" | ||
gem "spoom", require: false | ||
gem "tapioca", require: false | ||
end | ||
|
||
group :demo, :production do | ||
gem "skylight" | ||
end | ||
end | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
class ApplicationJob < ActiveJob::Base | ||
retry_on StandardError, wait: :exponentially_longer, attempts: Float::INFINITY | ||
POLYNOMIALLY_LONGER = if ActiveJob.gem_version >= Gem::Version.new("7.1.0.a") | ||
:polynomially_longer | ||
else | ||
:exponentially_longer | ||
end | ||
|
||
retry_on StandardError, wait: POLYNOMIALLY_LONGER, attempts: Float::INFINITY | ||
end | ||
|