statsd-instrument 3.6.0 → 3.6.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5e3cda783c5f0c7de2c30175ab001cef492c3ad0e0923af3d3a4840df7d6005
|
4
|
+
data.tar.gz: b31685696c6e1ad8e5cd36a8115eca2363ed9a732a483534004b2163453b323a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 658663a99a273170ad72436eae0142d707e35a8cc2bbf5befd89a7cd225db5673c5ec676e8f96a168411f443fa7d3e6b73f60c6f081067082b2003920cef264b
|
7
|
+
data.tar.gz: bc8930e083ec158ca6a945186c2156a0890ebe74edb63080dc6ced9ca691498edc9d81ae746ec80477471c3b2f09d3abb95042002c0c8e7d72afeb9ab360526c
|
data/CHANGELOG.md
CHANGED
@@ -49,7 +49,7 @@ module StatsD
|
|
49
49
|
datagram << @default_tags
|
50
50
|
end
|
51
51
|
|
52
|
-
unless tags.nil?
|
52
|
+
unless tags.nil? || tags.empty?
|
53
53
|
datagram << (@default_tags.nil? ? "|#" : ",")
|
54
54
|
compile_tags(tags, datagram)
|
55
55
|
end
|
@@ -80,7 +80,7 @@ module StatsD
|
|
80
80
|
datagram << @default_tags
|
81
81
|
end
|
82
82
|
|
83
|
-
unless tags.nil?
|
83
|
+
unless tags.nil? || tags.empty?
|
84
84
|
datagram << (@default_tags.nil? ? "|#" : ",")
|
85
85
|
compile_tags(tags, datagram)
|
86
86
|
end
|
@@ -76,6 +76,12 @@ class DatagramBuilderTest < Minitest::Test
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def test_tags
|
79
|
+
datagram = @datagram_builder.d("foo", 10, nil, {})
|
80
|
+
assert_equal("foo:10|d", datagram)
|
81
|
+
|
82
|
+
datagram = @datagram_builder.d("foo", 10, nil, [])
|
83
|
+
assert_equal("foo:10|d", datagram)
|
84
|
+
|
79
85
|
datagram = @datagram_builder.d("foo", 10, nil, ["foo", "bar"])
|
80
86
|
assert_equal("foo:10|d|#foo,bar", datagram)
|
81
87
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statsd-instrument
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Storimer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-11-
|
13
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: A StatsD client for Ruby apps. Provides metaprogramming methods to inject
|
16
16
|
StatsD instrumentation into your code.
|