kennel 1.153.0 → 1.154.0

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: 494943be7e89773e54b07cafc41725e946bbc2c4038315ce21b123515c4561de
4
- data.tar.gz: f9ae76c8cc4a83d04f41c44abb4eb8fee2aefc85f60ee6376de1fcd8e639cdee
3
+ metadata.gz: 2beb6fcf1718d24f82ba5ac797374a416ff8b01b7d501680deb88be0a1344176
4
+ data.tar.gz: 79e0b70d6106390596317c587b72391ddc4f074423828de974afdf2b82cc4174
5
5
  SHA512:
6
- metadata.gz: 156d4655d75c82ddac1ac80dad4cd1d480c3a7c277c1bcc115a887c7c6d6b653daf7f73deaa7e42fc46a0a79e1bbc2102acb7e4ffa86c08ab7ce14cbdd9270e9
7
- data.tar.gz: fde6bf6493035c908ada35545f4666cf7a7c81090dfef315384180d904f6c904d13dc4e5f47c84b33d21d21bfd851efd4e70542c22a19fdc96233898284552f3
6
+ metadata.gz: e4f0a7f72f2a15630ec60318993d08206be1014914c3795ae80385301e9a2c16d6232e06f84a120899dbaba71459e60fb69d603a963b4f0897024c107a9b9bbf
7
+ data.tar.gz: b9e19c9620288e9d7262a51f547870c35288769e4833484e3bad00ad689a3c3d779ac4c96ea1a77400390a94b7f87490f4a715e243d62a552c6311219e84ba26
@@ -141,8 +141,9 @@ module Kennel
141
141
  options[:renotify_statuses] = statuses
142
142
  end
143
143
 
144
- # for events: on_missing_data cannot be used with notify_no_data or no_data_timeframe
145
- if data.fetch(:type) == "event-v2 alert"
144
+ # on_missing_data cannot be used with notify_no_data or no_data_timeframe
145
+ # TODO migrate everything to only use on_missing_data
146
+ if data.fetch(:type) == "event-v2 alert" || on_missing_data != "default"
146
147
  options[:on_missing_data] = on_missing_data
147
148
  options[:notify_no_data] = false # cannot set nil or it's an endless update loop
148
149
  options.delete :no_data_timeframe
@@ -25,7 +25,8 @@ module Kennel
25
25
 
26
26
  # TODO: also auto-load projects and update expected path too
27
27
  ["projects"].each do |folder|
28
- Dir["#{folder}/**/*.rb"].each { |f| require "./#{f}" }
28
+ # we need the extra sort so foo/bar.rb is loaded before foo/bar/baz.rb
29
+ Dir["#{folder}/**/*.rb"].sort.each { |f| require "./#{f}" } # rubocop:disable Lint/RedundantDirGlobSort
29
30
  end
30
31
  rescue NameError => e
31
32
  message = e.message
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.153.0"
3
+ VERSION = "1.154.0"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.153.0
4
+ version: 1.154.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser