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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca713b5c64f5029742e53350ccf0d36364611dc4a8341cd00e00b23f7f91b368
4
- data.tar.gz: 3134efc9c4480b1b911bdbf2c49a0d7ec0c3acb4eb07ebfd2d8aedd417268c79
3
+ metadata.gz: 9002e9de95db1dfd0ed4cc3ba4196dd3d10fd46b3c2e568e12af7b0d0aa75306
4
+ data.tar.gz: '079f6ce144775b86c7f1e2214595a9e87e984f80f6636a2f9923f8c574d9bb83'
5
5
  SHA512:
6
- metadata.gz: 34bc0fd00bd756d1f605b7b88c1af70d9876eee5ebf0e9beb8ec40131c5646d14f34dd556b775f926b14b615cf36ecbf00368c9250110aa7d02170bd9ad59927
7
- data.tar.gz: de674185db457535650503d9d05a34fcbfb0c71ea491036e6de2f40d77347fc9d8eeb8c27b330940fe6ffd8a3644a86091d573f44ba6e43784aae4ba1c3eef36
6
+ metadata.gz: 1903f31f88bda747999ac8cefc2e2a8f60bafe06225d9fa3ea7b12ffee16c6e09ffcd448494edf15dd8f81d5d9576db97c815dcd78ae6526e94a487a7e3d2e40
7
+ data.tar.gz: a9b711c88a06812acd66210633cda67e2af46abf8db3960ba184fc54e078de2c07f85e36884317c48eb7820ed9fa66e4b8432b99edbf787e8246f48039f101c4
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.9.0]
10
+
11
+ ### Added
12
+ - Adds rake tasks to list scheduled jobs as csv
13
+
9
14
  ## [0.8.1]
10
15
 
11
16
  ### Fixed
@@ -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
@@ -1,3 +1,3 @@
1
1
  module QueueBus
2
- VERSION = "0.8.1"
2
+ VERSION = "0.9.0"
3
3
  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.8.1
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-21 00:00:00.000000000 Z
11
+ date: 2019-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json