statsd-instrument 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f4884abfa414d10454edd851f0a15cf51b4333396cf4cd2da209f6f7e543366
4
- data.tar.gz: 2e3f6b906fd8ab8a651d683475dbb660ea37a5207de95722efdf5c467cda2c94
3
+ metadata.gz: 45499b5743c8202fb33807dfbea271ce432b9e28cf4cb360ecde628b4aacee1d
4
+ data.tar.gz: 9faea13d1feb7b2d26d1f26334a306e881c87d12df52fece199047af0ecf62b9
5
5
  SHA512:
6
- metadata.gz: d771c8e13ef08ef146170b41024e09abbabaca4ebbfeb9c34781f04a2fdaf287776e7c79d93fe49d5ffb9ac18da82a1759d37621697d18cf9e5e423577110aae
7
- data.tar.gz: 573003d398eba6f81fb13385bf93c0ee4254c5074ba935471cd2dee659c1c2016f9c9bb44f9c71383a30b5b91129c12753c949118ebc103b6cb1595609e534e6
6
+ metadata.gz: 9d75637c2b6761835723a8dd343a7238c29137c5ca082784e859a6c79303432639d2be9f55cc98a3188fb45b2cd163c9b82086c256d8d4f673e3bae918807a40
7
+ data.tar.gz: 986d8661bdd02ba809ea03a56bde2fefee5d98e4c73ef823c62fc5dff4efc616ba0f881e6f1b9be8a295da3649e48a2cc74b159f8c9380db2b0ae658b72e385b
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ section below.
6
6
 
7
7
  ## Unreleased changes
8
8
 
9
+ ## Version 3.5.1
10
+
11
+ - Fix bug when passing a lambda function to dynamically set the tags in the strict mode.
12
+
9
13
  ## Version 3.5.0
10
14
 
11
15
  - Allow user to provide a lambda function to dynamically set metric tags
@@ -97,8 +97,8 @@ module StatsD
97
97
  unless sample_rate.nil? || sample_rate.is_a?(Numeric)
98
98
  raise ArgumentError, "The sample_rate argument should be a number, got #{sample_rate}"
99
99
  end
100
- unless tags.nil? || tags.is_a?(Hash) || tags.is_a?(Array)
101
- raise ArgumentError, "The tags argument should be a hash or an array, got #{tags.inspect}"
100
+ unless tags.nil? || tags.is_a?(Hash) || tags.is_a?(Array) || tags.is_a?(Proc)
101
+ raise ArgumentError, "The tags argument should be a hash, a proc or an array, got #{tags.inspect}"
102
102
  end
103
103
  end
104
104
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module StatsD
4
4
  module Instrument
5
- VERSION = "3.5.0"
5
+ VERSION = "3.5.1"
6
6
  end
7
7
  end
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.5.0
4
+ version: 3.5.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: 2022-10-04 00:00:00.000000000 Z
13
+ date: 2023-01-03 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.