inst_statsd 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/inst_statsd/statsd.rb +2 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a9bd14115668f4b354ae740b4ff35cb5b551c09e7a6795986faafb35c379826
4
- data.tar.gz: 4811158906ecebf02185c5ebb4bb67f691e9f61ec3f369903d1cfa502438a554
3
+ metadata.gz: f7eba72a497efc7967daa2dd99d270703bb6e513d34aa2a2c90b88ac7fe15ee6
4
+ data.tar.gz: ce9c3026304050075016db7fb959afdf2c574287b0e7ec6b0c2484db3e8429d7
5
5
  SHA512:
6
- metadata.gz: 8d0c8ac4747069dbe6da16c798044d585fa6a32a871730f41bf80fc5cfd0064ddad967789af655e5b3cbd6138f7c169402e43cc563bd3f0748970820cb3e622b
7
- data.tar.gz: d0a88767195a8febc5e2c002d02ba9dd6da3438a4830f9c97f8fa013b325d8b8ee00835bcaf63ad2299af1f9db8479664ae55ae1e789208e16b6fcca515eb242
6
+ metadata.gz: 64aaa60431ec40f7cf7296778c96744438f76129ca7737683b5a5d8528d0b06d8e2a6a092e3dfefee13696fd0968dfa894016b3cdd947cf26f4134c090655413
7
+ data.tar.gz: ac9f462c401b1162924c769c0189bf5676eb5eede8d668233468b27e375fae65c5e466110cd8a869d92edef2eef46701854edd29ef7474c1778f4a15b81b219a
@@ -53,6 +53,7 @@ module InstStatsd
53
53
  end
54
54
 
55
55
  if data_dog?
56
+ tags ||= {}
56
57
  tags.merge!(dog_tags) if tags.is_a? Hash
57
58
  tags = convert_tags(tags)
58
59
  tags << 'host:' unless self.append_hostname?
@@ -107,7 +108,7 @@ module InstStatsd
107
108
  @data_dog = true
108
109
  host = statsd_settings[:host] || 'localhost'
109
110
  port = statsd_settings[:port] || 8125
110
- @statsd = Datadog::Statsd.new(host, port)
111
+ @statsd = ::Datadog::Statsd.new(host, port)
111
112
  @statsd.dog_tags = statsd_settings[:dog_tags] || {}
112
113
  @append_hostname = !statsd_settings.key?(:append_hostname) || !!statsd_settings[:append_hostname]
113
114
  elsif statsd_settings && statsd_settings[:host]
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: 2.1.0
4
+ version: 2.1.1
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: 2019-02-20 00:00:00.000000000 Z
12
+ date: 2019-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dogstatsd-ruby