-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing: ActiveJob, and support for other queue adapters (#18)
* Add new ActiveJobs to replace DJs * Fix test error (wasn't resolving constant for me) * Enqueue ActiveJob instead of DJ (+spec coverage) * Remove 'enqueue' abstraction since it doesn't really map to AJs * Enable appraisal when running top-level rake * Rework README to be more adapter-agnostic (as long as it's DB-backed, i.e. supports cotransactionality!) * Raise an exception in production unless the queue adapter is supported * Decouple entirely from delayed_job dependency * No need for binding.pry when we have binding.irb * Remove unused file * Switch to sqlite3 in-memory DB for testing * Trim down deps - railties, activejob, activerecord * Increment version to 3.0.0 * Regenerate coach config (no more postgres DB) * Remove unused sprockets test dep * Mention priority support being only Rails 6+ * Apply README suggestion Co-authored-by: Sam Moore <sam.moore@hey.com> * Push queue adapter safety check out until after initialization Co-authored-by: Sam Moore <sam.moore@hey.com>
- Loading branch information
Showing
34 changed files
with
529 additions
and
306 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 +1,15 @@ | ||
appraise 'rails-5-1' do | ||
gem 'rails', '~> 5.1.0' | ||
gem 'railties', '~> 5.1.0' | ||
end | ||
|
||
appraise 'rails-5-2' do | ||
gem 'rails', '~> 5.2.0' | ||
gem 'railties', '~> 5.2.0' | ||
end | ||
|
||
appraise 'rails-6-0' do | ||
gem 'rails', '~> 6.0.0' | ||
gem 'railties', '~> 6.0.0' | ||
end | ||
|
||
appraise 'rails-6-1' do | ||
gem 'railties', '~> 6.1.0' | ||
end |
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,4 @@ | ||
module Journaled | ||
class ApplicationJob < Journaled.job_base_class_name.constantize | ||
end | ||
end |
Oops, something went wrong.