sidekiq_toolbelt 0.1.2 → 0.1.3

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: 79a0fab0493ff458370130b9a876146da13cebe6
4
- data.tar.gz: 4b095d4deb8d8bd96a88aa95065f8dfc201465d4
3
+ metadata.gz: 9cabf4b08c265f81ae2d37c010bea4095e6c2148
4
+ data.tar.gz: 24dfad92a631d6e7d8e1a6b83e3c37548043f841
5
5
  SHA512:
6
- metadata.gz: 2b3b405b0231cacc1681b3899de2c275ac63946bf2ed6988a251a830b2b4df8126940f3aca44be9a4665151f7dfdde1efc3628af31aa0408c72667816bdcc36b
7
- data.tar.gz: 830b6ed34d9f04559d6adfc685b1bdbf977feab1be98bae40266713f16ada6f75e086fe152beeb902e8ba9cb2298df87c8670f867b9cd413f337724554fa3de1
6
+ metadata.gz: 606e5c2dcb2367e7fb694ad6ecbeb03bec73610daddf41991a6a6db67fbe4419c74f32ef87d640ca448a7800385a42761b071aab29167866e7c0e41e59136bcd
7
+ data.tar.gz: 6f896f84ae76a8ec6ae9c72a1f0afe9996cf0af864665dea861a128593fe72f4b6d4f267ce162ccc2f56feeec8a204e8f0c23cfda718019d6661db4df50bb035
@@ -17,9 +17,9 @@ module SidekiqToolbelt
17
17
  pp counts.sort_by {|k,v| -v}.to_h
18
18
  end
19
19
 
20
- def kill(job, queue: :default)
20
+ def kill(job_name, queue: :default)
21
21
  Sidekiq::Queue.new(queue).each do |job|
22
- job.delete if job.klass.starts_with?(job)
22
+ job.delete if job.klass.starts_with?(job_name)
23
23
  end
24
24
  end
25
25
 
@@ -29,9 +29,9 @@ module SidekiqToolbelt
29
29
  end
30
30
  end
31
31
 
32
- def kill_retries(job)
32
+ def kill_retries(job_name)
33
33
  Sidekiq::RetrySet.new.each do |job|
34
- job.delete if job.klass.starts_with?(job)
34
+ job.delete if job.klass.starts_with?(job_name)
35
35
  end
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  module SidekiqToolbelt
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_toolbelt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Albertson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler