raes 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/raes/stateless_job.rb +6 -7
- data/app/jobs/raes/subscribe_job.rb +1 -3
- data/lib/raes/version.rb +1 -1
- 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: 4791a22f8ccf6a76394e80553cc84d9c19e886ce9877c7727a0784d828b6f7a2
|
4
|
+
data.tar.gz: 7f1f19c2efc5e157008c92d94322f6551acddc69963e564698e9a1e9773f94e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 461b9e88954ab5056c80a8b051c74fcdd8c5b9bb6f3a1986ce959ac0d8b68a88dd261489119c4544147c18fdf1342b02aca6677d7b52ea3adab6e32162725084
|
7
|
+
data.tar.gz: ae00555bf5342322c17406aceddfb76de0de561f85f42e4841889e4972a411dd6947b13b5539ff1c6146924f11d1d4b310968856a67d2fba10db9d82e7e10bfd
|
@@ -3,14 +3,13 @@
|
|
3
3
|
module Raes
|
4
4
|
class StatelessJob < ApplicationJob
|
5
5
|
def perform(name, payload)
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
klass.call(payload.symbolize_keys)
|
12
|
-
end
|
6
|
+
klass = name.constantize
|
7
|
+
if klass.instance_method(:initialize).arity.zero?
|
8
|
+
klass.call
|
9
|
+
else
|
10
|
+
klass.call(payload.symbolize_keys)
|
13
11
|
end
|
12
|
+
|
14
13
|
GC.start
|
15
14
|
end
|
16
15
|
end
|
data/lib/raes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|