sidekiq-pauzer 1.1.0 → 2.1.0

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
  SHA256:
3
- metadata.gz: b31cb662c56453b04bebf1a887af9515aa0d86a74f9c9e0c6bb79513c499ed7e
4
- data.tar.gz: c57e7667afcabea723ffdb57f5ae38f53ab756c22f2952bb1344d660df806bd4
3
+ metadata.gz: 7bfbbdbcf00da656eb48a8dccb0807b68e8554f6a02c6ed54e954f19d0ddd46b
4
+ data.tar.gz: 4887f3d8e032f2a48327e4e40ded771cf8552620f82e6b2744ce0625b0d89369
5
5
  SHA512:
6
- metadata.gz: 5456887979763bf5c4c741fa2dec95c4454222f77d65f212f4472a68dd248880a7b18687a6df999d9c6c25291d01027c01c4fed4630948d579cd9f2174f8635e
7
- data.tar.gz: af94a161c39ff35abd29aa35a110c69d25144fd7b3d54b63bae65c64053694813e1eb7a8741e35182342b9e3c9b8de041290e8f46ffc3da6e34b6f489988365b
6
+ metadata.gz: 73d2a4ae6200e308e83052947614759ea3db81bf22d481d67ae2d4c83d6531aa1c267f0662e8e231c0bad4e5091d6e99e568ae16e8919af016b55f742d4f243e
7
+ data.tar.gz: ca0824fa84c56ef904cac670fe5ed43d1f90701c6983ca0710cfa5d71cb01dd9a05ceeed45c8d98c9c32eb4a03192eae19120bf1fd7c7ac8e86f09baaa33bb99
@@ -42,7 +42,7 @@ module Sidekiq
42
42
  end
43
43
 
44
44
  def excluding_paused(queues)
45
- queues - Pauzer.paused_queue_names.map { |name| "queue:#{name}" }
45
+ queues - Pauzer.paused_queues.map { |name| "queue:#{name}" }
46
46
  end
47
47
  end
48
48
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Pauzer
5
- VERSION = "1.1.0"
5
+ VERSION = "2.1.0"
6
6
  end
7
7
  end
@@ -78,24 +78,15 @@ module Sidekiq
78
78
 
79
79
  # @example
80
80
  # Sidekiq::Pauzer.pause!("minor")
81
- # Sidekiq::Pauzer.paused_queue_names # => ["minor"]
81
+ # Sidekiq::Pauzer.paused_queues # => ["minor"]
82
82
  #
83
83
  # @return [Array<String>]
84
- def paused_queue_names
84
+ def paused_queues
85
85
  @queues.to_a
86
86
  end
87
87
 
88
- # @deprecated Use {.paused_queue_names} instead.
89
- # Will be removed in ‹2.0.0›.
90
- #
91
- # @example
92
- # Sidekiq::Pauzer.pause!("minor")
93
- # Sidekiq::Pauzer.paused_queues # => ["queue:minor"]
94
- #
95
- # @return [Array<String>]
96
- def paused_queues
97
- @queues.map { |name| "queue:#{name}" }
98
- end
88
+ # @deprecated Use {.paused_queues}
89
+ alias paused_queue_names paused_queues
99
90
 
100
91
  # Yields `config` for a block.
101
92
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-pauzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Zapparov
@@ -66,9 +66,9 @@ licenses:
66
66
  - MIT
67
67
  metadata:
68
68
  homepage_uri: https://gitlab.com/ixti/sidekiq-pauzer
69
- source_code_uri: https://gitlab.com/ixti/sidekiq-pauzer/tree/v1.1.0
69
+ source_code_uri: https://gitlab.com/ixti/sidekiq-pauzer/tree/v2.1.0
70
70
  bug_tracker_uri: https://gitlab.com/ixti/sidekiq-pauzer/issues
71
- changelog_uri: https://gitlab.com/ixti/sidekiq-pauzer/blob/v1.1.0/CHANGES.md
71
+ changelog_uri: https://gitlab.com/ixti/sidekiq-pauzer/blob/v2.1.0/CHANGES.md
72
72
  rubygems_mfa_required: 'true'
73
73
  post_install_message:
74
74
  rdoc_options: []