dogstatsd-ruby 5.6.2 → 5.6.4

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: fb5fc01f7ac477b0d99986331aba69b1556b2160246ff379a60f394be8fb0968
4
- data.tar.gz: fc254d901ec1071acbef8fa724e30f54b0fd4c65592a726e68805ea484c54811
3
+ metadata.gz: 63a4ebc24fc1656531a195fe3e04b631a1dc626a473f836db5d8efac8a75c150
4
+ data.tar.gz: 0a055f4ff9cb74b9de2eb05915edc2149a705063b4aafcfcfaa870051dc72654
5
5
  SHA512:
6
- metadata.gz: 719c9f76ce1cc501fddff67f3e563eec94d612c40b8b29aa93bed1c270bc4d6d785eed088d5f4df513034f4eff38b1c1e67f2538c86372b07f353f29f6f0a18c
7
- data.tar.gz: 7b2812a927a160ec0452e3366ed0eed9166ec95ecf88dc8ab325726d18e60d683d8bfb75845608f1e025a6af80871acd8a6e4d16a08c4d21c749731b1d327643
6
+ metadata.gz: 1ede8a6c674604abe8ac9f139bf083aeaca51dd98455e6542990f4cbe441bfc12ec29267e1e428aeafde57e2ac72fdc7e417e7e8286ed565cc420fcd41313d61
7
+ data.tar.gz: e19e9d6f15da7051c16ddfa544d7599b2927a165dc8300cd815c5153d5040b9cef33b2f59d02166efa592acf8c171a20374d35f93156e534be949b7d782a434b
@@ -37,9 +37,18 @@ module Datadog
37
37
  attr_reader :prefix
38
38
  attr_reader :tag_serializer
39
39
 
40
- def formatted_metric_name(metric_name)
41
- formatted = Symbol === metric_name ? metric_name.name : metric_name.to_s
40
+ if RUBY_VERSION < '3'
41
+ def metric_name_to_string(metric_name)
42
+ metric_name.to_s
43
+ end
44
+ else
45
+ def metric_name_to_string(metric_name)
46
+ Symbol === metric_name ? metric_name.name : metric_name.to_s
47
+ end
48
+ end
42
49
 
50
+ def formatted_metric_name(metric_name)
51
+ formatted = metric_name_to_string(metric_name)
43
52
  if formatted.include?('::')
44
53
  formatted = formatted.gsub('::', '.')
45
54
  formatted.tr!(':|@', '_')
@@ -4,6 +4,6 @@ require_relative 'connection'
4
4
 
5
5
  module Datadog
6
6
  class Statsd
7
- VERSION = '5.6.2'
7
+ VERSION = '5.6.4'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dogstatsd-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.2
4
+ version: 5.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rein Henrichs
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-20 00:00:00.000000000 Z
12
+ date: 2024-12-19 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Ruby DogStatsd client
15
15
  email: code@datadoghq.com
@@ -44,9 +44,9 @@ licenses:
44
44
  - MIT
45
45
  metadata:
46
46
  bug_tracker_uri: https://github.com/DataDog/dogstatsd-ruby/issues
47
- changelog_uri: https://github.com/DataDog/dogstatsd-ruby/blob/v5.6.2/CHANGELOG.md
48
- documentation_uri: https://www.rubydoc.info/gems/dogstatsd-ruby/5.6.2
49
- source_code_uri: https://github.com/DataDog/dogstatsd-ruby/tree/v5.6.2
47
+ changelog_uri: https://github.com/DataDog/dogstatsd-ruby/blob/v5.6.4/CHANGELOG.md
48
+ documentation_uri: https://www.rubydoc.info/gems/dogstatsd-ruby/5.6.4
49
+ source_code_uri: https://github.com/DataDog/dogstatsd-ruby/tree/v5.6.4
50
50
  post_install_message: |2+
51
51
 
52
52
  If you are upgrading from v4.x of the dogstatsd-ruby library, note the major change to the threading model:
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
- rubygems_version: 3.1.6
69
+ rubygems_version: 3.4.6
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: A Ruby DogStatsd client