mettric 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +3 -0
- data/README.md +1 -1
- data/lib/mettric/mettric.rb +3 -1
- data/lib/mettric/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cced7de227f54677b7e5aaf5b243ae66dc04a6bc
|
4
|
+
data.tar.gz: b701806fa6ac95e05136d38f1b2f5d3e8c32c422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74986e86a55da01be207034a62f07830a4da1095c32a31489c12004b6267c048d80b0c9a9982669c21eca0d7091da72de33cd12a9b889e0d7afa3b619d65378
|
7
|
+
data.tar.gz: 1415b20d1184135cf4a21a66cf4971f0ea4ceca1055435611786a9bf3ebb04d6eaf96be6b6ee993a0f83f447d519f78556f5d7467f180f2fd13c2d06ed19ab4c
|
data/CHANGELOG.markdown
ADDED
data/README.md
CHANGED
@@ -82,7 +82,7 @@ end
|
|
82
82
|
|
83
83
|
### For grown ups
|
84
84
|
|
85
|
-
Just in case you don't want to use the silly methods names, please know that the emoji variants of above methods just call `Mettric.event(payload)`, `Mettric.meter(payload` and `Mettric.time(
|
85
|
+
Just in case you don't want to use the silly methods names, please know that the emoji variants of above methods just call `Mettric.event(payload)`, `Mettric.meter(payload` and `Mettric.time(payload) { ... }` respectively. Be aware, though, that the emoji methods ignore a misconfigured or unavailable riemann server by rescuing `Mettric::CouldNotStartWorkerThread` exceptions. The non-emoji methods will throw that exception. Just have a look at [lib/mettric/scnr.rb](lib/mettric/scnr.rb) and you'll see what I mean.
|
86
86
|
|
87
87
|
|
88
88
|
## Sidekiq
|
data/lib/mettric/mettric.rb
CHANGED
@@ -57,7 +57,9 @@ class Mettric
|
|
57
57
|
payload[:description] = [payload[:description], "(ms)"].compact.join(' ')
|
58
58
|
payload[:tags] ||= []
|
59
59
|
payload[:tags] << :timing
|
60
|
-
track(payload)
|
60
|
+
result = track(payload)
|
61
|
+
raise exception if exception
|
62
|
+
result
|
61
63
|
end
|
62
64
|
|
63
65
|
def self.ensure_worker_running
|
data/lib/mettric/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mettric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jannis Hermanns
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- ".gitignore"
|
133
133
|
- ".rspec"
|
134
134
|
- ".travis.yml"
|
135
|
+
- CHANGELOG.markdown
|
135
136
|
- CODE_OF_CONDUCT.md
|
136
137
|
- Gemfile
|
137
138
|
- Guardfile
|
@@ -174,4 +175,3 @@ signing_key:
|
|
174
175
|
specification_version: 4
|
175
176
|
summary: Count metrics
|
176
177
|
test_files: []
|
177
|
-
has_rdoc:
|