active_job_resque_solo 0.3.5 → 0.3.6

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: 7f7a625183f939325da58db5c523dd6f0af00582
4
- data.tar.gz: 000a2f1a139b0b19a2936d313e4da15d80baf9ad
3
+ metadata.gz: 8e576b269397dbeb89060ff9c61e5a69caa8ce1a
4
+ data.tar.gz: 062cc5191489c3ea3b9f72973ef2c6f2c6390e48
5
5
  SHA512:
6
- metadata.gz: 6b71ffc31e5a473eb226fe578cdb5c9970728d90e95f595e1076cf14605a0b765247bcd7c33066f0db92d46c336c668b09eb9cb665dea43a10a6ee92460d2bc2
7
- data.tar.gz: 40f9efe8a2e915abf5f62e230edbd0d84015b646afaff523ca200eff50aeaf507ec64c63e6606670c5b493e07081f9e292d942f5d5553cef16b7b6e76d872731
6
+ metadata.gz: 528d986523b13a9beeafdc2cf183c424ffce635be44f0711c6baa0cbbc3d93b496bdf92b037254e427ebe76f8160e2baed7996aaff7c24bcb2291be0227d0851
7
+ data.tar.gz: 77326de1b615f8b5db5532e93fcf37de4bf18bf15e5d2c03faf86fe8a76362e5ebfd1af7933dba1b2b005c771fa5885fb06bb7d36d387117629c4f85116cb592
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ # 0.3.6
2
+
3
+ * Fix bug that would allow duplicate enqueues of jobs that had no arguments.
4
+
1
5
  # 0.3.5
2
6
 
3
- Adds `solo_any_args` directive that will only allow one instance of a job class in the queue regardless of any arguments.
7
+ * Adds `solo_any_args` directive that will only allow one instance of a job class in the queue regardless of any arguments.
4
8
 
5
9
  # 0.3.4
6
10
 
@@ -80,6 +80,7 @@ module ActiveJob
80
80
  def job_with_args_eq?(job_class, job_arguments, wrapper_args)
81
81
  return false if wrapper_args['job_class'] != job_class
82
82
  encoded_arguments = wrapper_args['arguments']
83
+ encoded_arguments = [] if encoded_arguments.nil?
83
84
  encoded_arguments = job_args(encoded_arguments)
84
85
  encoded_arguments == job_arguments
85
86
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveJobResqueSolo
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_job_resque_solo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phillip Kinkade
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-22 00:00:00.000000000 Z
11
+ date: 2017-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails