acidic_job 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/acidic_job/version.rb +1 -1
- data/lib/acidic_job.rb +15 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 84a76328fcff18be9e2302440dc2bc7284764ba94737fbf5044c9d7111902fa9
|
|
4
|
+
data.tar.gz: 49f793646313f1d7373913dfbb745ec94e644472031b77eda41b49d622a4290f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f61806e50dcae6c26a22e2cea13205f62f28a768c6642b20417cc1f12a5a6a04880c366cf0530bea68a8d51707caef54be9aefb7ef630e7b41dcff3e252d6369
|
|
7
|
+
data.tar.gz: a83e16a9bd2838df358e78d1d6a5eaebd94829e9f56241ec4b99763f92b319918954960a285f9a1475fc5321f6b8cf1fc8c2f38215245563eecd3ef391992c2c
|
data/Gemfile.lock
CHANGED
data/lib/acidic_job/version.rb
CHANGED
data/lib/acidic_job.rb
CHANGED
|
@@ -15,15 +15,25 @@ require "active_support/concern"
|
|
|
15
15
|
module AcidicJob
|
|
16
16
|
extend ActiveSupport::Concern
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
attr_reader :key
|
|
20
|
-
attr_accessor :arguments_for_perform
|
|
18
|
+
def self.wire_everything_up(klass)
|
|
19
|
+
klass.attr_reader :key
|
|
20
|
+
klass.attr_accessor :arguments_for_perform
|
|
21
21
|
|
|
22
22
|
# Extend ActiveJob with `perform_transactionally` class method
|
|
23
|
-
include PerformTransactionallyExtension
|
|
23
|
+
klass.include PerformTransactionallyExtension
|
|
24
24
|
|
|
25
25
|
# Ensure our `perform` method always runs first to gather parameters
|
|
26
|
-
prepend PerformWrapper
|
|
26
|
+
klass.prepend PerformWrapper
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
included do
|
|
30
|
+
AcidicJob.wire_everything_up(self)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
class_methods do
|
|
34
|
+
def inherited(subclass)
|
|
35
|
+
AcidicJob.wire_everything_up(subclass)
|
|
36
|
+
end
|
|
27
37
|
end
|
|
28
38
|
|
|
29
39
|
# Number of seconds passed which we consider a held idempotency key lock to be
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acidic_job
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- fractaledmind
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-09-
|
|
11
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|