statsd-instrument 1.6.0 → 1.6.1

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: b9bc489157242e310ea28c0a1680fb34c608a8e6
4
- data.tar.gz: 64ca871cc2a93f2fed3c5690fa6b53a1cd864925
3
+ metadata.gz: eafc53f3cd8857fd2bc0f1de1f00c8d4802426c5
4
+ data.tar.gz: 993e07dfc30fd46a5543e24a7068d058bcf97937
5
5
  SHA512:
6
- metadata.gz: 7eb191b76130aef5e14cc7e9b74d22936809713339b5accfa25c995507fb8ebf2ba9d879cba31ed64c6773ec97b82c38e1ccbc9a0352597c3f972dc46afdc9c2
7
- data.tar.gz: 3390177c19dfa7c9bca20f9d9a26fe36ead251bf8142132d0b866c2a09e435211c74cad4897156a4c914aa6b285d415896153a8ebd5447cda6076ae06a451cb4
6
+ metadata.gz: 21c9947c51f5882d1abcfb489b717652f17935d0c8c3884efc33a582cdc85cb33199ff3d71d0751078c3a061dd526a0702d5a68989d52a9046328fcb8615b47d
7
+ data.tar.gz: 07c43360b7bce08753d2f8455000a7bad26bda5a3b5e0366b37b10f5e8cca9a87028067d1e469d107973aea0c56a9abc2411f0faf29eb9fddaae4b22145ec5f0
data/Gemfile CHANGED
@@ -1,10 +1,4 @@
1
1
  source "http://rubygems.org"
2
-
3
- group :test do
4
- gem 'rake'
5
- end
6
-
7
- # Specify your gem's dependencies in statsd-instrument.gemspec
8
2
  gemspec
9
3
 
10
4
  gem 'SystemTimer', :platform => :mri_18, :require => ''
@@ -8,11 +8,7 @@ module StatsD
8
8
  attr_accessor :host, :port, :mode, :logger, :enabled, :default_sample_rate,
9
9
  :prefix, :implementation
10
10
  end
11
- self.enabled = true
12
- self.default_sample_rate = 1.0
13
- self.implementation = :statsd
14
11
 
15
- # StatsD.server = 'localhost:1234'
16
12
  def self.server=(conn)
17
13
  self.host, port = conn.split(':')
18
14
  self.port = port.to_i
@@ -225,3 +221,8 @@ module StatsD
225
221
  return command
226
222
  end
227
223
  end
224
+
225
+ StatsD.enabled = true
226
+ StatsD.default_sample_rate = 1.0
227
+ StatsD.implementation = ENV.fetch('STATSD_IMPLEMENTATION', 'statsd').to_sym
228
+ StatsD.server = ENV['STATSD_ADDR'] if ENV.has_key?('STATSD_ADDR')
@@ -1,5 +1,5 @@
1
1
  module StatsD
2
2
  module Instrument
3
- VERSION = "1.6.0"
3
+ VERSION = "1.6.1"
4
4
  end
5
5
  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: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Storimer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-21 00:00:00.000000000 Z
12
+ date: 2014-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.0.14
83
+ rubygems_version: 2.0.3
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: A StatsD client for Ruby apps