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 +4 -4
- data/lib/kennel/api.rb +1 -1
- data/lib/kennel/models/record.rb +3 -1
- data/lib/kennel/utils.rb +2 -2
- data/lib/kennel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a544470a54c1480f1ed92be13555d44349eb59405c0f2620f00645f536be10d
|
4
|
+
data.tar.gz: 5425b8bf340f5956d87ad6cd08e26c4e8c70d066cf05f70b7b7df6d0816b0f30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(""
|
21
|
+
url = Utils.path_to_url("")
|
22
22
|
@client = Faraday.new(url: url) { |c| c.adapter :net_http_persistent }
|
23
23
|
end
|
24
24
|
|
data/lib/kennel/models/record.rb
CHANGED
@@ -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
|
16
|
-
subdomain
|
15
|
+
def path_to_url(path)
|
16
|
+
subdomain = (ENV["DATADOG_SUBDOMAIN"] || "app")
|
17
17
|
"https://#{subdomain}.datadoghq.com#{path}"
|
18
18
|
end
|
19
19
|
|
data/lib/kennel/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|