datadog-notifications 0.4.8 → 0.4.9

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
  SHA1:
3
- metadata.gz: f8397c851800f69d025fafb5bf8ad2787cf283f5
4
- data.tar.gz: d8e473405c890a1b62ea7a3391eca780792b822c
3
+ metadata.gz: 4e6a54c5139a08ca48165d96f32a226ba277e340
4
+ data.tar.gz: 2613ffc33cfffdb1f4cdb3a2fbffbe755522f637
5
5
  SHA512:
6
- metadata.gz: 6fd37e9a9d40d36866183916801c649cdd58a4d992335d8add55d8ba435aba2c0405a0f9803c0ba6cc7700b8a9e5c532db5fc25293c9925f55edb104eba80aaf
7
- data.tar.gz: 3cd196ff1a0e5a71c95bf8dc483220b6e3f1da66033ddd39e5440bffc0eff95d3f2841e3954b8bc4a3c728ee9fd383902c01902ee0878a78fddb7c2d1fb4cd9a
6
+ metadata.gz: f33592dbe559cd1fb0dc47f2cf013f5093599d95c1ccbe9d888b5b9a687b2948e896ebc931f9d4150ea6d788187cf52177e3b078edb4f6991c14b56fe0a88cef
7
+ data.tar.gz: c5abfb2da5cfccd1d7423e248cf4128c79a1f62ebd34207e937832157917e4ba254e4d1bca9548580574e79083b97c43c8c7a7c0da155b4eb3f80cf8e46fca6f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- datadog-notifications (0.4.8)
4
+ datadog-notifications (0.4.9)
5
5
  activesupport
6
6
  dogstatsd-ruby (~> 3.1)
7
7
 
@@ -31,7 +31,7 @@ GEM
31
31
  descendants_tracker (0.0.4)
32
32
  thread_safe (~> 0.3, >= 0.3.1)
33
33
  diff-lcs (1.3)
34
- dogstatsd-ruby (3.1.0)
34
+ dogstatsd-ruby (3.2.0)
35
35
  equalizer (0.0.11)
36
36
  grape (1.0.1)
37
37
  activesupport
@@ -43,7 +43,7 @@ GEM
43
43
  i18n (0.9.1)
44
44
  concurrent-ruby (~> 1.0)
45
45
  ice_nine (0.11.2)
46
- minitest (5.10.3)
46
+ minitest (5.11.0)
47
47
  mustermann (1.0.1)
48
48
  mustermann-grape (1.0.0)
49
49
  mustermann (~> 1.0.0)
@@ -1,12 +1,13 @@
1
1
  module Datadog
2
2
  class Notifications
3
3
  class Config
4
- attr_accessor :hostname, :namespace, :tags, :statsd_host, :statsd_port, :reporter, :plugins
4
+ attr_accessor :hostname, :namespace, :tags, :statsd_host, :statsd_port, :reporter, :plugins, :socket_path
5
5
 
6
6
  def initialize
7
7
  @hostname = ENV['INSTRUMENTATION_HOSTNAME'] || Socket.gethostname
8
8
  @statsd_host = ENV['STATSD_HOST'] || ::Datadog::Statsd::DEFAULT_HOST
9
9
  @statsd_port = (ENV['STATSD_PORT'] || ::Datadog::Statsd::DEFAULT_PORT).to_i
10
+ @socket_path = ENV['SOCKET_PATH']
10
11
  @reporter = Datadog::Notifications::Reporter
11
12
  @tags = []
12
13
  @plugins = []
@@ -24,7 +25,7 @@ module Datadog
24
25
  enable_hostname = hostname && hostname != 'false'
25
26
  tags.push("host:#{hostname}") if enable_hostname && tags.none? {|t| t =~ /^host\:/ }
26
27
 
27
- reporter.new statsd_host, statsd_port, namespace: namespace, tags: tags
28
+ reporter.new statsd_host, statsd_port, namespace: namespace, tags: tags, socket_path: socket_path
28
29
  end
29
30
  protected :connect!
30
31
 
@@ -1,5 +1,5 @@
1
1
  module Datadog
2
2
  class Notifications
3
- VERSION = "0.4.8"
3
+ VERSION = "0.4.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog-notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-14 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport