anachronic 0.42.4 → 0.42.6
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/anachronic.rb +1 -0
- data/lib/anachronic/executors/application_job.rb +10 -11
- data/lib/anachronic/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: a94b2596cc6701797823e11d54f2033cf761befcd3bc7b02a698971b76e15fac
|
4
|
+
data.tar.gz: 14d03b753290f1aa7a8aba961e7bc26ad7e399413b7212897da1c2ea201844f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 692188099eb895cdb4e46511dbf67fe5faedd78973193aa1d56eb4157091ab45b52301dea34ffb39352ebe2732575b4af2985c9d17cd3e99378c4cee1d343093
|
7
|
+
data.tar.gz: 16d009f6e1054d8e4757538f20fb42cf0f8387cd71392aad10cc83ee133f4c1f3482d2127a0d1df28a0b179b825939973d3b770e15054bd20c26c6a75579dbe7
|
data/Gemfile.lock
CHANGED
data/lib/anachronic.rb
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Anachronic
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
module Executors
|
5
|
+
class ApplicationJob
|
6
|
+
def self.call(instance, method, *args)
|
7
|
+
default_executor.perform_later(instance, method, *args)
|
8
|
+
end
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
end
|
10
|
+
def self.default_executor
|
11
|
+
@default_executor ||= begin
|
12
|
+
Class.new(ApplicationJob) do
|
13
|
+
def perform_later(instance, method, *args)
|
14
|
+
instance.public_send(method, *args)
|
16
15
|
end
|
17
16
|
end
|
18
17
|
end
|
data/lib/anachronic/version.rb
CHANGED