sidecloq 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidecloq/job_enqueuer.rb +6 -2
- data/lib/sidecloq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f883de39a89d259da5f3e62123bcb34f7d801c
|
4
|
+
data.tar.gz: e5a6284e1859d2e7651f1c81387191bff4185296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c70f3ffac75553ce58fc011871622cdc60445557949d1989de0472d68de3d5b0369b909cecab1f77ccd120cc109a381ec7ca53bb7497028d2a6a318b8259fac
|
7
|
+
data.tar.gz: 1c308b4b2d3d2daae416970ef6592c3bef59696a2aa7c26a8966b2ac79eecd0a06c7034dcb02c7c38b6c44d5053ebea5cbb95213b85a80a565a1e18d530b8bf7
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module Sidecloq
|
2
2
|
class JobEnqueuer
|
3
|
-
attr_reader :spec
|
3
|
+
attr_reader :spec
|
4
4
|
|
5
5
|
def initialize(spec)
|
6
6
|
# Dup to prevent JID reuse in subsequent enqueue's
|
7
7
|
@spec = spec.dup
|
8
|
-
@
|
8
|
+
@spec['class'] = spec['class'].constantize
|
9
9
|
end
|
10
10
|
|
11
11
|
def enqueue
|
@@ -18,6 +18,10 @@ module Sidecloq
|
|
18
18
|
|
19
19
|
private unless $TESTING
|
20
20
|
|
21
|
+
def klass
|
22
|
+
spec['class']
|
23
|
+
end
|
24
|
+
|
21
25
|
def active_job_class?
|
22
26
|
defined?(ActiveJob::Base) && klass < ActiveJob::Base
|
23
27
|
end
|
data/lib/sidecloq/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidecloq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|