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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c73dd6bd124259db26618c2c0eed5bd40a9ceb1
4
- data.tar.gz: 36ef75ad200d7abbf7eed1773d1dc263210ff1c7
3
+ metadata.gz: 66f883de39a89d259da5f3e62123bcb34f7d801c
4
+ data.tar.gz: e5a6284e1859d2e7651f1c81387191bff4185296
5
5
  SHA512:
6
- metadata.gz: ff63b5d7ba0cf1a7a3315b1cbcfb401b486d6502b016ef0c6c3b2ab4cba76399711d5a12c762c198a8351afcbfa13052c8888714a5e77b07b86a10cb86257627
7
- data.tar.gz: 24ddacf36267fe8327c9024dd48b326e46dd356780bb878dd1acb38300725b63c50e9415240da697983e5e173260b2086bfc36378b6b4a651209738971abb511
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, :klass
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
- @klass = spec['class'].constantize
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
@@ -1,3 +1,3 @@
1
1
  module Sidecloq
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
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.0
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: 2017-09-07 00:00:00.000000000 Z
11
+ date: 2018-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq