mettric 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a54c6667cd180fa2a4f52f5159f9973f56b50c43
4
- data.tar.gz: 1dee7f23fb2987d2bd4e74081816deaff2f1f2f3
3
+ metadata.gz: cced7de227f54677b7e5aaf5b243ae66dc04a6bc
4
+ data.tar.gz: b701806fa6ac95e05136d38f1b2f5d3e8c32c422
5
5
  SHA512:
6
- metadata.gz: d860f9b44f28156054d3969f7ad388b903579a98580d3d3aea9db081d36afa6aa447d87308d23174ee96fd03cbc394d8280ca4557fa3844cd71cc9e0f9b477bf
7
- data.tar.gz: 6ca35061b4b86a7c68f0fd5b1838a153e5f18aed7d3a12e7e0ed79f01000af8550e348c92ef0a8e0679e96b7dd8a96177e5010f78abd158fc4a758fe1240bd26
6
+ metadata.gz: d74986e86a55da01be207034a62f07830a4da1095c32a31489c12004b6267c048d80b0c9a9982669c21eca0d7091da72de33cd12a9b889e0d7afa3b619d65378
7
+ data.tar.gz: 1415b20d1184135cf4a21a66cf4971f0ea4ceca1055435611786a9bf3ebb04d6eaf96be6b6ee993a0f83f447d519f78556f5d7467f180f2fd13c2d06ed19ab4c
@@ -0,0 +1,3 @@
1
+ 0.2.5 (2016-07-26)
2
+ ==================
3
+ - don't swallow exceptions in Mettric.time
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(paylod) { ... }` 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.
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Mettric
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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-06-21 00:00:00.000000000 Z
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: