statsd-instrument 2.0.1 → 2.0.2
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 +4 -4
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +2 -0
- data/README.md +5 -5
- data/lib/statsd/instrument/version.rb +1 -1
- data/shipit.rubygems.yml +15 -0
- metadata +37 -15
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaad8d6663e0f3a3cb2f01701423f5b6fe482122
|
4
|
+
data.tar.gz: 608b8507b511e0fb7294e864003d9266419cc73e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9771c8673f62f390f5fe499bac932aaf89efdbb32f7435b8f56547868c1af0fbc2cf8c63fe3be0cf65cb5e203e96832efcb690d2e96bf282bd936da22d72c8d
|
7
|
+
data.tar.gz: d9424c37124cbc75d86fe7284fe68b205750957d6c6c5ca01a4e27352f6e644480c08d56284c9eef3913080dd07502d87545ed4e49e49dea0e8e26bdfdb2ecc9
|
checksums.yaml.gz.sig
ADDED
data.tar.gz.sig
ADDED
data/README.md
CHANGED
@@ -21,12 +21,12 @@ This is the same as what Etsy uses (mentioned in the README for http://github.co
|
|
21
21
|
The library comes with different backends. Based on your environment (detected using environment
|
22
22
|
variables), it will select one of the following backends by default:
|
23
23
|
|
24
|
-
- **Production** environment: `StatsD::Instrument::
|
24
|
+
- **Production** environment: `StatsD::Instrument::Backends::UDPBackend` will actually send UDP packets.
|
25
25
|
It will configure itself using environment variables: it uses `STATSD_ADDR` for the address to connect
|
26
26
|
to (default `"localhost:8125"`), and `STATSD_IMPLEMENTATION` to set the protocol variant. (See below)
|
27
|
-
- **Test** environment: `StatsD::Instrument::
|
27
|
+
- **Test** environment: `StatsD::Instrument::Backends::NullBackend` will swallow all calls. See below for
|
28
28
|
notes on writing tests.
|
29
|
-
- **Development**, and all other, environments: `StatsD::Instrument::
|
29
|
+
- **Development**, and all other, environments: `StatsD::Instrument::Backends::LoggerBackend` will log all
|
30
30
|
calls to stdout.
|
31
31
|
|
32
32
|
You can override the currently active backend by setting `StatsD.backend`:
|
@@ -34,10 +34,10 @@ You can override the currently active backend by setting `StatsD.backend`:
|
|
34
34
|
``` ruby
|
35
35
|
# Sets up a UDP backend. First argument is the UDP address to send StatsD packets to,
|
36
36
|
# second argument specifies the protocol variant (i.e. `:statsd`, `:statsite`, or `:datadog`).
|
37
|
-
StatsD.backend = StatsD::Instrument::
|
37
|
+
StatsD.backend = StatsD::Instrument::Backends::UDPBackend.new("1.2.3.4:8125", :statsite)
|
38
38
|
|
39
39
|
# Sets up a logger backend
|
40
|
-
StatsD.backend = StatsD::Instrument::
|
40
|
+
StatsD.backend = StatsD::Instrument::Backends::LoggerBackend.new(Rails.logger)
|
41
41
|
```
|
42
42
|
|
43
43
|
The other available settings, with their default, are
|
data/shipit.rubygems.yml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
dependencies:
|
2
|
+
override:
|
3
|
+
- bundle install --path=./data/bundler
|
4
|
+
|
5
|
+
deploy:
|
6
|
+
override:
|
7
|
+
- |
|
8
|
+
BUILD=`bundle exec rake build`
|
9
|
+
if [ $? != 0 ]; then
|
10
|
+
echo $BUILD;
|
11
|
+
exit 1;
|
12
|
+
fi
|
13
|
+
PKG=`echo $BUILD | cut -d" " -f5 | sed -e s/\.$//`;
|
14
|
+
VERSION=`echo $BUILD | cut -d" " -f2`;
|
15
|
+
gem push $PKG
|
metadata
CHANGED
@@ -1,56 +1,78 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statsd-instrument
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Storimer
|
8
8
|
- Tobias Lutke
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ8wDQYDVQQDDAZhZG1p
|
15
|
+
bnMxFzAVBgoJkiaJk/IsZAEZFgdzaG9waWZ5MRMwEQYKCZImiZPyLGQBGRYDY29t
|
16
|
+
MB4XDTE0MDUxNTIwMzM0OFoXDTE1MDUxNTIwMzM0OFowPzEPMA0GA1UEAwwGYWRt
|
17
|
+
aW5zMRcwFQYKCZImiZPyLGQBGRYHc2hvcGlmeTETMBEGCgmSJomT8ixkARkWA2Nv
|
18
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL0/81O3e1vh5smcwp2G
|
19
|
+
MpLQ6q0kejQLa65bPYPxdzWA1SYOKyGfw+yR9LdFzsuKpwWzKq6zX35lj1IckWS4
|
20
|
+
bNBEQzxmufUxU0XPM02haFB8fOfDJzdXsWte9Ge4IFwahwn68gpMqN+BvxL+KMYz
|
21
|
+
Iut9YmN44d4LZdsENEIO5vmybuG2vYDz7R56qB0PA+Q2P2CdhymsBad2DQs69FBo
|
22
|
+
uico9V6VMYYctL9lCYdzu9IXrOYNTt88suKIVzzAlHOKeN0Ng5qdztFoTR8sfxDr
|
23
|
+
Ydg3KHl5n47wlpgd8R0f/4b5gGxW+v9pyJCgQnLlRu7DedVSvv7+GMtj3g9r3nhJ
|
24
|
+
KqECAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFI/o
|
25
|
+
maf34HXbUOQsdoLHacEKQgunMB0GA1UdEQQWMBSBEmFkbWluc0BzaG9waWZ5LmNv
|
26
|
+
bTAdBgNVHRIEFjAUgRJhZG1pbnNAc2hvcGlmeS5jb20wDQYJKoZIhvcNAQEFBQAD
|
27
|
+
ggEBADkK9aj5T0HPExsov4EoMWFnO+G7RQ28C30VAfKxnL2UxG6i4XMHVs6Xi94h
|
28
|
+
qXFw1ec9Y2eDUqaolT3bviOk9BB197+A8Vz/k7MC6ci2NE+yDDB7HAC8zU6LAx8Y
|
29
|
+
Iqvw7B/PSZ/pz4bUVFlTATif4mi1vO3lidRkdHRtM7UePSn2rUpOi0gtXBP3bLu5
|
30
|
+
YjHJN7wx5cugMEyroKITG5gL0Nxtu21qtOlHX4Hc4KdE2JqzCPOsS4zsZGhgwhPs
|
31
|
+
fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
|
32
|
+
TConQSX2BnZdhIEYW+cKzEC/bLc=
|
33
|
+
-----END CERTIFICATE-----
|
34
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
13
35
|
dependencies:
|
14
36
|
- !ruby/object:Gem::Dependency
|
15
37
|
name: rake
|
16
38
|
requirement: !ruby/object:Gem::Requirement
|
17
39
|
requirements:
|
18
|
-
- -
|
40
|
+
- - ">="
|
19
41
|
- !ruby/object:Gem::Version
|
20
42
|
version: '0'
|
21
43
|
type: :development
|
22
44
|
prerelease: false
|
23
45
|
version_requirements: !ruby/object:Gem::Requirement
|
24
46
|
requirements:
|
25
|
-
- -
|
47
|
+
- - ">="
|
26
48
|
- !ruby/object:Gem::Version
|
27
49
|
version: '0'
|
28
50
|
- !ruby/object:Gem::Dependency
|
29
51
|
name: minitest
|
30
52
|
requirement: !ruby/object:Gem::Requirement
|
31
53
|
requirements:
|
32
|
-
- -
|
54
|
+
- - ">="
|
33
55
|
- !ruby/object:Gem::Version
|
34
56
|
version: '0'
|
35
57
|
type: :development
|
36
58
|
prerelease: false
|
37
59
|
version_requirements: !ruby/object:Gem::Requirement
|
38
60
|
requirements:
|
39
|
-
- -
|
61
|
+
- - ">="
|
40
62
|
- !ruby/object:Gem::Version
|
41
63
|
version: '0'
|
42
64
|
- !ruby/object:Gem::Dependency
|
43
65
|
name: mocha
|
44
66
|
requirement: !ruby/object:Gem::Requirement
|
45
67
|
requirements:
|
46
|
-
- -
|
68
|
+
- - ">="
|
47
69
|
- !ruby/object:Gem::Version
|
48
70
|
version: '0'
|
49
71
|
type: :development
|
50
72
|
prerelease: false
|
51
73
|
version_requirements: !ruby/object:Gem::Requirement
|
52
74
|
requirements:
|
53
|
-
- -
|
75
|
+
- - ">="
|
54
76
|
- !ruby/object:Gem::Version
|
55
77
|
version: '0'
|
56
78
|
description: A StatsD client for Ruby appspec. Provides metaprogramming methods to
|
@@ -61,8 +83,8 @@ executables: []
|
|
61
83
|
extensions: []
|
62
84
|
extra_rdoc_files: []
|
63
85
|
files:
|
64
|
-
- .gitignore
|
65
|
-
- .travis.yml
|
86
|
+
- ".gitignore"
|
87
|
+
- ".travis.yml"
|
66
88
|
- Gemfile
|
67
89
|
- LICENSE
|
68
90
|
- README.md
|
@@ -78,6 +100,7 @@ files:
|
|
78
100
|
- lib/statsd/instrument/environment.rb
|
79
101
|
- lib/statsd/instrument/metric.rb
|
80
102
|
- lib/statsd/instrument/version.rb
|
103
|
+
- shipit.rubygems.yml
|
81
104
|
- statsd-instrument.gemspec
|
82
105
|
- test/assertions_test.rb
|
83
106
|
- test/capture_backend_test.rb
|
@@ -99,17 +122,17 @@ require_paths:
|
|
99
122
|
- lib
|
100
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
101
124
|
requirements:
|
102
|
-
- -
|
125
|
+
- - ">="
|
103
126
|
- !ruby/object:Gem::Version
|
104
127
|
version: '0'
|
105
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
129
|
requirements:
|
107
|
-
- -
|
130
|
+
- - ">="
|
108
131
|
- !ruby/object:Gem::Version
|
109
132
|
version: '0'
|
110
133
|
requirements: []
|
111
134
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.0
|
135
|
+
rubygems_version: 2.2.0
|
113
136
|
signing_key:
|
114
137
|
specification_version: 4
|
115
138
|
summary: A StatsD client for Ruby apps
|
@@ -124,4 +147,3 @@ test_files:
|
|
124
147
|
- test/statsd_test.rb
|
125
148
|
- test/test_helper.rb
|
126
149
|
- test/udp_backend_test.rb
|
127
|
-
has_rdoc:
|
metadata.gz.sig
ADDED
Binary file
|