inst_statsd 3.3.1 → 3.3.2

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: 4e7d5fbbb438dc387efee59fe23c96d65d8c6d15b68bf08e3bacfaf1f05c9ac0
4
- data.tar.gz: 27f3a13b0e1fe8910a9330b88adac40545e397500dc6d901f8bbcad0014f4cdc
3
+ metadata.gz: b97f7ba19c16e12f36248b86629b16fb1bc2216ba0da3c3ff1da012c08582ee2
4
+ data.tar.gz: d7f43c64a477c5e6bf733ede3185b54a692e26440e1ba340886ac6c524f9da5d
5
5
  SHA512:
6
- metadata.gz: '09adfd59ec9e74f78a0af260d339f7db562a1e281e8b514650d5259a2f6ac85529cecb73b8b5a8e42f0d9f193c3aec8a1049de813280b5b8b2ceca12df261fad'
7
- data.tar.gz: 697e4ef4dcd88dc71c7ff550433992dedf39b942bc21298cc45d623c55f223507370ceb6d8ed465cdc01e7a2c0d1719c5672dc338e1a73b777f8f8cf3c291bf2
6
+ metadata.gz: 825783ba4ef42ff8abc7b97d3a8a387be9c93c30e9b746482c119a905c74de57341ab38d32723bb37e2d28d5b5cbc33bde84e531eaa04067138d96b7b8f1b492
7
+ data.tar.gz: 45a3cfbc0e101a1dfdc758155290dbfca30f1c89832b73a6e376010ba8aaecdea55ebca764c023adfbdd4150bf120ca0f2e82eda6ba631d245cead49a25b9850
@@ -23,8 +23,9 @@ module InstStatsd
23
23
  else
24
24
  metric.to_s
25
25
  end
26
+ tags = tags.merge(dog_tags) if tags.is_a?(Hash)
26
27
 
27
- instance.distribution(metric, value, { tags: tags.merge(dog_tags) }.compact)
28
+ instance.distribution(metric, value, { tags: tags })
28
29
  end
29
30
 
30
31
  # Increments the specified distribution metric by 1.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstStatsd
4
- VERSION = "3.3.1"
4
+ VERSION = "3.3.2"
5
5
  end
@@ -30,6 +30,15 @@ RSpec.describe InstStatsd::Distribution do
30
30
 
31
31
  subject
32
32
  end
33
+
34
+ it "handles an array of tags" do
35
+ expect(instance).to receive(:distribution).with(
36
+ metric,
37
+ value,
38
+ { tags: ["status:500"] }
39
+ )
40
+ InstStatsd::Statsd.distribution(metric, value, tags: ["status:500"])
41
+ end
33
42
  end
34
43
 
35
44
  context "when instance and data_dog? are not configured" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inst_statsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Cloward
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-27 00:00:00.000000000 Z
12
+ date: 2025-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aroi
@@ -80,7 +80,7 @@ dependencies:
80
80
  - !ruby/object:Gem::Version
81
81
  version: '1.5'
82
82
  - !ruby/object:Gem::Dependency
83
- name: byebug
83
+ name: debug
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="