sidekiq-unique-jobs 7.0.0.beta17 → 7.0.0.beta18

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq-unique-jobs might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8067646614ec63256a43cdbbf8c93779e4a39f7e9e4db493cdcc63a94d1ddf69
4
- data.tar.gz: f467363f7156b40c7b8d2e67f2e00b9df18fcde19831758c9aa272fed50b2570
3
+ metadata.gz: eb3027ef2ed3a7a9a35732783f58c8ea1b55052b6c10c6d8de9acb6e44df389a
4
+ data.tar.gz: ad1baf2e0ad2aa7813109e6cd96aacab888d1bdefb58bcc5b5e5561bbb02404c
5
5
  SHA512:
6
- metadata.gz: 15617caf4cc46f2dce4b27fc18e329712508d71c4f246d4348a376920664c849a4fddeddfe1b55e002ee91c9b9c835ab7cc6697942749ae81911b4d84db10a2a
7
- data.tar.gz: b035073d353309d2e9faab2cb84c521b06734fa01cf0854205c31045321f0c582aa87fd194d9516cff3d3e8e0b215a7a06bf3d49d0c50890f255473bf393fdf5
6
+ metadata.gz: 7c6f06b180fbedd9b17c46e0fac20c7d1729571f830e8c01ea3bc63418cec618d4cfe3c8baa52319923e041960d6504e91488d5f59b41f7b7fa5960635a6142d
7
+ data.tar.gz: 68e8314bb873315007aa6abe1fb6f8cdf132b76720ef7623329ddb46244dd8f275902aeceac3cdbf19f82dd3cd5b9de8dc6f57856199cbd1748c1c54ca4977f2
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v7.0.0.beta17](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.0.beta17) (2020-05-20)
4
+
5
+ [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v7.0.0.beta16...v7.0.0.beta17)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Try GitHub actions [\#505](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/505) ([mhenrixon](https://github.com/mhenrixon))
10
+
11
+ **Fixed bugs:**
12
+
13
+ - Deep stringify worker options to account for hash in on\_conflict [\#506](https://github.com/mhenrixon/sidekiq-unique-jobs/pull/506) ([jasonbekolay](https://github.com/jasonbekolay))
14
+
3
15
  ## [v7.0.0.beta16](https://github.com/mhenrixon/sidekiq-unique-jobs/tree/v7.0.0.beta16) (2020-05-19)
4
16
 
5
17
  [Full Changelog](https://github.com/mhenrixon/sidekiq-unique-jobs/compare/v6.0.22...v7.0.0.beta16)
@@ -10,6 +10,7 @@ module SidekiqUniqueJobs
10
10
  # Adds timeout, expiration, lock_args, lock_prefix and lock_digest to the sidekiq job hash
11
11
  # @return [Hash] the job hash
12
12
  def prepare(item)
13
+ stringify_on_conflict_hash(item)
13
14
  add_lock_timeout(item)
14
15
  add_lock_ttl(item)
15
16
  add_digest(item)
@@ -27,6 +28,13 @@ module SidekiqUniqueJobs
27
28
 
28
29
  private
29
30
 
31
+ def stringify_on_conflict_hash(item)
32
+ on_conflict = item[ON_CONFLICT]
33
+ return unless on_conflict.is_a?(Hash)
34
+
35
+ item[ON_CONFLICT] = on_conflict.deep_stringify_keys
36
+ end
37
+
30
38
  def add_lock_ttl(item)
31
39
  item[LOCK_TTL] = SidekiqUniqueJobs::LockTTL.calculate(item)
32
40
  end
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.0.0.beta17"
6
+ VERSION = "7.0.0.beta18"
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-unique-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0.beta17
4
+ version: 7.0.0.beta18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-20 00:00:00.000000000 Z
11
+ date: 2020-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpoplpush-redis_script