acidic_job 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/acidic_job/mixin.rb +1 -1
- data/lib/acidic_job/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0caf8232d94c6dd6eef55378cdf0c57849601185978d04df8f1d2bd91aca04e4
|
4
|
+
data.tar.gz: 38ea54d622782ab400fff7c4929be3b77e382440c3de8fdbbf27954a1f5ca98d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75c909396867d246923c752d842a43d8a42328b5558bb0733a6e497096df8513e8cf8e8ca1923428fab4e9dc4394df129e543cb49ef512713e9ba1625f2a3741
|
7
|
+
data.tar.gz: 88755804b761f066a16232a2fd76c1307273112901869dc7f7984e9646816c5b65543c30e6da119838f1e32c8f1bb080f95367f5bda3ca2e58995e161aba33f4
|
data/Gemfile.lock
CHANGED
data/lib/acidic_job/mixin.rb
CHANGED
@@ -18,7 +18,7 @@ module AcidicJob
|
|
18
18
|
# You could unique job runs by the arguments passed to the job (e.g. memoization)
|
19
19
|
other.define_singleton_method(:acidic_by_job_arguments) { @acidic_identifier = :job_arguments }
|
20
20
|
# Or, you could unique jobs run by any logic you'd like using a block
|
21
|
-
other.define_singleton_method(:acidic_by) {
|
21
|
+
other.define_singleton_method(:acidic_by) { |proc = nil, &block| @acidic_identifier = proc || block }
|
22
22
|
|
23
23
|
# We add a callback to ensure that staged, non-workflow jobs are "finished" after they are "performed".
|
24
24
|
# This allows us to ensure that we can always inspect whether a run is finished and get correct data
|
data/lib/acidic_job/version.rb
CHANGED