kennel 1.85.0 → 1.85.1

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: a269f904837e3451d2476a99ebcd9d456dc91ae0f1a90736ca92b76a9e92bee9
4
- data.tar.gz: 53b4d080603c79ec8e70dfe2e95cbfcb4fa2325f1e9fa803a5c8bbcafc9db646
3
+ metadata.gz: 335173d32b02065452cf2d0266fc013113c0f1641720276326de9eeea2446ee7
4
+ data.tar.gz: e6dcec34359ce1d2783706c06cd802e74c7a24d3833187e21f9099a1c1134acc
5
5
  SHA512:
6
- metadata.gz: 447b71298164f342b2e7cd707c1deaa12dfd260845c12125f8f9bc31849c13bb0d8c863613ed5b3b295009d5be4c28e351ea4c91b6eb3377a75d8140c25bf311
7
- data.tar.gz: 988960502b6480687915669d317f920bc8af88e7926191a78cca3b7d55493b63e981bd5d880d137e3307a56ef1cdea23c18ad1139126e6f6310951100447422a
6
+ metadata.gz: a94d5cd61609d1e36fa68a23322b27f6c995f2422d5231b9117b417d7e5674d54ad24dac286820547f535999a3b66b4936754f6ac732c54e5fac36f4443390a9
7
+ data.tar.gz: bf7afdcfa4ff36436eb7e8eaafc3372ac6d0986e44e5c1787da11f8bd5ebb8157a0dfdc5b2b5018ccb6b9e20c96f3ada52cf46608fdc1752a4d18f2f86475045
@@ -18,8 +18,7 @@ module Kennel
18
18
  SUPPORTED_DEFINITION_OPTIONS = [:events, :markers, :precision].freeze
19
19
 
20
20
  DEFAULTS = {
21
- template_variable_presets: nil,
22
- reflow_type: "auto"
21
+ template_variable_presets: nil
23
22
  }.freeze
24
23
 
25
24
  settings :title, :description, :definitions, :widgets, :layout_type, :template_variable_presets, :reflow_type
@@ -29,7 +28,7 @@ module Kennel
29
28
  definitions: -> { [] },
30
29
  widgets: -> { [] },
31
30
  template_variable_presets: -> { DEFAULTS.fetch(:template_variable_presets) },
32
- reflow_type: -> { DEFAULTS.fetch(:reflow_type) },
31
+ reflow_type: -> { layout_type == "ordered" ? "auto" : nil },
33
32
  id: -> { nil }
34
33
  )
35
34
 
@@ -42,6 +41,7 @@ module Kennel
42
41
  super
43
42
 
44
43
  ignore_default(expected, actual, DEFAULTS)
44
+ ignore_default(expected, actual, reflow_type: "auto") if expected[:layout_type] == "ordered"
45
45
 
46
46
  widgets_pairs(expected, actual).each do |pair|
47
47
  # conditional_formats ordering is randomly changed by datadog, compare a stable ordering
@@ -112,12 +112,13 @@ module Kennel
112
112
  layout_type: layout_type,
113
113
  title: "#{title}#{LOCK}",
114
114
  description: description,
115
- reflow_type: reflow_type,
116
115
  template_variables: render_template_variables,
117
116
  template_variable_presets: template_variable_presets,
118
117
  widgets: all_widgets
119
118
  }
120
119
 
120
+ @json[:reflow_type] = reflow_type if reflow_type # setting nil breaks create with "ordered"
121
+
121
122
  @json[:id] = id if id
122
123
 
123
124
  validate_json(@json) if validate
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.85.0"
3
+ VERSION = "1.85.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.85.0
4
+ version: 1.85.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-24 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday