queue-bus 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48a236d7a44dafb099dc3d36e5f34e4a1f065d47fa76b3be1a7465ae8533773b
4
- data.tar.gz: c2e6cffeba50ae36e13c8c417f43c7b9f18ff09772c4fd3ffd48e2784a80d5d9
3
+ metadata.gz: bd2c3c4cf461b366bb64ad3581a0c51273cee8c21b44bcb2f21a56237d88441c
4
+ data.tar.gz: 03f6bba824e6d5e0fb79315228bb624324886f635b2cdc60cd70684e9d36f9d6
5
5
  SHA512:
6
- metadata.gz: 7c3ba54737925161ec4c658864a7badd08f58400e246f31ee31a2aef7a6347005f073f62c2a3874aaf4e64f11a3da7f0a2fff322997e0a99da9b7901079e320a
7
- data.tar.gz: 26b7011be9db57d5f2c93f397fda77374f8aa34fa097efc93d3831ce1832a3c1e12913433e507cf2c8e5c1057178e71b08a3fdbcee68fe382597b8bd3828f603
6
+ metadata.gz: '05269bf6c20d7911cd873be360d0c7e970f0e2d8fb08a8815faf01f52a9f0ba2dff372aaa9417daeff99ce6351f3c2b2039754e8e0f7c13e9b43a38242c052fb'
7
+ data.tar.gz: 30e65bd3dea0117673fb2a9df44286d00566632a93f84b9182996f671ffb74415f07970df93c819f6a83a13bad4f5ee5cf2d72e1dbc68ba6081ee6fab9bd661d
data/CHANGELOG.md CHANGED
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.13.3]
10
+ - modifies `queuebus:unsubscribe` to decommission only the specified application when passed exactly one argument.
11
+
9
12
  ## [0.13.2]
10
13
 
11
14
  ### Fixes
@@ -31,6 +31,13 @@ module QueueBus
31
31
  log " ...done"
32
32
  end
33
33
 
34
+ def unsubscribe_app!(app_key)
35
+ log "Removing all subscriptions for #{app_key}"
36
+ app = ::QueueBus::Application.new(app_key)
37
+ app.unsubscribe
38
+ log " ...done"
39
+ end
40
+
34
41
  def unsubscribe!
35
42
  count = 0
36
43
  ::QueueBus.dispatchers.each do |dispatcher|
@@ -20,8 +20,9 @@ namespace :queuebus do
20
20
 
21
21
  if app_key && queue
22
22
  manager.unsubscribe_queue!(app_key, queue)
23
+ elsif app_key
24
+ manager.unsubscribe_app!(app_key)
23
25
  else
24
- manager = ::QueueBus::TaskManager.new(true)
25
26
  count = manager.unsubscribe!
26
27
  puts "No subscriptions unsubscribed" if count == 0
27
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QueueBus
4
- VERSION = '0.13.2'
4
+ VERSION = '0.13.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queue-bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Leonard
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-17 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -159,7 +159,7 @@ files:
159
159
  homepage: ''
160
160
  licenses: []
161
161
  metadata: {}
162
- post_install_message:
162
+ post_install_message:
163
163
  rdoc_options: []
164
164
  require_paths:
165
165
  - lib
@@ -174,8 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubygems_version: 3.0.3
178
- signing_key:
177
+ rubygems_version: 3.2.33
178
+ signing_key:
179
179
  specification_version: 4
180
180
  summary: A simple event bus on top of background queues
181
181
  test_files: