queue-bus 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/queue_bus/tasks.rb +11 -0
- data/lib/queue_bus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9002e9de95db1dfd0ed4cc3ba4196dd3d10fd46b3c2e568e12af7b0d0aa75306
|
4
|
+
data.tar.gz: '079f6ce144775b86c7f1e2214595a9e87e984f80f6636a2f9923f8c574d9bb83'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1903f31f88bda747999ac8cefc2e2a8f60bafe06225d9fa3ea7b12ffee16c6e09ffcd448494edf15dd8f81d5d9576db97c815dcd78ae6526e94a487a7e3d2e40
|
7
|
+
data.tar.gz: a9b711c88a06812acd66210633cda67e2af46abf8db3960ba184fc54e078de2c07f85e36884317c48eb7820ed9fa66e4b8432b99edbf787e8246f48039f101c4
|
data/CHANGELOG.md
CHANGED
data/lib/queue_bus/tasks.rb
CHANGED
@@ -24,6 +24,17 @@ namespace :queuebus do
|
|
24
24
|
puts queues.join(", ")
|
25
25
|
end
|
26
26
|
|
27
|
+
desc "list time based subscriptions"
|
28
|
+
task :list_scheduled => [ :preload ] do
|
29
|
+
scheduled_list = QueueBus::Application.all.flat_map do |app|
|
30
|
+
app.send(:subscriptions).all
|
31
|
+
.select { |s| s.matcher.filters['bus_event_type'] == 'heartbeat_minutes' }
|
32
|
+
end
|
33
|
+
scheduled_text_list = scheduled_list.collect { |e| [ e.key, e.matcher.filters['hour'] || "*", e.matcher.filters['minute'] || "*" ] }
|
34
|
+
puts 'key, hour, minute'
|
35
|
+
puts scheduled_text_list.sort_by { |(_, hour, minute)| [hour.to_i, minute.to_i] }.map(&:to_csv)
|
36
|
+
end
|
37
|
+
|
27
38
|
# Preload app files if this is Rails
|
28
39
|
# you can also do this to load the right things
|
29
40
|
task :preload do
|
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Leonard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|