sidekiq-unique-jobs 3.0.1 → 3.0.2

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
  SHA1:
3
- metadata.gz: 00887f13a1ac00f86bf1eb51c3ba8aaa231907c7
4
- data.tar.gz: dfb021d98a405c372f668ac21ed0693e3989fe16
3
+ metadata.gz: f8c45fa6d6faaedc2eb3df2cb7adf815542acfad
4
+ data.tar.gz: adba5484ba2d2162db6cbf04bb3c73527c44cfa7
5
5
  SHA512:
6
- metadata.gz: 4a4a08153027e4a057e8ed629b0a80451188bd29a232f9075dce6a00e5b876f60e332e27fc2623e43fdcffecfd3f305ef3faa524de3b7a0d35061694f050e3bb
7
- data.tar.gz: 9103f93d5c224044d2c28e3fb9f58c900cd88b43efb5983c7c83fc8deb9ed4d9129d1213b0da1b2575f8d50242dd6432273c4c7ffe6c7d3f6387ac99af1753b3
6
+ metadata.gz: 24640f6eaa634d5b6aa0bcc0e532e72a9d255e4b71035527ec5edc0bc76d890c7ce1b50962ce74b6e114d02106d9913c0d88844a8172f32e0c47b579c5faa627
7
+ data.tar.gz: 5db2d29daa350d4b7427bf90a5728b0ce57753bb907e176b9a65546fc2c39c2bbb37b9d0dde299b02bcc6be0f63183eaa19503a0a96586318a009d1acc836c13
@@ -12,6 +12,7 @@ module SidekiqUniqueJobs
12
12
  @item = item
13
13
 
14
14
  if unique_enabled?
15
+ @item['unique_hash'] = payload_hash
15
16
  yield if unique?
16
17
  else
17
18
  yield
@@ -1,3 +1,3 @@
1
1
  module SidekiqUniqueJobs
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
@@ -17,6 +17,14 @@ describe "When Sidekiq::Testing is enabled" do
17
17
  UniqueWorker.perform_async(param)
18
18
  expect(UniqueWorker.jobs.size).to eq(1)
19
19
  end
20
+
21
+ it "adds the unique_hash to the message" do
22
+ param = 'hash'
23
+ hash = SidekiqUniqueJobs::PayloadHelper.get_payload(UniqueWorker, :working, [param])
24
+ UniqueWorker.perform_async(param)
25
+ expect(UniqueWorker.jobs.size).to eq(1)
26
+ expect(UniqueWorker.jobs.first['unique_hash']).to eq(hash)
27
+ end
20
28
  end
21
29
 
22
30
  context "with non-unique worker" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-unique-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson