kennel 2.25.2 → 2.25.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: '0888c55ea45e4debe5ed5b0b0cbad53c8a74f059c6f6146e7bcabeadfef874c4'
4
- data.tar.gz: ed85f0fbc25f9dbe0d85e1f85be72415b366e36edf44c709fe2d5d0de832abd5
3
+ metadata.gz: 4f2cb4bf99e57210d3e70a8642a3cd237a602258aef16e6d5088364b8f6ece58
4
+ data.tar.gz: 9ff11bbd6c84da450974a55563d6dd4cd1334588a8d7be137ccb347a60a66bdc
5
5
  SHA512:
6
- metadata.gz: 1ce84eb15e7fd896519872aecc9df8a9ffe6a0b974fd84bac481d1703f76aea29f193741d6f445a7c76a6ce02b616470a33d060830b9c010328691141bfc98f1
7
- data.tar.gz: 952d833b9c7eecff08831df9db718d15aab9c520ea997b06daf843a63f2f7c91a29f4604916debd3b5d6f22b845f89cfc46d1867775fe1c52fa3a15214ba907b
6
+ metadata.gz: 5278beab310e5e76a5532c015e9cd3ed1bf182add67ad51c59348e87c27b056f3a6e8fd04329df885f0d3e9241eba52eb1465f4105fa3ea3902f0f291b9f2d70
7
+ data.tar.gz: 817497d96ea33181481059069c4b3848e6cb18ba8d9949a8a0c22edb51ed2c79d36d54d8175d61f5ebd9094e507b6b10352bc705feee0f122c0f673a95698e50
@@ -102,7 +102,7 @@ module Kennel
102
102
  ignore_default expected, actual, DEFAULTS
103
103
  ignore_default expected, actual, reflow_type: "auto" if expected[:layout_type] == "ordered"
104
104
 
105
- dry_up_dashboard_tabs(actual)
105
+ dry_up_dashboard_tabs(expected, actual)
106
106
 
107
107
  widgets_pairs(expected, actual).each do |pair|
108
108
  pair.each { |w| sort_conditional_formats w }
@@ -114,9 +114,12 @@ module Kennel
114
114
 
115
115
  private
116
116
 
117
- def dry_up_dashboard_tabs(dashboard)
118
- return unless (tabs = dashboard[:tabs])
119
- tabs.each { |t| t.delete :id } # we never want to update that, see api.rb
117
+ # we never want to update or compare tab ids that, see api.rb
118
+ def dry_up_dashboard_tabs(*dashboards)
119
+ dashboards.each do |dashboard|
120
+ next unless (tabs = dashboard[:tabs])
121
+ tabs.each { |t| t.delete :id }
122
+ end
120
123
  end
121
124
 
122
125
  # conditional_formats ordering is randomly changed by datadog, compare a stable ordering
@@ -129,6 +129,9 @@ module Kennel
129
129
  # Datadog requires only either new_group_delay or new_host_delay, never both
130
130
  options.delete(options[:new_group_delay] ? :new_host_delay : :new_group_delay)
131
131
 
132
+ # composite monitors do not support timeout_h
133
+ options.delete(:timeout_h) if type == "composite"
134
+
132
135
  if (duration = group_retention_duration)
133
136
  options[:group_retention_duration] = duration
134
137
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "2.25.2"
3
+ VERSION = "2.25.3"
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: 2.25.2
4
+ version: 2.25.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser