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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/queue_bus/task_manager.rb +7 -0
- data/lib/queue_bus/tasks.rb +2 -1
- data/lib/queue_bus/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd2c3c4cf461b366bb64ad3581a0c51273cee8c21b44bcb2f21a56237d88441c
|
4
|
+
data.tar.gz: 03f6bba824e6d5e0fb79315228bb624324886f635b2cdc60cd70684e9d36f9d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|
data/lib/queue_bus/tasks.rb
CHANGED
@@ -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
|
data/lib/queue_bus/version.rb
CHANGED
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.
|
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:
|
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.
|
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:
|