kennel 1.147.0 → 1.148.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: 7aa3215e281ade43456180bbdbe048939052d0238b1303705842cad7145b5457
4
- data.tar.gz: ae9ec09767652ff2839da017731f7f7487e237cbea81d9cebb89f39351bd7cca
3
+ metadata.gz: 4a544470a54c1480f1ed92be13555d44349eb59405c0f2620f00645f536be10d
4
+ data.tar.gz: 5425b8bf340f5956d87ad6cd08e26c4e8c70d066cf05f70b7b7df6d0816b0f30
5
5
  SHA512:
6
- metadata.gz: 0064bfa8723de2680d8a7dfd2d050018a040015efa8e57646039cbb825fb3278bbdf29ea8f60de4dc617d61b0ddc69bac4fa050fc125c10be413d1900eca7556
7
- data.tar.gz: 5a1dc95851d870c5d00ab6d2b17c357572b44ab058ae87d486e6b4786797211fede1e6ef7dc935fc2e743f0ada6a942556f8222a4dc4b931047ffb7dbb07dc74
6
+ metadata.gz: b07268a2f09ccb5465afab53a6ee3bdc8448ffa223d092496a04d6fb5c4d704c593df35d69555d0b021bf13f7068bf102332eaaa3412f62dc39c65979744460c
7
+ data.tar.gz: f15042a4259a60a8a69fa7c57aa5d12b1ec1fee7e8ba20fc053ab87742b5fa9eb1ce1b66bfd856f2a5ad098b614d5996450d2fae4971ba5a6a22912a084fea0f
data/lib/kennel/api.rb CHANGED
@@ -18,7 +18,7 @@ module Kennel
18
18
  def initialize(app_key = nil, api_key = nil)
19
19
  @app_key = app_key || ENV.fetch("DATADOG_APP_KEY")
20
20
  @api_key = api_key || ENV.fetch("DATADOG_API_KEY")
21
- url = Utils.path_to_url("", subdomain: "app")
21
+ url = Utils.path_to_url("")
22
22
  @client = Faraday.new(url: url) { |c| c.adapter :net_http_persistent }
23
23
  end
24
24
 
@@ -96,7 +96,9 @@ module Kennel
96
96
  # strict: ignore Integer vs Float
97
97
  # similarity: show diff when not 100% similar
98
98
  # use_lcs: saner output
99
- Hashdiff.diff(actual, expected, use_lcs: false, strict: false, similarity: 1)
99
+ result = Hashdiff.diff(actual, expected, use_lcs: false, strict: false, similarity: 1)
100
+ raise "Empty diff detected: guard condition failed" if result.empty?
101
+ result
100
102
  end
101
103
 
102
104
  def tracking_id
data/lib/kennel/utils.rb CHANGED
@@ -12,8 +12,8 @@ module Kennel
12
12
  result
13
13
  end
14
14
 
15
- def path_to_url(path, subdomain: nil)
16
- subdomain ||= (ENV["DATADOG_SUBDOMAIN"] || "app")
15
+ def path_to_url(path)
16
+ subdomain = (ENV["DATADOG_SUBDOMAIN"] || "app")
17
17
  "https://#{subdomain}.datadoghq.com#{path}"
18
18
  end
19
19
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.147.0"
3
+ VERSION = "1.148.0"
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.147.0
4
+ version: 1.148.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-02 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs